單項(xiàng)選擇題

對(duì)于XML文檔實(shí)例< decimals>-2.0-3.08.6< /decimals>,最恰當(dāng)?shù)孛枋鏊慕Y(jié)構(gòu)的XML Schema片段是()。

A.< xs:element name="decimals">< xs:simpleType>< xs:restriction base="xs:decimal">< xs:minInclusive value="-3.0"/>< xs:maxInclusive value="8.6"/>< /xs:restriction>< /xs:simpleType>< /xs:element>
B.< xs:element name="decimals">< xs:simpleType>< xs:union itemType="xs:decimal">< /xs:simpleType>< /xs:element>
C.< xs:element name="decimals">< xs:simpleType>< xs:list itemType="xs:decimal">< /xs:simpleType>< /xs:element>
D.< xs:element name="decimals">< xs:simpleType>< xs:all itemType="xs:decimal">< /xs:simpleType>< /xs:element>

微信掃碼免費(fèi)搜題