XML Schema:“use =’required’”,默认值

前端之家收集整理的这篇文章主要介绍了XML Schema:“use =’required’”,默认值前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
XML Schema中,是否可以使用具有use =’required’和默认值的元素(例如< xs:attribute name =“Version”type =“U8”use =“required”default =“02” /&GT)?
至少XMLSpy在这个上扼杀:

[…] In attribute declaration ‘Version’,‘use’ must have the value ‘optional’ because the attribute ‘default’ is present.

查看XML Schema Part 1: Structures Second Edition产生3.2.3对属性声明的XML表示的约束:

[…] If default and use are both present,use must have the ·actual value· optional. […]

所以答案显然是:不

原文链接:https://www.f2er.com/xml/292573.html

猜你在找的XML相关文章