You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
710 B
25 lines
710 B
4 months ago
|
<?xml version="1.0"?>
|
||
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
||
|
elementFormDefault="qualified"
|
||
|
attributeFormDefault="unqualified">
|
||
|
<xs:simpleType name="myDouble">
|
||
|
<xs:union memberTypes="xs:double">
|
||
|
<xs:simpleType>
|
||
|
<xs:restriction base="xs:string">
|
||
|
<xs:pattern value="\s*(N/A)?\s*"/>
|
||
|
</xs:restriction>
|
||
|
</xs:simpleType>
|
||
|
</xs:union>
|
||
|
</xs:simpleType>
|
||
|
<xs:element name="element1" type="myDouble"/>
|
||
|
<xs:element name="element2">
|
||
|
<xs:complexType>
|
||
|
<xs:simpleContent>
|
||
|
<xs:extension base="myDouble">
|
||
|
<xs:attribute name="att" type="xs:string"/>
|
||
|
</xs:extension>
|
||
|
</xs:simpleContent>
|
||
|
</xs:complexType>
|
||
|
</xs:element>
|
||
|
</xs:schema>
|