1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-15 23:24:06 +03:00

Test case for 570702

This commit is contained in:
Daniel Veillard 2009-08-12 12:40:39 +02:00
parent 11e28e4dfb
commit be390ed0a1
4 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1 @@
./test/schemas/570702_0.xml validates

View File

13
test/schemas/570702_0.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by asdf (fdsa) -->
<!--Sample XML file generated by XML Spy v4.3 U (http://www.xmlspy.com)-->
<dn_len_list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="Z:\proto\wsif\temp.xsd">
<dn_length>15</dn_length>
<destroy>127</destroy>
<dn_length>15</dn_length>
<destroy>127</destroy>
<dn_length>15</dn_length>
<destroy>127</destroy>
</dn_len_list>

25
test/schemas/570702_0.xsd Normal file
View File

@ -0,0 +1,25 @@
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="dn_len_list">
<xs:complexType>
<xs:sequence maxOccurs="3">
<xs:element name="dn_length" minOccurs="0">
<xs:annotation>
<xs:documentation>Destination Number Length</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:byte">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="15"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="destroy" type="xs:byte" minOccurs="0">
<xs:annotation>
<xs:documentation>destroy flag</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>