mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-25 06:03:34 +03:00
be9c6320d4
* xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h include/libxml/schemasInternals.h: lot of bug fixes, cleanup, starting to add proper namespace support too. * test/schemas/* result/schemas/*: added a number of tests fixed the result from some regression tests too. Daniel
68 lines
1.8 KiB
XML
68 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
|
|
<xs:element name="name" type="xs:string"/>
|
|
<xs:element name="qualification" type="xs:string"/>
|
|
<xs:element name="born" type="xs:date"/>
|
|
<xs:element name="dead" type="xs:date"/>
|
|
<xs:element name="isbn" type="xs:integer"/>
|
|
|
|
<xs:attribute name="id" type="xs:ID"/>
|
|
<xs:attribute name="available" type="xs:boolean"/>
|
|
<xs:attribute name="lang" type="xs:language"/>
|
|
|
|
<xs:element name="title">
|
|
<xs:complexType>
|
|
<xs:simpleContent>
|
|
<xs:extension base="xs:string">
|
|
<xs:attribute ref="lang"/>
|
|
</xs:extension>
|
|
</xs:simpleContent>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
|
|
<xs:element name="library">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element ref="book" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
|
|
<xs:element name="author">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element ref="name"/>
|
|
<xs:element ref="born"/>
|
|
<xs:element ref="dead" minOccurs="0"/>
|
|
</xs:sequence>
|
|
<xs:attribute ref="id"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
|
|
<xs:element name="book">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element ref="isbn"/>
|
|
<xs:element ref="title"/>
|
|
<xs:element ref="author" minOccurs="0" maxOccurs="unbounded"/>
|
|
<xs:element ref="character" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
<xs:attribute ref="id"/>
|
|
<xs:attribute ref="available"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
|
|
<xs:element name="character">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element ref="name"/>
|
|
<xs:element ref="born"/>
|
|
<xs:element ref="qualification"/>
|
|
</xs:sequence>
|
|
<xs:attribute ref="id"/>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
|
|
</xs:schema>
|