<schema xmlns="http://www.w3.org/2001/XMLSchema" ... version="xxx">
的XSD规范https://www.w3.org/TR/xmlschema11-1/#declare-schema不指定version
属性的语义:XSD“版本”属性语义
其它属性(
id
和version
)是用于用户的便利性,并且本说明书中没有定义它们的语义。
也不是W3C版本控制指南https://www.w3.org/TR/xmlschema-guide2versioning/。
有没有出现这个属性是否应该使用指定的XML Schema文档(如2.3.1
)的版本达成共识,或用来编写模式文档的XSD语言的版本(即无论是1.0
或1.1
) ?还是在设计师/开发人员的语义选择上呢?
这是我想太多,但是当我在网络上搜索,我发现几个环节如[这一个]( http://wiki.archive.iatistandard.org/standard/revision/1.03/changes_specification#add_a_schema_version_attribute_to_the_root_element),但没有明确支持我的观点。这导致我问这个问题。 – xarx
[link](http://wiki.archive.iatistandard.org/standard/revision/1.03/changes_specification#add_a_schema_version_attribute_to_the_root_element)也支持你的观点。他们推荐使用'xs:schema/@ version'的*标准*是指它们的[** IATI标准**](http://wiki.archive.iatistandard.org/standard/start),* not *遵循W3C XML Schema标准。 – kjhughes