Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 3583 → Rev 3584

/programs/network/netsurf/libdom/test/testcases/tests/level3/validation/files/CVS/Entries
0,0 → 1,3
/book.xml/1.1/Fri Apr 3 02:47:58 2009//
/book.xsd/1.1/Fri Apr 3 02:47:58 2009//
D
/programs/network/netsurf/libdom/test/testcases/tests/level3/validation/files/CVS/Repository
0,0 → 1,0
2001/DOM-Test-Suite/tests/level3/validation/files
/programs/network/netsurf/libdom/test/testcases/tests/level3/validation/files/CVS/Root
0,0 → 1,0
:pserver:anonymous@dev.w3.org:/sources/public
/programs/network/netsurf/libdom/test/testcases/tests/level3/validation/files/CVS/Template
--- book.xml (nonexistent)
+++ book.xml (revision 3584)
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<book inStock="Yes" price="64.28" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="book.xsd">
+<title>Compilers: Principles, Techniques, and Tools</title>
+<author>Alfred V.Aho, Ravi Sethi, Jeffrey D. Ullman</author>
+<ISBN>0-201-10088-6</ISBN>
+<edition>Second</edition>
+<publisher>Addison Wesley</publisher>
+</book>
+
/programs/network/netsurf/libdom/test/testcases/tests/level3/validation/files/book.xsd
0,0 → 1,52
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 
<xsd:element name="book" type="bookType"/>
 
 
<xsd:complexType name="bookType">
<xsd:sequence>
<xsd:element ref="title"/>
<xsd:choice>
<xsd:element ref="author"/>
<xsd:element ref="editor"/>
</xsd:choice>
<xsd:element ref="ISBN"/>
<xsd:element ref="edition" minOccurs ="0"/>
<xsd:element ref="publisher"/>
<xsd:element ref="year" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="price" type="xsd:decimal"/>
<xsd:attribute name="inStock" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Yes"/>
<xsd:enumeration value="No"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
 
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="author" type="xsd:string"/>
<xsd:element name="ISBN" type="xsd:string"/>
<xsd:element name="edition" default="First">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="First"/>
<xsd:enumeration value="Second"/>
<xsd:enumeration value="Third"/>
<xsd:enumeration value="Fourth"/>
<xsd:enumeration value="Fifth"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="publisher" type="xsd:string"/>
<xsd:element name="editor" type ="xsd:string"/>
<xsd:element name="year">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:pattern value ="[0-9]{4}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:schema>