相关疑难解决方法(0)

XML Schema:什么是xsd:属性的默认类型?

在EBUCore模式(http://en.wikipedia.org/wiki/Metadata_standards)中,有一个名为"version"的属性定义为

<attribute name="version" default="1.5">
  <annotation>
    <documentation> The version of the schema for e.g. OAI management.</documentation>
  </annotation>
</attribute>
Run Code Online (Sandbox Code Playgroud)

正如你看到的,有给它定义"类型",我不知道,什么是默认类型为它- ,anyType,anySimpleType,,string ,...floatdouble

W3C规范(http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#section-Built-in-Simple-Type-Definition)有点难以理解:

·简单的ur-type定义·被认为具有无约束的词法空间,以及由所有内置原始数据类型的值空间的并集和值空间的所有成员的所有列表的集合组成的值空间.所有内置的原始数据类型.

那么,也许有人可以告诉我,将这个属性映射到哪种类型?

xml xsd

6
推荐指数
1
解决办法
1954
查看次数

标签 统计

xml ×1

xsd ×1