最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

XML Schema union 元素

定義和用法

union 元素定義多個(gè) simpleType 定義的集合。

元素信息

出現(xiàn)次數(shù) 一次
父元素 simpleType
內(nèi)容 annotation、simpleType

語法

<union
id=ID
memberTypes="list of QNames"
any attributes
>

(annotation?,(simpleType*))

</union>

(? 符號(hào)聲明在 union 元素中該元素可出現(xiàn)零次或一次。)

屬性 描述
id 可選。規(guī)定該元素的唯一的 ID。
memberTypes 可選。規(guī)定在 schema 中定義的內(nèi)置數(shù)據(jù)類型或 simpleType 元素的名稱列表。
any attributes 可選。規(guī)定帶有 non-schema 命名空間的任何其他屬性。

實(shí)例

例子 1

本例是一個(gè)合并了兩個(gè)簡(jiǎn)單類型的簡(jiǎn)單類型:

<xs:element name="jeans_size">
  <xs:simpleType>
    <xs:union memberTypes="sizebyno sizebystring" />
  </xs:simpleType>
</xs:element>

<xs:simpleType name="sizebyno">
  <xs:restriction base="xs:positiveInteger">
    <xs:maxInclusive value="42"/>
  </xs:restriction>
</xs:simpleType>

<xs:simpleType name="sizebystring">
  <xs:restriction base="xs:string">
    <xs:enumeration value="small"/>
    <xs:enumeration value="medium"/>
    <xs:enumeration value="large"/>
  </xs:restriction>
</xs:simpleType>
华安县| 广灵县| 监利县| 井冈山市| 巴塘县| 玉溪市| 密山市| 望江县| 罗甸县| 西宁市| 吉林省| 拜城县| 临漳县| 金沙县| 永寿县| 沧州市| 阳高县| 达州市| 镇江市| 定西市| 郓城县| 高安市| 莱州市| 馆陶县| 灵丘县| 高州市| 崇阳县| 永安市| 宜君县| 浦北县| 偃师市| 灌云县| 台山市| 永春县| 九龙坡区| 杭锦旗| 湖南省| 南川市| 乐东| 曲靖市| 石家庄市|