summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-07-20 20:59:18 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-07-20 20:59:18 -0700
commit4e9e719d1eb5564e3594099a456da19bfb7a9c02 (patch)
tree830863850ef383aa4543c50c3c71d20191825c91
parentd8f85017074530278ea87fe76dce023406147539 (diff)
downloadtools-4e9e719d1eb5564e3594099a456da19bfb7a9c02.tar.gz
tools-4e9e719d1eb5564e3594099a456da19bfb7a9c02.tar.bz2
tools-4e9e719d1eb5564e3594099a456da19bfb7a9c02.tar.xz
tools-4e9e719d1eb5564e3594099a456da19bfb7a9c02.zip
Add guesswork XSD for xml files
-rw-r--r--client/dl/XMLSchema.xsd2262
-rw-r--r--client/dl/its.xsd926
-rw-r--r--client/dl/xlink.xsd80
-rw-r--r--client/dl/xml.xsd287
-rw-r--r--client/dl/xmlspec-its.xsd2772
-rwxr-xr-xclient/formatXML.sh13
-rw-r--r--client/indent.xsl7
-rw-r--r--client/tmw.xsd637
8 files changed, 6964 insertions, 20 deletions
diff --git a/client/dl/XMLSchema.xsd b/client/dl/XMLSchema.xsd
new file mode 100644
index 0000000..3711a93
--- /dev/null
+++ b/client/dl/XMLSchema.xsd
@@ -0,0 +1,2262 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- XML Schema schema for XML Schemas: Part 1: Structures -->
+<!-- Note this schema is NOT the normative structures schema. -->
+<!-- The prose copy in the structures REC is the normative -->
+<!-- version (which shouldn't differ from this one except for -->
+<!-- this comment and entity expansions, but just in case -->
+<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" [
+<!-- provide ID type information even for parsers which only read the
+ internal subset --><!ATTLIST xs:schema id ID #IMPLIED>
+<!ATTLIST xs:complexType id ID #IMPLIED>
+<!ATTLIST xs:complexContent id ID #IMPLIED>
+<!ATTLIST xs:simpleContent id ID #IMPLIED>
+<!ATTLIST xs:extension id ID #IMPLIED>
+<!ATTLIST xs:element id ID #IMPLIED>
+<!ATTLIST xs:group id ID #IMPLIED>
+<!ATTLIST xs:all id ID #IMPLIED>
+<!ATTLIST xs:choice id ID #IMPLIED>
+<!ATTLIST xs:sequence id ID #IMPLIED>
+<!ATTLIST xs:any id ID #IMPLIED>
+<!ATTLIST xs:anyAttribute id ID #IMPLIED>
+<!ATTLIST xs:attribute id ID #IMPLIED>
+<!ATTLIST xs:attributeGroup id ID #IMPLIED>
+<!ATTLIST xs:unique id ID #IMPLIED>
+<!ATTLIST xs:key id ID #IMPLIED>
+<!ATTLIST xs:keyref id ID #IMPLIED>
+<!ATTLIST xs:selector id ID #IMPLIED>
+<!ATTLIST xs:field id ID #IMPLIED>
+<!ATTLIST xs:include id ID #IMPLIED>
+<!ATTLIST xs:import id ID #IMPLIED>
+<!ATTLIST xs:redefine id ID #IMPLIED>
+<!ATTLIST xs:notation id ID #IMPLIED>
+<!--
+ keep this schema XML1.0 DTD valid
+ --><!ENTITY % schemaAttrs "xmlns:hfp CDATA #IMPLIED">
+<!ELEMENT hfp:hasFacet EMPTY>
+<!ATTLIST hfp:hasFacet name NMTOKEN #REQUIRED>
+<!ELEMENT hfp:hasProperty EMPTY>
+<!ATTLIST hfp:hasProperty name NMTOKEN #REQUIRED>
+<!ATTLIST hfp:hasProperty value CDATA #REQUIRED>
+<!--
+ Make sure that processors that do not read the external
+ subset will know about the various IDs we declare
+ --><!ATTLIST xs:simpleType id ID #IMPLIED>
+<!ATTLIST xs:maxExclusive id ID #IMPLIED>
+<!ATTLIST xs:minExclusive id ID #IMPLIED>
+<!ATTLIST xs:maxInclusive id ID #IMPLIED>
+<!ATTLIST xs:minInclusive id ID #IMPLIED>
+<!ATTLIST xs:totalDigits id ID #IMPLIED>
+<!ATTLIST xs:fractionDigits id ID #IMPLIED>
+<!ATTLIST xs:length id ID #IMPLIED>
+<!ATTLIST xs:minLength id ID #IMPLIED>
+<!ATTLIST xs:maxLength id ID #IMPLIED>
+<!ATTLIST xs:enumeration id ID #IMPLIED>
+<!ATTLIST xs:pattern id ID #IMPLIED>
+<!ATTLIST xs:appinfo id ID #IMPLIED>
+<!ATTLIST xs:documentation id ID #IMPLIED>
+<!ATTLIST xs:list id ID #IMPLIED>
+<!ATTLIST xs:union id ID #IMPLIED>
+]>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty" targetNamespace="http://www.w3.org/2001/XMLSchema" blockDefault="#all" elementFormDefault="qualified" version="1.0" xml:lang="EN">
+ <xs:annotation>
+ <xs:documentation>
+ Part 1 version: Id: structures.xsd,v 1.2 2004/01/15 11:34:25 ht Exp
+ Part 2 version: Id: datatypes.xsd,v 1.3 2004/01/23 18:11:13 ht Exp
+ </xs:documentation>
+ </xs:annotation>
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/2004/PER-xmlschema-1-20040318/structures.html">
+ The schema corresponding to this document is normative,
+ with respect to the syntactic constraints it expresses in the
+ XML Schema language. The documentation (within &lt;documentation&gt; elements)
+ below, is not normative, but rather highlights important aspects of
+ the W3C Recommendation of which this is a part</xs:documentation>
+ </xs:annotation>
+ <xs:annotation>
+ <xs:documentation>
+ The simpleType element and all of its members are defined
+ towards the end of this schema document</xs:documentation>
+ </xs:annotation>
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd">
+ <xs:annotation>
+ <xs:documentation>
+ Get access to the xml: attribute groups for xml:lang
+ as declared on 'schema' and 'documentation' below
+ </xs:documentation>
+ </xs:annotation>
+ </xs:import>
+ <xs:complexType name="openAttrs">
+ <xs:annotation>
+ <xs:documentation>
+ This type is extended by almost all schema types
+ to allow attributes from other namespaces to be
+ added to user schemas.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:restriction base="xs:anyType">
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="annotated">
+ <xs:annotation>
+ <xs:documentation>
+ This type is extended by all types which allow annotation
+ other than &lt;schema&gt; itself
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="xs:openAttrs">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:ID"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:group name="schemaTop">
+ <xs:annotation>
+ <xs:documentation>
+ This group is for the
+ elements which occur freely at the top level of schemas.
+ All of their types are based on the "annotated" type by extension.</xs:documentation>
+ </xs:annotation>
+ <xs:choice>
+ <xs:group ref="xs:redefinable"/>
+ <xs:element ref="xs:element"/>
+ <xs:element ref="xs:attribute"/>
+ <xs:element ref="xs:notation"/>
+ </xs:choice>
+ </xs:group>
+ <xs:group name="redefinable">
+ <xs:annotation>
+ <xs:documentation>
+ This group is for the
+ elements which can self-redefine (see &lt;redefine&gt; below).</xs:documentation>
+ </xs:annotation>
+ <xs:choice>
+ <xs:element ref="xs:simpleType"/>
+ <xs:element ref="xs:complexType"/>
+ <xs:element ref="xs:group"/>
+ <xs:element ref="xs:attributeGroup"/>
+ </xs:choice>
+ </xs:group>
+ <xs:simpleType name="formChoice">
+ <xs:annotation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:NMTOKEN">
+ <xs:enumeration value="qualified"/>
+ <xs:enumeration value="unqualified"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="reducedDerivationControl">
+ <xs:annotation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:derivationControl">
+ <xs:enumeration value="extension"/>
+ <xs:enumeration value="restriction"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="derivationSet">
+ <xs:annotation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ <xs:documentation>
+ #all or (possibly empty) subset of {extension, restriction}</xs:documentation>
+ </xs:annotation>
+ <xs:union>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="#all"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:list itemType="xs:reducedDerivationControl"/>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ <xs:simpleType name="typeDerivationControl">
+ <xs:annotation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:derivationControl">
+ <xs:enumeration value="extension"/>
+ <xs:enumeration value="restriction"/>
+ <xs:enumeration value="list"/>
+ <xs:enumeration value="union"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="fullDerivationSet">
+ <xs:annotation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ <xs:documentation>
+ #all or (possibly empty) subset of {extension, restriction, list, union}</xs:documentation>
+ </xs:annotation>
+ <xs:union>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="#all"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:list itemType="xs:typeDerivationControl"/>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ <xs:element name="schema" id="schema">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-schema"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:openAttrs">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="xs:include"/>
+ <xs:element ref="xs:import"/>
+ <xs:element ref="xs:redefine"/>
+ <xs:element ref="xs:annotation"/>
+ </xs:choice>
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="xs:schemaTop"/>
+ <xs:element ref="xs:annotation" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:sequence>
+ <xs:attribute name="targetNamespace" type="xs:anyURI"/>
+ <xs:attribute name="version" type="xs:token"/>
+ <xs:attribute name="finalDefault" type="xs:fullDerivationSet" use="optional" default=""/>
+ <xs:attribute name="blockDefault" type="xs:blockSet" use="optional" default=""/>
+ <xs:attribute name="attributeFormDefault" type="xs:formChoice" use="optional" default="unqualified"/>
+ <xs:attribute name="elementFormDefault" type="xs:formChoice" use="optional" default="unqualified"/>
+ <xs:attribute name="id" type="xs:ID"/>
+ <xs:attribute ref="xml:lang"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:key name="element">
+ <xs:selector xpath="xs:element"/>
+ <xs:field xpath="@name"/>
+ </xs:key>
+ <xs:key name="attribute">
+ <xs:selector xpath="xs:attribute"/>
+ <xs:field xpath="@name"/>
+ </xs:key>
+ <xs:key name="type">
+ <xs:selector xpath="xs:complexType|xs:simpleType"/>
+ <xs:field xpath="@name"/>
+ </xs:key>
+ <xs:key name="group">
+ <xs:selector xpath="xs:group"/>
+ <xs:field xpath="@name"/>
+ </xs:key>
+ <xs:key name="attributeGroup">
+ <xs:selector xpath="xs:attributeGroup"/>
+ <xs:field xpath="@name"/>
+ </xs:key>
+ <xs:key name="notation">
+ <xs:selector xpath="xs:notation"/>
+ <xs:field xpath="@name"/>
+ </xs:key>
+ <xs:key name="identityConstraint">
+ <xs:selector xpath=".//xs:key|.//xs:unique|.//xs:keyref"/>
+ <xs:field xpath="@name"/>
+ </xs:key>
+ </xs:element>
+ <xs:simpleType name="allNNI">
+ <xs:annotation>
+ <xs:documentation>
+ for maxOccurs</xs:documentation>
+ </xs:annotation>
+ <xs:union memberTypes="xs:nonNegativeInteger">
+ <xs:simpleType>
+ <xs:restriction base="xs:NMTOKEN">
+ <xs:enumeration value="unbounded"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ <xs:attributeGroup name="occurs">
+ <xs:annotation>
+ <xs:documentation>
+ for all particles</xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="minOccurs" type="xs:nonNegativeInteger" use="optional" default="1"/>
+ <xs:attribute name="maxOccurs" type="xs:allNNI" use="optional" default="1"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="defRef">
+ <xs:annotation>
+ <xs:documentation>
+ for element, group and attributeGroup,
+ which both define and reference</xs:documentation>
+ </xs:annotation>
+ <xs:attribute name="name" type="xs:NCName"/>
+ <xs:attribute name="ref" type="xs:QName"/>
+ </xs:attributeGroup>
+ <xs:group name="typeDefParticle">
+ <xs:annotation>
+ <xs:documentation>
+ 'complexType' uses this</xs:documentation>
+ </xs:annotation>
+ <xs:choice>
+ <xs:element name="group" type="xs:groupRef"/>
+ <xs:element ref="xs:all"/>
+ <xs:element ref="xs:choice"/>
+ <xs:element ref="xs:sequence"/>
+ </xs:choice>
+ </xs:group>
+ <xs:group name="nestedParticle">
+ <xs:choice>
+ <xs:element name="element" type="xs:localElement"/>
+ <xs:element name="group" type="xs:groupRef"/>
+ <xs:element ref="xs:choice"/>
+ <xs:element ref="xs:sequence"/>
+ <xs:element ref="xs:any"/>
+ </xs:choice>
+ </xs:group>
+ <xs:group name="particle">
+ <xs:choice>
+ <xs:element name="element" type="xs:localElement"/>
+ <xs:element name="group" type="xs:groupRef"/>
+ <xs:element ref="xs:all"/>
+ <xs:element ref="xs:choice"/>
+ <xs:element ref="xs:sequence"/>
+ <xs:element ref="xs:any"/>
+ </xs:choice>
+ </xs:group>
+ <xs:complexType name="attribute">
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:sequence>
+ <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="xs:defRef"/>
+ <xs:attribute name="type" type="xs:QName"/>
+ <xs:attribute name="use" use="optional" default="optional">
+ <xs:simpleType>
+ <xs:restriction base="xs:NMTOKEN">
+ <xs:enumeration value="prohibited"/>
+ <xs:enumeration value="optional"/>
+ <xs:enumeration value="required"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="default" type="xs:string"/>
+ <xs:attribute name="fixed" type="xs:string"/>
+ <xs:attribute name="form" type="xs:formChoice"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="topLevelAttribute">
+ <xs:complexContent>
+ <xs:restriction base="xs:attribute">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType"/>
+ </xs:sequence>
+ <xs:attribute name="ref" use="prohibited"/>
+ <xs:attribute name="form" use="prohibited"/>
+ <xs:attribute name="use" use="prohibited"/>
+ <xs:attribute name="name" use="required" type="xs:NCName"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:group name="attrDecls">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="attribute" type="xs:attribute"/>
+ <xs:element name="attributeGroup" type="xs:attributeGroupRef"/>
+ </xs:choice>
+ <xs:element ref="xs:anyAttribute" minOccurs="0"/>
+ </xs:sequence>
+ </xs:group>
+ <xs:element name="anyAttribute" type="xs:wildcard" id="anyAttribute">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-anyAttribute"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:group name="complexTypeModel">
+ <xs:choice>
+ <xs:element ref="xs:simpleContent"/>
+ <xs:element ref="xs:complexContent"/>
+ <xs:sequence>
+ <xs:annotation>
+ <xs:documentation>
+ This branch is short for
+ &lt;complexContent&gt;
+ &lt;restriction base="xs:anyType"&gt;
+ ...
+ &lt;/restriction&gt;
+ &lt;/complexContent&gt;</xs:documentation>
+ </xs:annotation>
+ <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
+ <xs:group ref="xs:attrDecls"/>
+ </xs:sequence>
+ </xs:choice>
+ </xs:group>
+ <xs:complexType name="complexType" abstract="true">
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:group ref="xs:complexTypeModel"/>
+ <xs:attribute name="name" type="xs:NCName">
+ <xs:annotation>
+ <xs:documentation>
+ Will be restricted to required or forbidden</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="mixed" type="xs:boolean" use="optional" default="false">
+ <xs:annotation>
+ <xs:documentation>
+ Not allowed if simpleContent child is chosen.
+ May be overriden by setting on complexContent child.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="abstract" type="xs:boolean" use="optional" default="false"/>
+ <xs:attribute name="final" type="xs:derivationSet"/>
+ <xs:attribute name="block" type="xs:derivationSet"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="topLevelComplexType">
+ <xs:complexContent>
+ <xs:restriction base="xs:complexType">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:group ref="xs:complexTypeModel"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:NCName" use="required"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="localComplexType">
+ <xs:complexContent>
+ <xs:restriction base="xs:complexType">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:group ref="xs:complexTypeModel"/>
+ </xs:sequence>
+ <xs:attribute name="name" use="prohibited"/>
+ <xs:attribute name="abstract" use="prohibited"/>
+ <xs:attribute name="final" use="prohibited"/>
+ <xs:attribute name="block" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="restrictionType">
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:group ref="xs:typeDefParticle"/>
+ <xs:group ref="xs:simpleRestrictionModel"/>
+ </xs:choice>
+ <xs:group ref="xs:attrDecls"/>
+ </xs:sequence>
+ <xs:attribute name="base" type="xs:QName" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="complexRestrictionType">
+ <xs:complexContent>
+ <xs:restriction base="xs:restrictionType">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:choice minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>This choice is added simply to
+ make this a valid restriction per the REC</xs:documentation>
+ </xs:annotation>
+ <xs:group ref="xs:typeDefParticle"/>
+ </xs:choice>
+ <xs:group ref="xs:attrDecls"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="extensionType">
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:sequence>
+ <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
+ <xs:group ref="xs:attrDecls"/>
+ </xs:sequence>
+ <xs:attribute name="base" type="xs:QName" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="complexContent" id="complexContent">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-complexContent"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:choice>
+ <xs:element name="restriction" type="xs:complexRestrictionType"/>
+ <xs:element name="extension" type="xs:extensionType"/>
+ </xs:choice>
+ <xs:attribute name="mixed" type="xs:boolean">
+ <xs:annotation>
+ <xs:documentation>
+ Overrides any setting on complexType parent.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="simpleRestrictionType">
+ <xs:complexContent>
+ <xs:restriction base="xs:restrictionType">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:choice minOccurs="0">
+ <xs:annotation>
+ <xs:documentation>This choice is added simply to
+ make this a valid restriction per the REC</xs:documentation>
+ </xs:annotation>
+ <xs:group ref="xs:simpleRestrictionModel"/>
+ </xs:choice>
+ <xs:group ref="xs:attrDecls"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="simpleExtensionType">
+ <xs:complexContent>
+ <xs:restriction base="xs:extensionType">
+ <xs:sequence>
+ <xs:annotation>
+ <xs:documentation>
+ No typeDefParticle group reference</xs:documentation>
+ </xs:annotation>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:group ref="xs:attrDecls"/>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="simpleContent" id="simpleContent">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-simpleContent"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:choice>
+ <xs:element name="restriction" type="xs:simpleRestrictionType"/>
+ <xs:element name="extension" type="xs:simpleExtensionType"/>
+ </xs:choice>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="complexType" type="xs:topLevelComplexType" id="complexType">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-complexType"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:simpleType name="blockSet">
+ <xs:annotation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ <xs:documentation>
+ #all or (possibly empty) subset of {substitution, extension,
+ restriction}</xs:documentation>
+ </xs:annotation>
+ <xs:union>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="#all"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:list>
+ <xs:simpleType>
+ <xs:restriction base="xs:derivationControl">
+ <xs:enumeration value="extension"/>
+ <xs:enumeration value="restriction"/>
+ <xs:enumeration value="substitution"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:list>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ <xs:complexType name="element" abstract="true">
+ <xs:annotation>
+ <xs:documentation>
+ The element element can be used either
+ at the top level to define an element-type binding globally,
+ or within a content model to either reference a globally-defined
+ element or type or declare an element-type binding locally.
+ The ref form is not allowed at the top level.</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element name="simpleType" type="xs:localSimpleType"/>
+ <xs:element name="complexType" type="xs:localComplexType"/>
+ </xs:choice>
+ <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="xs:defRef"/>
+ <xs:attribute name="type" type="xs:QName"/>
+ <xs:attribute name="substitutionGroup" type="xs:QName"/>
+ <xs:attributeGroup ref="xs:occurs"/>
+ <xs:attribute name="default" type="xs:string"/>
+ <xs:attribute name="fixed" type="xs:string"/>
+ <xs:attribute name="nillable" type="xs:boolean" use="optional" default="false"/>
+ <xs:attribute name="abstract" type="xs:boolean" use="optional" default="false"/>
+ <xs:attribute name="final" type="xs:derivationSet"/>
+ <xs:attribute name="block" type="xs:blockSet"/>
+ <xs:attribute name="form" type="xs:formChoice"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="topLevelElement">
+ <xs:complexContent>
+ <xs:restriction base="xs:element">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:choice minOccurs="0">
+ <xs:element name="simpleType" type="xs:localSimpleType"/>
+ <xs:element name="complexType" type="xs:localComplexType"/>
+ </xs:choice>
+ <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="ref" use="prohibited"/>
+ <xs:attribute name="form" use="prohibited"/>
+ <xs:attribute name="minOccurs" use="prohibited"/>
+ <xs:attribute name="maxOccurs" use="prohibited"/>
+ <xs:attribute name="name" use="required" type="xs:NCName"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="localElement">
+ <xs:complexContent>
+ <xs:restriction base="xs:element">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:choice minOccurs="0">
+ <xs:element name="simpleType" type="xs:localSimpleType"/>
+ <xs:element name="complexType" type="xs:localComplexType"/>
+ </xs:choice>
+ <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="substitutionGroup" use="prohibited"/>
+ <xs:attribute name="final" use="prohibited"/>
+ <xs:attribute name="abstract" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="element" type="xs:topLevelElement" id="element">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-element"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="group" abstract="true">
+ <xs:annotation>
+ <xs:documentation>
+ group type for explicit groups, named top-level groups and
+ group references</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:group ref="xs:particle" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:attributeGroup ref="xs:defRef"/>
+ <xs:attributeGroup ref="xs:occurs"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="realGroup">
+ <xs:complexContent>
+ <xs:restriction base="xs:group">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:choice minOccurs="0" maxOccurs="1">
+ <xs:element ref="xs:all"/>
+ <xs:element ref="xs:choice"/>
+ <xs:element ref="xs:sequence"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="namedGroup">
+ <xs:complexContent>
+ <xs:restriction base="xs:realGroup">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:choice minOccurs="1" maxOccurs="1">
+ <xs:element name="all">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="xs:all">
+ <xs:group ref="xs:allModel"/>
+ <xs:attribute name="minOccurs" use="prohibited"/>
+ <xs:attribute name="maxOccurs" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="choice" type="xs:simpleExplicitGroup"/>
+ <xs:element name="sequence" type="xs:simpleExplicitGroup"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:NCName"/>
+ <xs:attribute name="ref" use="prohibited"/>
+ <xs:attribute name="minOccurs" use="prohibited"/>
+ <xs:attribute name="maxOccurs" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="groupRef">
+ <xs:complexContent>
+ <xs:restriction base="xs:realGroup">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="ref" use="required" type="xs:QName"/>
+ <xs:attribute name="name" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="explicitGroup">
+ <xs:annotation>
+ <xs:documentation>
+ group type for the three kinds of group</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:restriction base="xs:group">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:group ref="xs:nestedParticle" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:NCName" use="prohibited"/>
+ <xs:attribute name="ref" type="xs:QName" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="simpleExplicitGroup">
+ <xs:complexContent>
+ <xs:restriction base="xs:explicitGroup">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:group ref="xs:nestedParticle" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="minOccurs" use="prohibited"/>
+ <xs:attribute name="maxOccurs" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:group name="allModel">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:annotation>
+ <xs:documentation>This choice with min/max is here to
+ avoid a pblm with the Elt:All/Choice/Seq
+ Particle derivation constraint</xs:documentation>
+ </xs:annotation>
+ <xs:element name="element" type="xs:narrowMaxMin"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:group>
+ <xs:complexType name="narrowMaxMin">
+ <xs:annotation>
+ <xs:documentation>restricted max/min</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:restriction base="xs:localElement">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:choice minOccurs="0">
+ <xs:element name="simpleType" type="xs:localSimpleType"/>
+ <xs:element name="complexType" type="xs:localComplexType"/>
+ </xs:choice>
+ <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="minOccurs" use="optional" default="1">
+ <xs:simpleType>
+ <xs:restriction base="xs:nonNegativeInteger">
+ <xs:enumeration value="0"/>
+ <xs:enumeration value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="maxOccurs" use="optional" default="1">
+ <xs:simpleType>
+ <xs:restriction base="xs:allNNI">
+ <xs:enumeration value="0"/>
+ <xs:enumeration value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="all">
+ <xs:annotation>
+ <xs:documentation>
+ Only elements allowed inside</xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:restriction base="xs:explicitGroup">
+ <xs:group ref="xs:allModel"/>
+ <xs:attribute name="minOccurs" use="optional" default="1">
+ <xs:simpleType>
+ <xs:restriction base="xs:nonNegativeInteger">
+ <xs:enumeration value="0"/>
+ <xs:enumeration value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="maxOccurs" use="optional" default="1">
+ <xs:simpleType>
+ <xs:restriction base="xs:allNNI">
+ <xs:enumeration value="1"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="all" id="all" type="xs:all">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-all"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="choice" type="xs:explicitGroup" id="choice">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-choice"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="sequence" type="xs:explicitGroup" id="sequence">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-sequence"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="group" type="xs:namedGroup" id="group">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-group"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="wildcard">
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:attribute name="namespace" type="xs:namespaceList" use="optional" default="##any"/>
+ <xs:attribute name="processContents" use="optional" default="strict">
+ <xs:simpleType>
+ <xs:restriction base="xs:NMTOKEN">
+ <xs:enumeration value="skip"/>
+ <xs:enumeration value="lax"/>
+ <xs:enumeration value="strict"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="any" id="any">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-any"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:wildcard">
+ <xs:attributeGroup ref="xs:occurs"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:annotation>
+ <xs:documentation>
+ simple type for the value of the 'namespace' attr of
+ 'any' and 'anyAttribute'</xs:documentation>
+ </xs:annotation>
+ <xs:annotation>
+ <xs:documentation>
+ Value is
+ ##any - - any non-conflicting WFXML/attribute at all
+
+ ##other - - any non-conflicting WFXML/attribute from
+ namespace other than targetNS
+
+ ##local - - any unqualified non-conflicting WFXML/attribute
+
+ one or - - any non-conflicting WFXML/attribute from
+ more URI the listed namespaces
+ references
+ (space separated)
+
+ ##targetNamespace or ##local may appear in the above list, to
+ refer to the targetNamespace of the enclosing
+ schema or an absent targetNamespace respectively</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType name="namespaceList">
+ <xs:annotation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ </xs:annotation>
+ <xs:union>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="##any"/>
+ <xs:enumeration value="##other"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:list>
+ <xs:simpleType>
+ <xs:union memberTypes="xs:anyURI">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="##targetNamespace"/>
+ <xs:enumeration value="##local"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:list>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ <xs:element name="attribute" type="xs:topLevelAttribute" id="attribute">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-attribute"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="attributeGroup" abstract="true">
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:group ref="xs:attrDecls"/>
+ <xs:attributeGroup ref="xs:defRef"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="namedAttributeGroup">
+ <xs:complexContent>
+ <xs:restriction base="xs:attributeGroup">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:group ref="xs:attrDecls"/>
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:NCName"/>
+ <xs:attribute name="ref" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="attributeGroupRef">
+ <xs:complexContent>
+ <xs:restriction base="xs:attributeGroup">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="ref" use="required" type="xs:QName"/>
+ <xs:attribute name="name" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="attributeGroup" type="xs:namedAttributeGroup" id="attributeGroup">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-attributeGroup"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="include" id="include">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-include"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:attribute name="schemaLocation" type="xs:anyURI" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="redefine" id="redefine">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-redefine"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:openAttrs">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="xs:annotation"/>
+ <xs:group ref="xs:redefinable"/>
+ </xs:choice>
+ <xs:attribute name="schemaLocation" type="xs:anyURI" use="required"/>
+ <xs:attribute name="id" type="xs:ID"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="import" id="import">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-import"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:attribute name="namespace" type="xs:anyURI"/>
+ <xs:attribute name="schemaLocation" type="xs:anyURI"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="selector" id="selector">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-selector"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:attribute name="xpath" use="required">
+ <xs:simpleType>
+ <xs:annotation>
+ <xs:documentation>A subset of XPath expressions for use
+in selectors</xs:documentation>
+ <xs:documentation>A utility type, not for public
+use</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:token">
+ <xs:annotation>
+ <xs:documentation>The following pattern is intended to allow XPath
+ expressions per the following EBNF:
+ Selector ::= Path ( '|' Path )*
+ Path ::= ('.//')? Step ( '/' Step )*
+ Step ::= '.' | NameTest
+ NameTest ::= QName | '*' | NCName ':' '*'
+ child:: is also allowed
+ </xs:documentation>
+ </xs:annotation>
+ <xs:pattern value="(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*(\|(\.//)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.)(/(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*)*">
+ </xs:pattern>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="field" id="field">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-field"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:attribute name="xpath" use="required">
+ <xs:simpleType>
+ <xs:annotation>
+ <xs:documentation>A subset of XPath expressions for use
+in fields</xs:documentation>
+ <xs:documentation>A utility type, not for public
+use</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:token">
+ <xs:annotation>
+ <xs:documentation>The following pattern is intended to allow XPath
+ expressions per the same EBNF as for selector,
+ with the following change:
+ Path ::= ('.//')? ( Step '/' )* ( Step | '@' NameTest )
+ </xs:documentation>
+ </xs:annotation>
+ <xs:pattern value="(\.//)?((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)/)*((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)|((attribute::|@)((\i\c*:)?(\i\c*|\*))))(\|(\.//)?((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)/)*((((child::)?((\i\c*:)?(\i\c*|\*)))|\.)|((attribute::|@)((\i\c*:)?(\i\c*|\*)))))*">
+ </xs:pattern>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="keybase">
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:sequence>
+ <xs:element ref="xs:selector"/>
+ <xs:element ref="xs:field" minOccurs="1" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:NCName" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:group name="identityConstraint">
+ <xs:annotation>
+ <xs:documentation>The three kinds of identity constraints, all with
+ type of or derived from 'keybase'.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:choice>
+ <xs:element ref="xs:unique"/>
+ <xs:element ref="xs:key"/>
+ <xs:element ref="xs:keyref"/>
+ </xs:choice>
+ </xs:group>
+ <xs:element name="unique" type="xs:keybase" id="unique">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-unique"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="key" type="xs:keybase" id="key">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-key"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="keyref" id="keyref">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-keyref"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:keybase">
+ <xs:attribute name="refer" type="xs:QName" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="notation" id="notation">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-notation"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:attribute name="name" type="xs:NCName" use="required"/>
+ <xs:attribute name="public" type="xs:public"/>
+ <xs:attribute name="system" type="xs:anyURI"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:simpleType name="public">
+ <xs:annotation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ <xs:documentation>
+ A public identifier, per ISO 8879</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:token"/>
+ </xs:simpleType>
+ <xs:element name="appinfo" id="appinfo">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-appinfo"/>
+ </xs:annotation>
+ <xs:complexType mixed="true">
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:any processContents="lax"/>
+ </xs:sequence>
+ <xs:attribute name="source" type="xs:anyURI"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="documentation" id="documentation">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-documentation"/>
+ </xs:annotation>
+ <xs:complexType mixed="true">
+ <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ <xs:any processContents="lax"/>
+ </xs:sequence>
+ <xs:attribute name="source" type="xs:anyURI"/>
+ <xs:attribute ref="xml:lang"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="annotation" id="annotation">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-annotation"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="xs:openAttrs">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="xs:appinfo"/>
+ <xs:element ref="xs:documentation"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:ID"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:annotation>
+ <xs:documentation>
+ notations for use within XML Schema schemas</xs:documentation>
+ </xs:annotation>
+ <xs:notation name="XMLSchemaStructures" public="structures" system="http://www.w3.org/2000/08/XMLSchema.xsd"/>
+ <xs:notation name="XML" public="REC-xml-19980210" system="http://www.w3.org/TR/1998/REC-xml-19980210"/>
+ <xs:complexType name="anyType" mixed="true">
+ <xs:annotation>
+ <xs:documentation>
+ Not the real urType, but as close an approximation as we can
+ get in the XML representation</xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
+ </xs:sequence>
+ <xs:anyAttribute processContents="lax"/>
+ </xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ First the built-in primitive datatypes. These definitions are for
+ information only, the real built-in definitions are magic.
+ </xs:documentation>
+ <xs:documentation>
+ For each built-in datatype in this schema (both primitive and
+ derived) can be uniquely addressed via a URI constructed
+ as follows:
+ 1) the base URI is the URI of the XML Schema namespace
+ 2) the fragment identifier is the name of the datatype
+
+ For example, to address the int datatype, the URI is:
+
+ http://www.w3.org/2001/XMLSchema#int
+
+ Additionally, each facet definition element can be uniquely
+ addressed via a URI constructed as follows:
+ 1) the base URI is the URI of the XML Schema namespace
+ 2) the fragment identifier is the name of the facet
+
+ For example, to address the maxInclusive facet, the URI is:
+
+ http://www.w3.org/2001/XMLSchema#maxInclusive
+
+ Additionally, each facet usage in a built-in datatype definition
+ can be uniquely addressed via a URI constructed as follows:
+ 1) the base URI is the URI of the XML Schema namespace
+ 2) the fragment identifier is the name of the datatype, followed
+ by a period (".") followed by the name of the facet
+
+ For example, to address the usage of the maxInclusive facet in
+ the definition of int, the URI is:
+
+ http://www.w3.org/2001/XMLSchema#int.maxInclusive
+
+ </xs:documentation>
+ </xs:annotation>
+ <xs:simpleType name="string" id="string">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="length"/>
+ <hfp:hasFacet name="minLength"/>
+ <hfp:hasFacet name="maxLength"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#string"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="preserve" id="string.preserve"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="boolean" id="boolean">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="finite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#boolean"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="boolean.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="float" id="float">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="total"/>
+ <hfp:hasProperty name="bounded" value="true"/>
+ <hfp:hasProperty name="cardinality" value="finite"/>
+ <hfp:hasProperty name="numeric" value="true"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#float"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="float.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="double" id="double">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="total"/>
+ <hfp:hasProperty name="bounded" value="true"/>
+ <hfp:hasProperty name="cardinality" value="finite"/>
+ <hfp:hasProperty name="numeric" value="true"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#double"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="double.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="decimal" id="decimal">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="totalDigits"/>
+ <hfp:hasFacet name="fractionDigits"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="total"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="true"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#decimal"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="decimal.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="duration" id="duration">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="partial"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#duration"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="duration.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="dateTime" id="dateTime">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="partial"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#dateTime"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="dateTime.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="time" id="time">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="partial"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#time"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="time.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="date" id="date">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="partial"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#date"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="date.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="gYearMonth" id="gYearMonth">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="partial"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gYearMonth"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="gYearMonth.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="gYear" id="gYear">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="partial"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gYear"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="gYear.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="gMonthDay" id="gMonthDay">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="partial"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gMonthDay"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="gMonthDay.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="gDay" id="gDay">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="partial"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gDay"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="gDay.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="gMonth" id="gMonth">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="maxInclusive"/>
+ <hfp:hasFacet name="maxExclusive"/>
+ <hfp:hasFacet name="minInclusive"/>
+ <hfp:hasFacet name="minExclusive"/>
+ <hfp:hasProperty name="ordered" value="partial"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#gMonth"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="gMonth.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="hexBinary" id="hexBinary">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="length"/>
+ <hfp:hasFacet name="minLength"/>
+ <hfp:hasFacet name="maxLength"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#binary"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="hexBinary.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="base64Binary" id="base64Binary">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="length"/>
+ <hfp:hasFacet name="minLength"/>
+ <hfp:hasFacet name="maxLength"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#base64Binary"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="base64Binary.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="anyURI" id="anyURI">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="length"/>
+ <hfp:hasFacet name="minLength"/>
+ <hfp:hasFacet name="maxLength"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#anyURI"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="anyURI.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="QName" id="QName">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="length"/>
+ <hfp:hasFacet name="minLength"/>
+ <hfp:hasFacet name="maxLength"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#QName"/>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="QName.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="NOTATION" id="NOTATION">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="length"/>
+ <hfp:hasFacet name="minLength"/>
+ <hfp:hasFacet name="maxLength"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#NOTATION"/>
+ <xs:documentation>
+ NOTATION cannot be used directly in a schema; rather a type
+ must be derived from it by specifying at least one enumeration
+ facet whose value is the name of a NOTATION declared in the
+ schema.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:anySimpleType">
+ <xs:whiteSpace value="collapse" fixed="true" id="NOTATION.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:annotation>
+ <xs:documentation>
+ Now the derived primitive types
+ </xs:documentation>
+ </xs:annotation>
+ <xs:simpleType name="normalizedString" id="normalizedString">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#normalizedString"/>
+ </xs:annotation>
+ <xs:restriction base="xs:string">
+ <xs:whiteSpace value="replace" id="normalizedString.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="token" id="token">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#token"/>
+ </xs:annotation>
+ <xs:restriction base="xs:normalizedString">
+ <xs:whiteSpace value="collapse" id="token.whiteSpace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="language" id="language">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#language"/>
+ </xs:annotation>
+ <xs:restriction base="xs:token">
+ <xs:pattern value="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*" id="language.pattern">
+ <xs:annotation>
+ <xs:documentation source="http://www.ietf.org/rfc/rfc3066.txt">
+ pattern specifies the content of section 2.12 of XML 1.0e2
+ and RFC 3066 (Revised version of RFC 1766).
+ </xs:documentation>
+ </xs:annotation>
+ </xs:pattern>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="IDREFS" id="IDREFS">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="length"/>
+ <hfp:hasFacet name="minLength"/>
+ <hfp:hasFacet name="maxLength"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#IDREFS"/>
+ </xs:annotation>
+ <xs:restriction>
+ <xs:simpleType>
+ <xs:list itemType="xs:IDREF"/>
+ </xs:simpleType>
+ <xs:minLength value="1" id="IDREFS.minLength"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ENTITIES" id="ENTITIES">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="length"/>
+ <hfp:hasFacet name="minLength"/>
+ <hfp:hasFacet name="maxLength"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#ENTITIES"/>
+ </xs:annotation>
+ <xs:restriction>
+ <xs:simpleType>
+ <xs:list itemType="xs:ENTITY"/>
+ </xs:simpleType>
+ <xs:minLength value="1" id="ENTITIES.minLength"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="NMTOKEN" id="NMTOKEN">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#NMTOKEN"/>
+ </xs:annotation>
+ <xs:restriction base="xs:token">
+ <xs:pattern value="\c+" id="NMTOKEN.pattern">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/REC-xml#NT-Nmtoken">
+ pattern matches production 7 from the XML spec
+ </xs:documentation>
+ </xs:annotation>
+ </xs:pattern>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="NMTOKENS" id="NMTOKENS">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasFacet name="length"/>
+ <hfp:hasFacet name="minLength"/>
+ <hfp:hasFacet name="maxLength"/>
+ <hfp:hasFacet name="enumeration"/>
+ <hfp:hasFacet name="whiteSpace"/>
+ <hfp:hasFacet name="pattern"/>
+ <hfp:hasProperty name="ordered" value="false"/>
+ <hfp:hasProperty name="bounded" value="false"/>
+ <hfp:hasProperty name="cardinality" value="countably infinite"/>
+ <hfp:hasProperty name="numeric" value="false"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#NMTOKENS"/>
+ </xs:annotation>
+ <xs:restriction>
+ <xs:simpleType>
+ <xs:list itemType="xs:NMTOKEN"/>
+ </xs:simpleType>
+ <xs:minLength value="1" id="NMTOKENS.minLength"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="Name" id="Name">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#Name"/>
+ </xs:annotation>
+ <xs:restriction base="xs:token">
+ <xs:pattern value="\i\c*" id="Name.pattern">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/REC-xml#NT-Name">
+ pattern matches production 5 from the XML spec
+ </xs:documentation>
+ </xs:annotation>
+ </xs:pattern>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="NCName" id="NCName">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#NCName"/>
+ </xs:annotation>
+ <xs:restriction base="xs:Name">
+ <xs:pattern value="[\i-[:]][\c-[:]]*" id="NCName.pattern">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/REC-xml-names/#NT-NCName">
+ pattern matches production 4 from the Namespaces in XML spec
+ </xs:documentation>
+ </xs:annotation>
+ </xs:pattern>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="ID" id="ID">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#ID"/>
+ </xs:annotation>
+ <xs:restriction base="xs:NCName"/>
+ </xs:simpleType>
+ <xs:simpleType name="IDREF" id="IDREF">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#IDREF"/>
+ </xs:annotation>
+ <xs:restriction base="xs:NCName"/>
+ </xs:simpleType>
+ <xs:simpleType name="ENTITY" id="ENTITY">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#ENTITY"/>
+ </xs:annotation>
+ <xs:restriction base="xs:NCName"/>
+ </xs:simpleType>
+ <xs:simpleType name="integer" id="integer">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#integer"/>
+ </xs:annotation>
+ <xs:restriction base="xs:decimal">
+ <xs:fractionDigits value="0" fixed="true" id="integer.fractionDigits"/>
+ <xs:pattern value="[\-+]?[0-9]+"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="nonPositiveInteger" id="nonPositiveInteger">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#nonPositiveInteger"/>
+ </xs:annotation>
+ <xs:restriction base="xs:integer">
+ <xs:maxInclusive value="0" id="nonPositiveInteger.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="negativeInteger" id="negativeInteger">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#negativeInteger"/>
+ </xs:annotation>
+ <xs:restriction base="xs:nonPositiveInteger">
+ <xs:maxInclusive value="-1" id="negativeInteger.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="long" id="long">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasProperty name="bounded" value="true"/>
+ <hfp:hasProperty name="cardinality" value="finite"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#long"/>
+ </xs:annotation>
+ <xs:restriction base="xs:integer">
+ <xs:minInclusive value="-9223372036854775808" id="long.minInclusive"/>
+ <xs:maxInclusive value="9223372036854775807" id="long.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="int" id="int">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#int"/>
+ </xs:annotation>
+ <xs:restriction base="xs:long">
+ <xs:minInclusive value="-2147483648" id="int.minInclusive"/>
+ <xs:maxInclusive value="2147483647" id="int.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="short" id="short">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#short"/>
+ </xs:annotation>
+ <xs:restriction base="xs:int">
+ <xs:minInclusive value="-32768" id="short.minInclusive"/>
+ <xs:maxInclusive value="32767" id="short.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="byte" id="byte">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#byte"/>
+ </xs:annotation>
+ <xs:restriction base="xs:short">
+ <xs:minInclusive value="-128" id="byte.minInclusive"/>
+ <xs:maxInclusive value="127" id="byte.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="nonNegativeInteger" id="nonNegativeInteger">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger"/>
+ </xs:annotation>
+ <xs:restriction base="xs:integer">
+ <xs:minInclusive value="0" id="nonNegativeInteger.minInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="unsignedLong" id="unsignedLong">
+ <xs:annotation>
+ <xs:appinfo>
+ <hfp:hasProperty name="bounded" value="true"/>
+ <hfp:hasProperty name="cardinality" value="finite"/>
+ </xs:appinfo>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#unsignedLong"/>
+ </xs:annotation>
+ <xs:restriction base="xs:nonNegativeInteger">
+ <xs:maxInclusive value="18446744073709551615" id="unsignedLong.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="unsignedInt" id="unsignedInt">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#unsignedInt"/>
+ </xs:annotation>
+ <xs:restriction base="xs:unsignedLong">
+ <xs:maxInclusive value="4294967295" id="unsignedInt.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="unsignedShort" id="unsignedShort">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#unsignedShort"/>
+ </xs:annotation>
+ <xs:restriction base="xs:unsignedInt">
+ <xs:maxInclusive value="65535" id="unsignedShort.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="unsignedByte" id="unsignedByte">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#unsignedByte"/>
+ </xs:annotation>
+ <xs:restriction base="xs:unsignedShort">
+ <xs:maxInclusive value="255" id="unsignedByte.maxInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="positiveInteger" id="positiveInteger">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#positiveInteger"/>
+ </xs:annotation>
+ <xs:restriction base="xs:nonNegativeInteger">
+ <xs:minInclusive value="1" id="positiveInteger.minInclusive"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="derivationControl">
+ <xs:annotation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ </xs:annotation>
+ <xs:restriction base="xs:NMTOKEN">
+ <xs:enumeration value="substitution"/>
+ <xs:enumeration value="extension"/>
+ <xs:enumeration value="restriction"/>
+ <xs:enumeration value="list"/>
+ <xs:enumeration value="union"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:group name="simpleDerivation">
+ <xs:choice>
+ <xs:element ref="xs:restriction"/>
+ <xs:element ref="xs:list"/>
+ <xs:element ref="xs:union"/>
+ </xs:choice>
+ </xs:group>
+ <xs:simpleType name="simpleDerivationSet">
+ <xs:annotation>
+ <xs:documentation>
+ #all or (possibly empty) subset of {restriction, union, list}
+ </xs:documentation>
+ <xs:documentation>
+ A utility type, not for public use</xs:documentation>
+ </xs:annotation>
+ <xs:union>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="#all"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType>
+ <xs:list>
+ <xs:simpleType>
+ <xs:restriction base="xs:derivationControl">
+ <xs:enumeration value="list"/>
+ <xs:enumeration value="union"/>
+ <xs:enumeration value="restriction"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:list>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ <xs:complexType name="simpleType" abstract="true">
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:group ref="xs:simpleDerivation"/>
+ <xs:attribute name="final" type="xs:simpleDerivationSet"/>
+ <xs:attribute name="name" type="xs:NCName">
+ <xs:annotation>
+ <xs:documentation>
+ Can be restricted to required or forbidden
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="topLevelSimpleType">
+ <xs:complexContent>
+ <xs:restriction base="xs:simpleType">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:group ref="xs:simpleDerivation"/>
+ </xs:sequence>
+ <xs:attribute name="name" use="required" type="xs:NCName">
+ <xs:annotation>
+ <xs:documentation>
+ Required at the top level
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="localSimpleType">
+ <xs:complexContent>
+ <xs:restriction base="xs:simpleType">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ <xs:group ref="xs:simpleDerivation"/>
+ </xs:sequence>
+ <xs:attribute name="name" use="prohibited">
+ <xs:annotation>
+ <xs:documentation>
+ Forbidden when nested
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="final" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="simpleType" type="xs:topLevelSimpleType" id="simpleType">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-simpleType"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:group name="facets">
+ <xs:annotation>
+ <xs:documentation>
+ We should use a substitution group for facets, but
+ that's ruled out because it would allow users to
+ add their own, which we're not ready for yet.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:choice>
+ <xs:element ref="xs:minExclusive"/>
+ <xs:element ref="xs:minInclusive"/>
+ <xs:element ref="xs:maxExclusive"/>
+ <xs:element ref="xs:maxInclusive"/>
+ <xs:element ref="xs:totalDigits"/>
+ <xs:element ref="xs:fractionDigits"/>
+ <xs:element ref="xs:length"/>
+ <xs:element ref="xs:minLength"/>
+ <xs:element ref="xs:maxLength"/>
+ <xs:element ref="xs:enumeration"/>
+ <xs:element ref="xs:whiteSpace"/>
+ <xs:element ref="xs:pattern"/>
+ </xs:choice>
+ </xs:group>
+ <xs:group name="simpleRestrictionModel">
+ <xs:sequence>
+ <xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0"/>
+ <xs:group ref="xs:facets" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ </xs:group>
+ <xs:element name="restriction" id="restriction">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-restriction">
+ base attribute and simpleType child are mutually
+ exclusive, but one or other is required
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:group ref="xs:simpleRestrictionModel"/>
+ <xs:attribute name="base" type="xs:QName" use="optional"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="list" id="list">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-list">
+ itemType attribute and simpleType child are mutually
+ exclusive, but one or other is required
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:sequence>
+ <xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="itemType" type="xs:QName" use="optional"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="union" id="union">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-union">
+ memberTypes attribute must be non-empty or there must be
+ at least one simpleType child
+ </xs:documentation>
+ </xs:annotation>
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:sequence>
+ <xs:element name="simpleType" type="xs:localSimpleType" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="memberTypes" use="optional">
+ <xs:simpleType>
+ <xs:list itemType="xs:QName"/>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="facet">
+ <xs:complexContent>
+ <xs:extension base="xs:annotated">
+ <xs:attribute name="value" use="required"/>
+ <xs:attribute name="fixed" type="xs:boolean" use="optional" default="false"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:complexType name="noFixedFacet">
+ <xs:complexContent>
+ <xs:restriction base="xs:facet">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="fixed" use="prohibited"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="minExclusive" id="minExclusive" type="xs:facet">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-minExclusive"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="minInclusive" id="minInclusive" type="xs:facet">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-minInclusive"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="maxExclusive" id="maxExclusive" type="xs:facet">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-maxExclusive"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="maxInclusive" id="maxInclusive" type="xs:facet">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-maxInclusive"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:complexType name="numFacet">
+ <xs:complexContent>
+ <xs:restriction base="xs:facet">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="value" type="xs:nonNegativeInteger" use="required"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ <xs:element name="totalDigits" id="totalDigits">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-totalDigits"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="xs:numFacet">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="value" type="xs:positiveInteger" use="required"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="fractionDigits" id="fractionDigits" type="xs:numFacet">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-fractionDigits"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="length" id="length" type="xs:numFacet">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-length"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="minLength" id="minLength" type="xs:numFacet">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-minLength"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="maxLength" id="maxLength" type="xs:numFacet">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-maxLength"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="enumeration" id="enumeration" type="xs:noFixedFacet">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-enumeration"/>
+ </xs:annotation>
+ </xs:element>
+ <xs:element name="whiteSpace" id="whiteSpace">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-whiteSpace"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="xs:facet">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="value" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:NMTOKEN">
+ <xs:enumeration value="preserve"/>
+ <xs:enumeration value="replace"/>
+ <xs:enumeration value="collapse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="pattern" id="pattern">
+ <xs:annotation>
+ <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#element-pattern"/>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:restriction base="xs:noFixedFacet">
+ <xs:sequence>
+ <xs:element ref="xs:annotation" minOccurs="0"/>
+ </xs:sequence>
+ <xs:attribute name="value" type="xs:string" use="required"/>
+ <xs:anyAttribute namespace="##other" processContents="lax"/>
+ </xs:restriction>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>
diff --git a/client/dl/its.xsd b/client/dl/its.xsd
new file mode 100644
index 0000000..9dbb432
--- /dev/null
+++ b/client/dl/its.xsd
@@ -0,0 +1,926 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:its="http://www.w3.org/2005/11/its">
+ <!--
+ Schema generated from ODD source 2007-04-02T11:42:44+09:00. This schema has been developed using the ODD (One Document Does it
+ all) language of the Text Encoding Initiative (). This is a literate programming language for writing XML schemas, with three
+ characteristics: (1) The element and attribute set is specified using
+ an XML vocabulary which includes support for macros
+ (like DTD entities, or schema patterns), a hierarchical
+ class system for attributes and elements, and creation
+ of modules. (2) The content models for elements and attributes is
+ written using embedded RELAX NG XML notation. (3) Documentation for elements, attributes, value
+ lists etc. is written inline, along with examples and
+ other supporting material. XSLT transformations
+ are provided by the TEI to extract documentation in
+ HTML, XSL FO or LaTeX forms, and to generate RELAX NG
+ documents and DTD. From the RELAX NG documents, James
+ Clark's trang
+ can be used to create XML Schema documents.
+ -->
+ <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
+ <xs:element name="rules">
+ <xs:annotation>
+ <xs:documentation>Container for global rules.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-rules.content">
+ <xs:attributeGroup ref="its:its-rules.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-rules.content">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="its:translateRule"/>
+ <xs:element ref="its:locNoteRule"/>
+ <xs:element ref="its:termRule"/>
+ <xs:element ref="its:dirRule"/>
+ <xs:element ref="its:rubyRule"/>
+ <xs:element ref="its:langRule"/>
+ <xs:element ref="its:withinTextRule"/>
+ </xs:choice>
+ </xs:complexType>
+ <xs:attributeGroup name="its-rules.attributes">
+ <xs:attribute name="version" use="required" type="xs:float">
+ <xs:annotation>
+ <xs:documentation>Version of the ITS schema.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attributeGroup ref="xlink:its-type"/>
+ <xs:attributeGroup ref="xlink:its-href"/>
+ <!--
+ <xs:attribute ref="xlink:href"/>
+ <xs:attribute ref="xlink:type"/> -->
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-att.selector.attributes">
+ <xs:attributeGroup ref="its:att.selector.attribute.selector"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.selector.attribute.selector">
+ <xs:attribute name="selector" use="required" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>XPath expression identifying the nodes to be selected.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-att.version.attributes">
+ <xs:attributeGroup ref="its:att.version.attribute.version"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.version.attribute.version">
+ <xs:attribute name="version" use="required" form="qualified" type="xs:float">
+ <xs:annotation>
+ <xs:documentation>Version of the ITS schema.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-att.local.no-ns.attributes">
+ <xs:attributeGroup ref="its:att.local.no-ns.attribute.translate"/>
+ <xs:attributeGroup ref="its:att.local.no-ns.attribute.locNote"/>
+ <xs:attributeGroup ref="its:att.local.no-ns.attribute.locNoteType"/>
+ <xs:attributeGroup ref="its:att.local.no-ns.attribute.locNoteRef"/>
+ <xs:attributeGroup ref="its:att.local.no-ns.attribute.termInfoRef"/>
+ <xs:attributeGroup ref="its:att.local.no-ns.attribute.term"/>
+ <xs:attributeGroup ref="its:att.local.no-ns.attribute.dir"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.no-ns.attribute.translate">
+ <xs:attribute name="translate">
+ <xs:annotation>
+ <xs:documentation>The Translate data category information to be attached to
+ the current node.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes">
+ <xs:annotation>
+ <xs:documentation>The nodes need to be translated.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="no">
+ <xs:annotation>
+ <xs:documentation>The nodes must not be translated.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.no-ns.attribute.locNote">
+ <xs:attribute name="locNote" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Localization note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.no-ns.attribute.locNoteType">
+ <xs:attribute name="locNoteType">
+ <xs:annotation>
+ <xs:documentation>The type of localization note.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="alert">
+ <xs:annotation>
+ <xs:documentation>Localization note is an alert.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="description">
+ <xs:annotation>
+ <xs:documentation>Localization note is a description.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.no-ns.attribute.locNoteRef">
+ <xs:attribute name="locNoteRef" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>URI referring to the location of the localization note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.no-ns.attribute.termInfoRef">
+ <xs:attribute name="termInfoRef" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>Pointer to a resource containing
+ information about the term.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.no-ns.attribute.term">
+ <xs:attribute name="term">
+ <xs:annotation>
+ <xs:documentation>Indicates a term locally.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes">
+ <xs:annotation>
+ <xs:documentation>The value 'yes' means that this is a term.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="no">
+ <xs:annotation>
+ <xs:documentation>The value 'no' means that this is not a term.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.no-ns.attribute.dir">
+ <xs:attribute name="dir">
+ <xs:annotation>
+ <xs:documentation>The text direction for the context.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="ltr">
+ <xs:annotation>
+ <xs:documentation>Left-to-right text.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="rtl">
+ <xs:annotation>
+ <xs:documentation>Right-to-left text.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="lro">
+ <xs:annotation>
+ <xs:documentation>Left-to-right override.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="rlo">
+ <xs:annotation>
+ <xs:documentation>Right-to-left override.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-att.local.with-ns.attributes">
+ <xs:attributeGroup ref="its:att.local.with-ns.attribute.translate"/>
+ <xs:attributeGroup ref="its:att.local.with-ns.attribute.locNote"/>
+ <xs:attributeGroup ref="its:att.local.with-ns.attribute.locNoteType"/>
+ <xs:attributeGroup ref="its:att.local.with-ns.attribute.locNoteRef"/>
+ <xs:attributeGroup ref="its:att.local.with-ns.attribute.termInfoRef"/>
+ <xs:attributeGroup ref="its:att.local.with-ns.attribute.term"/>
+ <xs:attributeGroup ref="its:att.local.with-ns.attribute.dir"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.with-ns.attribute.translate">
+ <xs:attribute name="translate" form="qualified">
+ <xs:annotation>
+ <xs:documentation>The Translate data category information to be attached to
+ the current node.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes">
+ <xs:annotation>
+ <xs:documentation>The nodes need to be translated.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="no">
+ <xs:annotation>
+ <xs:documentation>The nodes must not be translated.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.with-ns.attribute.locNote">
+ <xs:attribute name="locNote" form="qualified" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Localization note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.with-ns.attribute.locNoteType">
+ <xs:attribute name="locNoteType" form="qualified">
+ <xs:annotation>
+ <xs:documentation>The type of localization note.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="alert">
+ <xs:annotation>
+ <xs:documentation>Localization note is an alert.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="description">
+ <xs:annotation>
+ <xs:documentation>Localization note is a description.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.with-ns.attribute.locNoteRef">
+ <xs:attribute name="locNoteRef" form="qualified" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>URI referring to the location of the localization note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.with-ns.attribute.termInfoRef">
+ <xs:attribute name="termInfoRef" form="qualified" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>Pointer to a resource containing
+ information about the term.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.with-ns.attribute.term">
+ <xs:attribute name="term" form="qualified">
+ <xs:annotation>
+ <xs:documentation>Indicates a term locally.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes">
+ <xs:annotation>
+ <xs:documentation>The value 'yes' means that this is a term.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="no">
+ <xs:annotation>
+ <xs:documentation>The value 'no' means that this is not a term.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.local.with-ns.attribute.dir">
+ <xs:attribute name="dir" form="qualified">
+ <xs:annotation>
+ <xs:documentation>The text direction for the context.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="ltr">
+ <xs:annotation>
+ <xs:documentation>Left-to-right text.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="rtl">
+ <xs:annotation>
+ <xs:documentation>Right-to-left text.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="lro">
+ <xs:annotation>
+ <xs:documentation>Left-to-right override.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="rlo">
+ <xs:annotation>
+ <xs:documentation>Right-to-left override.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="span">
+ <xs:annotation>
+ <xs:documentation>Inline element to contain ITS information.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-span.content">
+ <xs:attributeGroup ref="its:its-span.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-span.content" mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="its:ruby"/>
+ <xs:element ref="its:span"/>
+ </xs:choice>
+ </xs:complexType>
+ <xs:attributeGroup name="its-span.attributes">
+ <xs:attributeGroup ref="its:its-att.local.no-ns.attributes"/>
+ </xs:attributeGroup>
+ <xs:element name="translateRule">
+ <xs:annotation>
+ <xs:documentation>Rule about the Translate data category.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attributeGroup ref="its:its-translateRule.attributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="its-translateRule.attributes">
+ <xs:attributeGroup ref="its:its-att.selector.attributes"/>
+ <xs:attribute name="translate" use="required">
+ <xs:annotation>
+ <xs:documentation>The Translate data category information to be
+ applied to selected nodes.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes">
+ <xs:annotation>
+ <xs:documentation>The nodes need to be translated.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="no">
+ <xs:annotation>
+ <xs:documentation>The nodes must not be translated.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-att.translate.attributes">
+ <xs:attributeGroup ref="its:att.translate.attribute.translate"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.translate.attribute.translate">
+ <xs:attribute name="translate" form="qualified">
+ <xs:annotation>
+ <xs:documentation>The Translate data category information to be attached to
+ the current node.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes">
+ <xs:annotation>
+ <xs:documentation>The nodes need to be translated.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="no">
+ <xs:annotation>
+ <xs:documentation>The nodes must not be translated.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="locNoteRule">
+ <xs:annotation>
+ <xs:documentation>Rule about the Localization Note data category.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-locNoteRule.content">
+ <xs:attributeGroup ref="its:its-locNoteRule.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-locNoteRule.content">
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="its:locNote"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:attributeGroup name="its-locNoteRule.attributes">
+ <xs:attributeGroup ref="its:its-att.selector.attributes"/>
+ <xs:attribute name="locNotePointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node that holds the localization note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="locNoteType" use="required">
+ <xs:annotation>
+ <xs:documentation>The type of localization note.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="alert">
+ <xs:annotation>
+ <xs:documentation>Localization note is an alert.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="description">
+ <xs:annotation>
+ <xs:documentation>Localization note is a description.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="locNoteRef" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>URI referring to the location of the localization note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="locNoteRefPointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node that holds the URI referring to the location of the localization note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="locNote">
+ <xs:annotation>
+ <xs:documentation>Contains a localization note.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-locNote.content">
+ <xs:attributeGroup ref="its:its-locNote.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-locNote.content" mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="its:ruby"/>
+ <xs:element ref="its:span"/>
+ </xs:choice>
+ </xs:complexType>
+ <xs:attributeGroup name="its-locNote.attributes">
+ <xs:attributeGroup ref="its:its-att.local.no-ns.attributes"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-att.locNote.attributes">
+ <xs:attributeGroup ref="its:att.locNote.attribute.locNote"/>
+ <xs:attributeGroup ref="its:att.locNote.attribute.locNoteType"/>
+ <xs:attributeGroup ref="its:att.locNote.attribute.locNoteRef"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.locNote.attribute.locNote">
+ <xs:attribute name="locNote" form="qualified" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Localization note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.locNote.attribute.locNoteType">
+ <xs:attribute name="locNoteType" form="qualified">
+ <xs:annotation>
+ <xs:documentation>The type of localization note.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="alert">
+ <xs:annotation>
+ <xs:documentation>Localization note is an alert.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="description">
+ <xs:annotation>
+ <xs:documentation>Localization note is a description.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.locNote.attribute.locNoteRef">
+ <xs:attribute name="locNoteRef" form="qualified" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>URI referring to the location of the localization note.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="termRule">
+ <xs:annotation>
+ <xs:documentation>Rule about the Terminology data category.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attributeGroup ref="its:its-termRule.attributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="its-termRule.attributes">
+ <xs:attributeGroup ref="its:its-att.selector.attributes"/>
+ <xs:attribute name="term" use="required">
+ <xs:annotation>
+ <xs:documentation>Indicates whether the selection is a term or not.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes">
+ <xs:annotation>
+ <xs:documentation>The value 'yes' means that this is a term.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="no">
+ <xs:annotation>
+ <xs:documentation>The value 'no' means that this is not a term.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="termInfoRef" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>URI referring to the resource providing information about the term.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="termInfoRefPointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node containing a URI referring to the resource providing information about the term.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="termInfoPointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node containing
+ information about the term.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-att.term.attributes">
+ <xs:attributeGroup ref="its:att.term.attribute.termInfoRef"/>
+ <xs:attributeGroup ref="its:att.term.attribute.term"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.term.attribute.termInfoRef">
+ <xs:attribute name="termInfoRef" form="qualified" type="xs:anyURI">
+ <xs:annotation>
+ <xs:documentation>Pointer to a resource containing
+ information about the term.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.term.attribute.term">
+ <xs:attribute name="term" form="qualified">
+ <xs:annotation>
+ <xs:documentation>Indicates a term locally.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes">
+ <xs:annotation>
+ <xs:documentation>The value 'yes' means that this is a term.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="no">
+ <xs:annotation>
+ <xs:documentation>The value 'no' means that this is not a term.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="dirRule">
+ <xs:annotation>
+ <xs:documentation>Rule about the Directionality data category.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attributeGroup ref="its:its-dirRule.attributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="its-dirRule.attributes">
+ <xs:attributeGroup ref="its:its-att.selector.attributes"/>
+ <xs:attribute name="dir" use="required">
+ <xs:annotation>
+ <xs:documentation>The text direction for the selection.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="ltr">
+ <xs:annotation>
+ <xs:documentation>Left-to-right text.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="rtl">
+ <xs:annotation>
+ <xs:documentation>Right-to-left text.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="lro">
+ <xs:annotation>
+ <xs:documentation>Left-to-right override.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="rlo">
+ <xs:annotation>
+ <xs:documentation>Right-to-left override.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-att.dir.attributes">
+ <xs:attributeGroup ref="its:att.dir.attribute.dir"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="att.dir.attribute.dir">
+ <xs:attribute name="dir" form="qualified">
+ <xs:annotation>
+ <xs:documentation>The text direction for the context.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="ltr">
+ <xs:annotation>
+ <xs:documentation>Left-to-right text.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="rtl">
+ <xs:annotation>
+ <xs:documentation>Right-to-left text.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="lro">
+ <xs:annotation>
+ <xs:documentation>Left-to-right override.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="rlo">
+ <xs:annotation>
+ <xs:documentation>Right-to-left override.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="rubyRule">
+ <xs:annotation>
+ <xs:documentation>Rule about the Ruby data category.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-rubyRule.content">
+ <xs:attributeGroup ref="its:its-rubyRule.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-rubyRule.content">
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="its:rubyText"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:attributeGroup name="its-rubyRule.attributes">
+ <xs:attributeGroup ref="its:its-att.selector.attributes"/>
+ <xs:attribute name="rubyPointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node that corresponds to a ruby element</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="rtPointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node that
+ corresponds to a rt element</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="rpPointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node that
+ corresponds to a rp element</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="rbcPointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node that
+ corresponds to a rbc element</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="rtcPointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node that
+ corresponds to a rtc element</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ <xs:attribute name="rbspanPointer" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node that corresponds to a rbspan attribute.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="rubyText">
+ <xs:annotation>
+ <xs:documentation>Ruby text.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="its:its-rubyText.attributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="its-rubyText.attributes">
+ <xs:attributeGroup ref="its:its-att.local.no-ns.attributes"/>
+ <xs:attribute name="rbspan" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Allows an rt element to span multiple rb elements in complex ruby markup.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="ruby">
+ <xs:annotation>
+ <xs:documentation>Ruby markup.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-ruby.content">
+ <xs:attributeGroup ref="its:its-ruby.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-ruby.content">
+ <xs:choice>
+ <xs:sequence>
+ <xs:element ref="its:rb"/>
+ <xs:choice>
+ <xs:element ref="its:rt"/>
+ <xs:sequence>
+ <xs:element ref="its:rp"/>
+ <xs:element ref="its:rt"/>
+ <xs:element ref="its:rp"/>
+ </xs:sequence>
+ </xs:choice>
+ </xs:sequence>
+ <xs:sequence>
+ <xs:element ref="its:rbc"/>
+ <xs:element ref="its:rtc"/>
+ <xs:element minOccurs="0" ref="its:rtc"/>
+ </xs:sequence>
+ </xs:choice>
+ </xs:complexType>
+ <xs:attributeGroup name="its-ruby.attributes">
+ <xs:attributeGroup ref="its:its-att.local.no-ns.attributes"/>
+ </xs:attributeGroup>
+ <xs:element name="rb">
+ <xs:annotation>
+ <xs:documentation>Ruby base text.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-rb.content">
+ <xs:attributeGroup ref="its:its-rb.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-rb.content" mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="its:span"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:attributeGroup name="its-rb.attributes">
+ <xs:attributeGroup ref="its:its-att.local.no-ns.attributes"/>
+ </xs:attributeGroup>
+ <xs:element name="rt">
+ <xs:annotation>
+ <xs:documentation>Ruby text.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-rt.content">
+ <xs:attributeGroup ref="its:its-rt.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-rt.content" mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="its:span"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:attributeGroup name="its-rt.attributes">
+ <xs:attributeGroup ref="its:its-att.local.no-ns.attributes"/>
+ <xs:attribute name="rbspan" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Allows an rt element to span multiple rb elements in complex ruby markup.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="rbc">
+ <xs:annotation>
+ <xs:documentation>Container for rb elements in the case of complex ruby markup.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-rbc.content">
+ <xs:attributeGroup ref="its:its-rbc.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-rbc.content">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="its:rb"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:attributeGroup name="its-rbc.attributes">
+ <xs:attributeGroup ref="its:its-att.local.no-ns.attributes"/>
+ </xs:attributeGroup>
+ <xs:element name="rtc">
+ <xs:annotation>
+ <xs:documentation>Container for rt elements in the case of complex ruby markup. </xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="its:its-rtc.content">
+ <xs:attributeGroup ref="its:its-rtc.attributes"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="its-rtc.content">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="its:rt"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:attributeGroup name="its-rtc.attributes">
+ <xs:attributeGroup ref="its:its-att.local.no-ns.attributes"/>
+ </xs:attributeGroup>
+ <xs:element name="rp">
+ <xs:annotation>
+ <xs:documentation>Used in the case of simple ruby markup to specify characters that can denote the beginning and end of ruby text when user agents do not have other ways to present ruby text distinctively from the base text.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType mixed="true">
+ <xs:attributeGroup ref="its:its-rp.attributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="its-rp.attributes">
+ <xs:attributeGroup ref="its:its-att.local.no-ns.attributes"/>
+ </xs:attributeGroup>
+ <xs:element name="langRule">
+ <xs:annotation>
+ <xs:documentation>Rule about the Language Information data category.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attributeGroup ref="its:its-langRule.attributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="its-langRule.attributes">
+ <xs:attributeGroup ref="its:its-att.selector.attributes"/>
+ <xs:attribute name="langPointer" use="required" type="xs:string">
+ <xs:annotation>
+ <xs:documentation>Relative XPath expression pointing to a node that contains language information.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="withinTextRule">
+ <xs:annotation>
+ <xs:documentation>Rule about the Elements Within Text data category.</xs:documentation>
+ </xs:annotation>
+ <xs:complexType>
+ <xs:attributeGroup ref="its:its-withinTextRule.attributes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="its-withinTextRule.attributes">
+ <xs:attributeGroup ref="its:its-att.selector.attributes"/>
+ <xs:attribute name="withinText" use="required">
+ <xs:annotation>
+ <xs:documentation>States whether current context is regarded as
+ "within text".</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes">
+ <xs:annotation>
+ <xs:documentation>The element and its content are part of the flow of its parent element.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="no">
+ <xs:annotation>
+ <xs:documentation>The element splits the text flow of its parent element and its content is an independent text flow.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ <xs:enumeration value="nested">
+ <xs:annotation>
+ <xs:documentation>The element is part of the flow of its parent element, its content is an independent flow.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+</xs:schema>
diff --git a/client/dl/xlink.xsd b/client/dl/xlink.xsd
new file mode 100644
index 0000000..6349600
--- /dev/null
+++ b/client/dl/xlink.xsd
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.w3.org/1999/xlink" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <xs:import schemaLocation="xmlspec-its.xsd"/>
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
+ <xs:attribute name="type">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="simple"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attributeGroup name="show">
+ <xs:attribute name="show" use="optional" form="qualified">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="embed"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="actuate">
+ <xs:attribute name="actuate" use="optional" form="qualified">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="onLoad"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="show1">
+ <xs:attribute name="show" use="optional" form="qualified">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="replace"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="actuate1">
+ <xs:attribute name="actuate" use="optional" form="qualified">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="onRequest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="show2">
+ <xs:attribute name="show" use="optional" form="qualified">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="new"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-type">
+ <xs:attribute name="type" use="optional">
+ <xs:annotation>
+ <xs:documentation>Type of pointer to external rules files.</xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="simple">
+ <xs:annotation>
+ <xs:documentation>Simple link.</xs:documentation>
+ </xs:annotation>
+ </xs:enumeration>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="its-href">
+ <xs:attribute name="href" type="xs:anyURI" use="optional">
+ <xs:annotation>
+ <xs:documentation>Pointer to external rules files.</xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+ </xs:attributeGroup>
+</xs:schema>
diff --git a/client/dl/xml.xsd b/client/dl/xml.xsd
new file mode 100644
index 0000000..aea7d0d
--- /dev/null
+++ b/client/dl/xml.xsd
@@ -0,0 +1,287 @@
+<?xml version='1.0'?>
+<?xml-stylesheet href="../2008/09/xsd.xsl" type="text/xsl"?>
+<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns ="http://www.w3.org/1999/xhtml"
+ xml:lang="en">
+
+ <xs:annotation>
+ <xs:documentation>
+ <div>
+ <h1>About the XML namespace</h1>
+
+ <div class="bodytext">
+ <p>
+ This schema document describes the XML namespace, in a form
+ suitable for import by other schema documents.
+ </p>
+ <p>
+ See <a href="http://www.w3.org/XML/1998/namespace.html">
+ http://www.w3.org/XML/1998/namespace.html</a> and
+ <a href="http://www.w3.org/TR/REC-xml">
+ http://www.w3.org/TR/REC-xml</a> for information
+ about this namespace.
+ </p>
+ <p>
+ Note that local names in this namespace are intended to be
+ defined only by the World Wide Web Consortium or its subgroups.
+ The names currently defined in this namespace are listed below.
+ They should not be used with conflicting semantics by any Working
+ Group, specification, or document instance.
+ </p>
+ <p>
+ See further below in this document for more information about <a
+ href="#usage">how to refer to this schema document from your own
+ XSD schema documents</a> and about <a href="#nsversioning">the
+ namespace-versioning policy governing this schema document</a>.
+ </p>
+ </div>
+ </div>
+ </xs:documentation>
+ </xs:annotation>
+
+ <xs:attribute name="lang">
+ <xs:annotation>
+ <xs:documentation>
+ <div>
+
+ <h3>lang (as an attribute name)</h3>
+ <p>
+ denotes an attribute whose value
+ is a language code for the natural language of the content of
+ any element; its value is inherited. This name is reserved
+ by virtue of its definition in the XML specification.</p>
+
+ </div>
+ <div>
+ <h4>Notes</h4>
+ <p>
+ Attempting to install the relevant ISO 2- and 3-letter
+ codes as the enumerated possible values is probably never
+ going to be a realistic possibility.
+ </p>
+ <p>
+ See BCP 47 at <a href="http://www.rfc-editor.org/rfc/bcp/bcp47.txt">
+ http://www.rfc-editor.org/rfc/bcp/bcp47.txt</a>
+ and the IANA language subtag registry at
+ <a href="http://www.iana.org/assignments/language-subtag-registry">
+ http://www.iana.org/assignments/language-subtag-registry</a>
+ for further information.
+ </p>
+ <p>
+ The union allows for the 'un-declaration' of xml:lang with
+ the empty string.
+ </p>
+ </div>
+ </xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:union memberTypes="xs:language">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value=""/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="space">
+ <xs:annotation>
+ <xs:documentation>
+ <div>
+
+ <h3>space (as an attribute name)</h3>
+ <p>
+ denotes an attribute whose
+ value is a keyword indicating what whitespace processing
+ discipline is intended for the content of the element; its
+ value is inherited. This name is reserved by virtue of its
+ definition in the XML specification.</p>
+
+ </div>
+ </xs:documentation>
+ </xs:annotation>
+ <xs:simpleType>
+ <xs:restriction base="xs:NCName">
+ <xs:enumeration value="default"/>
+ <xs:enumeration value="preserve"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+
+ <xs:attribute name="base" type="xs:anyURI"> <xs:annotation>
+ <xs:documentation>
+ <div>
+
+ <h3>base (as an attribute name)</h3>
+ <p>
+ denotes an attribute whose value
+ provides a URI to be used as the base for interpreting any
+ relative URIs in the scope of the element on which it
+ appears; its value is inherited. This name is reserved
+ by virtue of its definition in the XML Base specification.</p>
+
+ <p>
+ See <a
+ href="http://www.w3.org/TR/xmlbase/">http://www.w3.org/TR/xmlbase/</a>
+ for information about this attribute.
+ </p>
+ </div>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+
+ <xs:attribute name="id" type="xs:ID">
+ <xs:annotation>
+ <xs:documentation>
+ <div>
+
+ <h3>id (as an attribute name)</h3>
+ <p>
+ denotes an attribute whose value
+ should be interpreted as if declared to be of type ID.
+ This name is reserved by virtue of its definition in the
+ xml:id specification.</p>
+
+ <p>
+ See <a
+ href="http://www.w3.org/TR/xml-id/">http://www.w3.org/TR/xml-id/</a>
+ for information about this attribute.
+ </p>
+ </div>
+ </xs:documentation>
+ </xs:annotation>
+ </xs:attribute>
+
+ <xs:attributeGroup name="specialAttrs">
+ <xs:attribute ref="xml:base"/>
+ <xs:attribute ref="xml:lang"/>
+ <xs:attribute ref="xml:space"/>
+ <xs:attribute ref="xml:id"/>
+ </xs:attributeGroup>
+
+ <xs:annotation>
+ <xs:documentation>
+ <div>
+
+ <h3>Father (in any context at all)</h3>
+
+ <div class="bodytext">
+ <p>
+ denotes Jon Bosak, the chair of
+ the original XML Working Group. This name is reserved by
+ the following decision of the W3C XML Plenary and
+ XML Coordination groups:
+ </p>
+ <blockquote>
+ <p>
+ In appreciation for his vision, leadership and
+ dedication the W3C XML Plenary on this 10th day of
+ February, 2000, reserves for Jon Bosak in perpetuity
+ the XML name "xml:Father".
+ </p>
+ </blockquote>
+ </div>
+ </div>
+ </xs:documentation>
+ </xs:annotation>
+
+ <xs:annotation>
+ <xs:documentation>
+ <div xml:id="usage" id="usage">
+ <h2><a name="usage">About this schema document</a></h2>
+
+ <div class="bodytext">
+ <p>
+ This schema defines attributes and an attribute group suitable
+ for use by schemas wishing to allow <code>xml:base</code>,
+ <code>xml:lang</code>, <code>xml:space</code> or
+ <code>xml:id</code> attributes on elements they define.
+ </p>
+ <p>
+ To enable this, such a schema must import this schema for
+ the XML namespace, e.g. as follows:
+ </p>
+ <pre>
+ &lt;schema . . .>
+ . . .
+ &lt;import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="http://www.w3.org/2001/xml.xsd"/>
+ </pre>
+ <p>
+ or
+ </p>
+ <pre>
+ &lt;import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
+ </pre>
+ <p>
+ Subsequently, qualified reference to any of the attributes or the
+ group defined below will have the desired effect, e.g.
+ </p>
+ <pre>
+ &lt;type . . .>
+ . . .
+ &lt;attributeGroup ref="xml:specialAttrs"/>
+ </pre>
+ <p>
+ will define a type which will schema-validate an instance element
+ with any of those attributes.
+ </p>
+ </div>
+ </div>
+ </xs:documentation>
+ </xs:annotation>
+
+ <xs:annotation>
+ <xs:documentation>
+ <div id="nsversioning" xml:id="nsversioning">
+ <h2><a name="nsversioning">Versioning policy for this schema document</a></h2>
+ <div class="bodytext">
+ <p>
+ In keeping with the XML Schema WG's standard versioning
+ policy, this schema document will persist at
+ <a href="http://www.w3.org/2009/01/xml.xsd">
+ http://www.w3.org/2009/01/xml.xsd</a>.
+ </p>
+ <p>
+ At the date of issue it can also be found at
+ <a href="http://www.w3.org/2001/xml.xsd">
+ http://www.w3.org/2001/xml.xsd</a>.
+ </p>
+ <p>
+ The schema document at that URI may however change in the future,
+ in order to remain compatible with the latest version of XML
+ Schema itself, or with the XML namespace itself. In other words,
+ if the XML Schema or XML namespaces change, the version of this
+ document at <a href="http://www.w3.org/2001/xml.xsd">
+ http://www.w3.org/2001/xml.xsd
+ </a>
+ will change accordingly; the version at
+ <a href="http://www.w3.org/2009/01/xml.xsd">
+ http://www.w3.org/2009/01/xml.xsd
+ </a>
+ will not change.
+ </p>
+ <p>
+ Previous dated (and unchanging) versions of this schema
+ document are at:
+ </p>
+ <ul>
+ <li><a href="http://www.w3.org/2009/01/xml.xsd">
+ http://www.w3.org/2009/01/xml.xsd</a></li>
+ <li><a href="http://www.w3.org/2007/08/xml.xsd">
+ http://www.w3.org/2007/08/xml.xsd</a></li>
+ <li><a href="http://www.w3.org/2004/10/xml.xsd">
+ http://www.w3.org/2004/10/xml.xsd</a></li>
+ <li><a href="http://www.w3.org/2001/03/xml.xsd">
+ http://www.w3.org/2001/03/xml.xsd</a></li>
+ </ul>
+ </div>
+ </div>
+ </xs:documentation>
+ </xs:annotation>
+
+</xs:schema>
+
diff --git a/client/dl/xmlspec-its.xsd b/client/dl/xmlspec-its.xsd
new file mode 100644
index 0000000..6789551
--- /dev/null
+++ b/client/dl/xmlspec-its.xsd
@@ -0,0 +1,2772 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ............................................................... -->
+<!-- XML specification DTD ......................................... -->
+<!-- ............................................................... -->
+<!-- $Id: xmlspec-its.xsd,v 1.1 2008/02/10 07:44:48 fsasaki Exp $ -->
+<!--
+ TYPICAL INVOCATION:
+ # <!DOCTYPE spec PUBLIC
+ # "-//W3C//DTD Specification V2.10//EN"
+ # "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">
+
+ PURPOSE:
+ This XML DTD is for W3C specifications and other technical reports.
+ It is based in part on the TEI Lite and Sweb DTDs.
+
+ COPYRIGHT:
+
+ Copyright (C) 2000, 2001, 2002, 2003 Sun Microsystems, Inc. All Rights Reserved.
+ This document is governed by the W3C Software License[3] as
+ described in the FAQ[4].
+
+ [1] http://www.w3.org/TR/xslt
+ [2] http://www.w3.org/XML/1998/06/xmlspec-report-v21.htm
+ [3] http://www.w3.org/Consortium/Legal/copyright-software-19980720
+ [4] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD
+
+ DEPENDENCIES:
+ None.
+
+ CHANGE HISTORY:
+ The list of historical changes is at the end of the DTD. For recent changes,
+ see the CVS log.
+
+ For all details, see the design report at:
+
+ <http://www.w3.org/XML/1998/06/xmlspec-report-v21.htm>
+
+ This report is now out-of-date, but no more recent report has been prepared.
+
+ #2003-06-25: nwalsh: Added translationloc, preverrataloc, rfc2119
+
+ #2003-05-28: nwalsh: Added errataloc, fixed IE bug. Added @num to prod.
+
+ Published V2.4
+
+ #2003-03-12: nwalsh: Added local.* PEs to a number of additional
+ places to make customization layers easier.
+
+ Published V2.3
+
+ #2002-09-04: nwalsh: Added 'phrase' to title, subtitle, version,
+ w3c-designation, w3c-doctype, day, month, year, name,
+ affiliation, email, language, role, lhs, rhs, com,
+ typename, date, loc, nt, sub, sup, term, termref,
+ titleref, xnt, xspecref, xtermref
+
+ This is *solely* to support automated diffing. Users
+ are explicitly forbidden from using this as an escape
+ hatch to get extra markup in these contexts.
+
+ #2001-10-08: nwalsh: Added local.arg.att and local.proto.att
+
+ #2002-08-14: nwalsh: Published V2.2
+
+ Added marked sections around element and attlist declarations and
+ added the altlocs element
+
+ MAINTAINERS:
+ Norman Walsh
+ Sun Microsystems, Inc.
+ Norman.Walsh@Sun.COM
+ voice: +1 413 256 6985
+ fax: +1 413 256 6985
+
+ Eve Maler
+ Sun Microsystems, Inc.
+ elm@east.sun.com
+ voice: +1 781 442 3190
+ fax: +1 781 442 1437
+-->
+<!-- ............................................................... -->
+<!-- Entities for characters and symbols ........................... -->
+<!-- ............................................................... -->
+<!--
+ #1998-03-10: maler: Added &ldquo; and &rdquo;.
+ # Used 8879:1986-compatible decimal character
+ # references.
+ # Merged charent.mod file back into main file.
+ #1998-05-14: maler: Fixed ldquo and rdquo. Gave mdash a real number.
+ #1998-12-03: maler: Escaped the leading ampersands.
+-->
+<!-- ............................................................... -->
+<!-- Entities for classes of standalone elements ................... -->
+<!-- ............................................................... -->
+<!--
+ #1997-10-16: maler: Added table to %illus.class;.
+ #1997-11-28: maler: Added htable to %illus.class;.
+ #1997-12-29: maler: IGNOREd table.
+ #1998-03-10: maler: Removed SGML Open-specific %illus.class;.
+ # Added "local" entities for customization.
+ #1998-05-14: maler: Added issue to %note.class;.
+ # Removed %[local.]statusp.class;.
+ #1998-05-21: maler: Added constraintnote to %note.class;.
+ #1998-08-22: maler: Changed htable to table in %illus.class;.
+ # Added definitions to %illus.class;.
+ #2000-03-07: maler: Added proto and example to %illus.class;.
+-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:its="http://www.w3.org/2005/11/its">
+ <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
+ <xs:import namespace="http://www.w3.org/2005/11/its" schemaLocation="its.xsd"/>
+ <xs:group name="p.class">
+ <xs:sequence>
+ <xs:element ref="p"/>
+ </xs:sequence>
+ </xs:group>
+ <xs:element name="list.class" abstract="true"/>
+ <xs:element name="speclist.class" abstract="true"/>
+ <xs:element name="note.class" abstract="true"/>
+ <xs:element name="illus.class" abstract="true"/>
+ <!-- ............................................................... -->
+ <!-- Entities for classes of phrase-level elements ................. -->
+ <!-- ............................................................... -->
+ <!--
+ #1997-12-29: maler: Added xspecref to %ref.class;.
+ #1998-03-10: maler: Added %ednote.class;.
+ # Added "local" entities for customization.
+ #2000-03-07: maler: Added function, var, el, att, and attval to
+ # %tech.class;.
+ # Added sub, sup, and phrase to %emph.class;.
+ -->
+ <xs:element name="annot.class" abstract="true">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="termdef.class" abstract="true"/>
+ <xs:element name="emph.class" abstract="true"/>
+ <xs:element name="ref.class" abstract="true"/>
+ <xs:element name="loc.class" abstract="true">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href-req.att"/>
+ <xs:attributeGroup ref="user-replace.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="tech.class" abstract="true"/>
+ <xs:element name="ednote.class" abstract="true">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="name"/>
+ <xs:element minOccurs="0" ref="date"/>
+ <xs:element ref="edtext"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- Entities for mixtures of standalone elements .................. -->
+ <!-- ............................................................... -->
+ <!--
+ #1997-09-30: maler: Created %p.mix; to eliminate p from self.
+ #1997-09-30: maler: Added %speclist.class; to %obj.mix; and %p.mix;.
+ #1997-09-30: maler: Added %note.class; to %obj.mix; and %p.mix;.
+ #1997-10-16: maler: Created %entry.mix;. Note that some elements
+ # left out here are still allowed in termdef,
+ # which entry can contain through %p.pcd.mix;.
+ #1997-11-28: maler: Added %p.class; to %statusobj.mix;.
+ #1998-03-10: maler: Added %ednote.class; to all mixtures, except
+ # %p.mix; and %statusobj.mix;, because paragraphs
+ # and status paragraphs will contain ednote
+ # through %p.pcd.mix;.
+ #1998-03-23: maler: Added %termdef.mix; (broken out from
+ # %termdef.pcd.mix;).
+ #1998-05-14: maler: Removed %statusobj.mix; and all mentions of
+ # %statusp.mix;.
+ -->
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="div.mix">
+ <xs:choice>
+ <xs:group ref="p.class"/>
+ <xs:element ref="list.class"/>
+ <xs:element ref="speclist.class"/>
+ <xs:element ref="note.class"/>
+ <xs:element ref="illus.class"/>
+ <xs:element ref="ednote.class"/>
+ </xs:choice>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="obj.mix">
+ <xs:choice>
+ <xs:group ref="p.class"/>
+ <xs:element ref="list.class"/>
+ <xs:element ref="speclist.class"/>
+ <xs:element ref="note.class"/>
+ <xs:element ref="illus.class"/>
+ <xs:element ref="ednote.class"/>
+ </xs:choice>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="p.mix">
+ <xs:choice>
+ <xs:element ref="list.class"/>
+ <xs:element ref="speclist.class"/>
+ <xs:element ref="note.class"/>
+ <xs:element ref="illus.class"/>
+ </xs:choice>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="hdr.mix">
+ <xs:choice>
+ <xs:group ref="p.class"/>
+ <xs:element ref="list.class"/>
+ <xs:element ref="ednote.class"/>
+ </xs:choice>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="termdef.mix">
+ <xs:choice>
+ <xs:element ref="note.class"/>
+ <xs:element ref="illus.class"/>
+ </xs:choice>
+ </xs:group>
+ <!-- ............................................................... -->
+ <!-- Entities for mixtures of #PCDATA and phrase-level elements .... -->
+ <!-- ............................................................... -->
+ <!--
+ Note that %termdef.pcd.mix contains %note.class;
+ and %illus.class;, considered standalone elements.
+ -->
+ <!--
+ #1997-09-30: maler: Added scrap and %note.class; to %termdef.pcd.mix;.
+ #1997-11-28: maler: Added %loc.class; to %p.pcd.mix;.
+ #1998-03-10: maler: Added %ednote.class; to all mixtures.
+ #1998-03-23: maler: Moved some %termdef.pcd.mix; stuff out to
+ # %termdef.mix;.
+ #1998-05-14: maler: Removed %statusp.pcd.mix;.
+ #1998-05-21: maler: Added constraint element to %eg.pcd.mix;.
+ #1999-07-02: maler: Added %loc.class; to %head.pcd.mix;,
+ # %label.pcd.mix;, %eg.pcd.mix;, %termdef.pcd.mix;,
+ # %tech.pcd.mix; (net: all PCD mixes have it).
+ # Removed unused %loc.pcd.mix;.
+ -->
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="p.pcd.mix">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="annot.class"/>
+ <xs:element ref="termdef.class"/>
+ <xs:element ref="emph.class"/>
+ <xs:element ref="ref.class"/>
+ <xs:element ref="tech.class"/>
+ <xs:element ref="loc.class"/>
+ <xs:element ref="ednote.class"/>
+ <xs:element ref="its:span"/>
+ <xs:element ref="its:ruby"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="head.pcd.mix">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="annot.class"/>
+ <xs:element ref="emph.class"/>
+ <xs:element ref="tech.class"/>
+ <xs:element ref="loc.class"/>
+ <xs:element ref="ednote.class"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="label.pcd.mix">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="annot.class"/>
+ <xs:element ref="termdef.class"/>
+ <xs:element ref="emph.class"/>
+ <xs:element ref="tech.class"/>
+ <xs:element ref="loc.class"/>
+ <xs:element ref="ednote.class"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="eg.pcd.mix">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="annot.class"/>
+ <xs:element ref="emph.class"/>
+ <xs:element ref="loc.class"/>
+ <xs:element ref="ednote.class"/>
+ <xs:element ref="constraint"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="termdef.pcd.mix">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="term"/>
+ <xs:element ref="emph.class"/>
+ <xs:element ref="ref.class"/>
+ <xs:element ref="tech.class"/>
+ <xs:element ref="loc.class"/>
+ <xs:element ref="ednote.class"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="bibl.pcd.mix">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="emph.class"/>
+ <xs:element ref="ref.class"/>
+ <xs:element ref="loc.class"/>
+ <xs:element ref="ednote.class"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:group>
+ <!-- compensate for IE bug; suggested by ht -->
+ <xs:group name="tech.pcd.mix">
+ <xs:sequence>
+ <xs:choice minOccurs="0">
+ <xs:element ref="loc.class"/>
+ <xs:element ref="ednote.class"/>
+ <xs:element ref="phrase"/>
+ <xs:element ref="rfc2119"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:group>
+ <!-- ............................................................... -->
+ <!-- Entities for customizable content models ...................... -->
+ <!-- ............................................................... -->
+ <!--
+ #1998-03-10: maler: Added customization entities.
+ #1998-05-14: maler: Allowed prevlocs and latestloc in either order.
+ #1999-07-02: maler: Made version optional; added copyright element.
+ #2000-03-07: maler: Allowed status and abstract in opposite order.
+ -->
+ <xs:complexType name="spec.mdl">
+ <xs:sequence>
+ <xs:element ref="header"/>
+ <xs:element minOccurs="0" ref="front"/>
+ <xs:element ref="body"/>
+ <xs:element minOccurs="0" ref="back"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="header.mdl">
+ <xs:sequence>
+ <xs:element ref="title"/>
+ <xs:element minOccurs="0" ref="subtitle"/>
+ <xs:element minOccurs="0" ref="version"/>
+ <xs:element ref="w3c-designation"/>
+ <xs:element ref="w3c-doctype"/>
+ <xs:element ref="pubdate"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="notice"/>
+ <xs:element ref="publoc"/>
+ <xs:element minOccurs="0" ref="altlocs"/>
+ <xs:choice minOccurs="0">
+ <xs:sequence>
+ <xs:element ref="prevlocs"/>
+ <xs:element minOccurs="0" ref="latestloc"/>
+ </xs:sequence>
+ <xs:sequence>
+ <xs:element ref="latestloc"/>
+ <xs:element minOccurs="0" ref="prevlocs"/>
+ </xs:sequence>
+ </xs:choice>
+ <xs:element ref="authlist"/>
+ <xs:element minOccurs="0" ref="errataloc"/>
+ <xs:element minOccurs="0" ref="preverrataloc"/>
+ <xs:element minOccurs="0" ref="translationloc"/>
+ <xs:element minOccurs="0" ref="copyright"/>
+ <xs:choice>
+ <xs:sequence>
+ <xs:element ref="status"/>
+ <xs:element ref="abstract"/>
+ </xs:sequence>
+ <xs:sequence>
+ <xs:element ref="abstract"/>
+ <xs:element ref="status"/>
+ </xs:sequence>
+ </xs:choice>
+ <xs:element minOccurs="0" ref="pubstmt"/>
+ <xs:element minOccurs="0" ref="sourcedesc"/>
+ <xs:element ref="langusage"/>
+ <xs:element ref="revisiondesc"/>
+ <xs:element ref="its:rules" maxOccurs="1" minOccurs="0"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="pubdate.mdl">
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="day"/>
+ <xs:element ref="month"/>
+ <xs:element ref="year"/>
+ </xs:sequence>
+ </xs:complexType>
+ <!-- ............................................................... -->
+ <!-- Entities for common attributes ................................ -->
+ <!-- ............................................................... -->
+ <!-- #2000-03-07: maler: Added %argtypes;. -->
+ <!--
+ argtypes:
+ Values for function prototype argument datatypes.
+ -->
+ <xs:simpleType name="argtypes">
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="boolean"/>
+ <xs:enumeration value="expression"/>
+ <xs:enumeration value="location-set"/>
+ <xs:enumeration value="node-set"/>
+ <xs:enumeration value="number"/>
+ <xs:enumeration value="object"/>
+ <xs:enumeration value="point"/>
+ <xs:enumeration value="range"/>
+ <xs:enumeration value="string"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <!--
+ key attribute:
+ Optionally provides a sorting or indexing key, for cases when
+ the element content is inappropriate for this purpose.
+ -->
+ <xs:attributeGroup name="key.att">
+ <xs:attribute name="key"/>
+ </xs:attributeGroup>
+ <!--
+ def attribute:
+ Points to the element where the relevant definition can be
+ found, using the IDREF mechanism. %def.att; is for optional
+ def attributes, and %def-req.att; is for required def
+ attributes.
+ -->
+ <xs:attributeGroup name="def-req.att">
+ <xs:attribute name="def" use="required" type="xs:IDREF"/>
+ </xs:attributeGroup>
+ <!--
+ ref attribute:
+ Points to the element where more information can be found,
+ using the IDREF mechanism. %ref.att; is for optional
+ ref attributes, and %ref-req.att; is for required ref
+ attributes.
+ -->
+ <xs:attributeGroup name="ref-req.att">
+ <xs:attribute name="ref" use="required" type="xs:IDREF"/>
+ </xs:attributeGroup>
+ <!--
+ #1998-03-23: maler: Added show and actuate attributes to href.
+ # Added semi-common xml:space attribute.
+ #1998-08-22: maler: Used new xlink:form and #IMPLIED features.
+ #1999-07-02: maler: Reorganized XLink-related entities completely;
+ # added xmlns:xlink attribute to the mix.
+ #2000-03-07: maler: Updated XLink usage to February 2000 draft,
+ # except that href still has no namespace prefix.
+ -->
+ <!--
+ xmlns:xlink and xlink:type attributes:
+ xmlns:xlink declares the association of the xlink prefix
+ with the namespace created by the XLink specification.
+ xlink:type identifies an element as an XLink "simple" linking
+ element.
+ -->
+ <xs:attributeGroup name="simple-xlink.att">
+ <xs:attribute ref="xlink:type" default="simple"/>
+ </xs:attributeGroup>
+ <!--
+ href attributes:
+ The href attribute locates the remote-resource half of a
+ simple link; the element on which the href appears is the
+ local-resource half. Some elements are usable links only if
+ the author chooses to supply a functional href. The attribute
+ name should really be xlink:href, but is kept without the
+ prefix for now in order to be backwards-compatible.
+ -->
+ <xs:attributeGroup name="href.att">
+ <xs:attribute name="href"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="href-req.att">
+ <xs:attribute name="href" use="required"/>
+ </xs:attributeGroup>
+ <!--
+ xlink:show and xlink:actuate attributes:
+ These attributes offer instructions to the display engine
+ about how to handle traversal to resource indicated by an
+ href locator.
+ -->
+ <xs:attributeGroup name="auto-embed.att">
+ <xs:attributeGroup ref="xlink:show"/>
+ <xs:attributeGroup ref="xlink:actuate"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="user-replace.att">
+ <xs:attributeGroup ref="xlink:show1"/>
+ <xs:attributeGroup ref="xlink:actuate1"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="user-new.att">
+ <xs:attributeGroup ref="xlink:show2"/>
+ <xs:attributeGroup ref="xlink:actuate1"/>
+ </xs:attributeGroup>
+ <!--
+ xml:space attribute:
+ Indicates that the element contains whitespace that the
+ formatter or other application should retain, as appropriate
+ to its function.
+ -->
+ <xs:attributeGroup name="xmlspace.att">
+ <xs:attribute ref="xml:space" default="preserve"/>
+ </xs:attributeGroup>
+ <!-- #2000-03-07: maler: Added common diff attribute. Made %role.att;. -->
+ <!--
+ diff attribute:
+ Indicates in what way the element has changed. When a value
+ is not provided, that subelement should inherit a value from
+ its parent. If the root element has no value supplied,
+ assume "off".
+ -->
+ <xs:attributeGroup name="diff.att">
+ <xs:attribute name="diff">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="chg"/>
+ <xs:enumeration value="add"/>
+ <xs:enumeration value="del"/>
+ <xs:enumeration value="off"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <!--
+ role attribute:
+ Extends the useful life of the DTD by allowing authors to
+ make a subtype of any element. No default.
+ -->
+ <xs:attributeGroup name="role.att">
+ <xs:attribute name="role" type="xs:NMTOKEN"/>
+ </xs:attributeGroup>
+ <!--
+ Common attributes:
+ Every element has an ID attribute for links, a role
+ attribute, and a diff attribute. %common.att; is for
+ common attributes where the ID is optional, and
+ %common-idreq.att; is for common attributes where the
+ ID is required.
+ -->
+ <xs:attributeGroup name="common.att">
+ <xs:attribute name="id" type="xs:ID"/>
+ <xs:attributeGroup ref="role.att"/>
+ <xs:attributeGroup ref="diff.att"/>
+ <xs:attributeGroup ref="its:its-att.local.with-ns.attributes"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="common-idreq.att">
+ <xs:attribute name="id" use="required" type="xs:ID"/>
+ <xs:attributeGroup ref="role.att"/>
+ <xs:attributeGroup ref="diff.att"/>
+ </xs:attributeGroup>
+ <!-- ............................................................... -->
+ <!-- Common elements ............................................... -->
+ <!-- ............................................................... -->
+ <!-- head: Title on divisions, productions, and the like -->
+ <xs:element name="head">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="head.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- Major specification structure ................................. -->
+ <!-- ............................................................... -->
+ <!--
+ #1998-03-10: maler: Made spec content model easily customizable.
+ #1999-07-02: maler: Added doctype atts and status att.
+ #2000-03-07: maler: Added cr, issues, and dispcmts to w3c-doctype.
+ -->
+ <xs:element name="spec">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="spec.mdl">
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attribute name="w3c-doctype">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="cr"/>
+ <xs:enumeration value="dispcmts"/>
+ <xs:enumeration value="issues"/>
+ <xs:enumeration value="wgnote"/>
+ <xs:enumeration value="memsub"/>
+ <xs:enumeration value="teamsub"/>
+ <xs:enumeration value="note"/>
+ <xs:enumeration value="other"/>
+ <xs:enumeration value="pr"/>
+ <xs:enumeration value="per"/>
+ <xs:enumeration value="rec"/>
+ <xs:enumeration value="wd"/>
+ <xs:enumeration value="review"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="other-doctype"/>
+ <xs:attribute name="status">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="int-review"/>
+ <xs:enumeration value="ext-review"/>
+ <xs:enumeration value="final"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ w3c-doctype attributes:
+ Indicates the type of document, so that the appropriate
+ stylesheet or workflow routing can be applied. Should
+ *not* generate any text (such as the "REC-" or "NOTE-"
+ prefix on the W3C designation content). No default. If
+ w3c-doctype is "other", other-doctype should be filled in.
+
+ status attribute:
+ Indicates the stage of review of the document. May affect
+ the stylesheet's treatment of ednotes (e.g., whether to
+ output them). No default.
+ -->
+ <xs:element name="front">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="div1"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="body">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="div1"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1997-09-30: maler: Added inform-div1 to back content. -->
+ <xs:element name="back">
+ <xs:complexType>
+ <xs:choice>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="div1"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="inform-div1"/>
+ </xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="inform-div1"/>
+ </xs:choice>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="div1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="div.mix"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="div2"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ #1997-09-30: maler: Added inform-div1 declarations.
+ #2000-03-07: maler: Added div5 level.
+ -->
+ <!-- inform-div1: Non-normative division in back matter -->
+ <xs:element name="inform-div1">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="div.mix"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="div2"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="div2">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="div.mix"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="div3"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="div3">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="div.mix"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="div4"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="div4">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="div.mix"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="div5"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="div5">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="div.mix"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- Specification header .......................................... -->
+ <!-- ............................................................... -->
+ <!-- #1998-03-10: maler: Made header content model easily customizable. -->
+ <xs:element name="header">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="header.mdl">
+ <xs:attributeGroup ref="common.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- Example of title: "Extensible Cheese Language (XCL)" -->
+ <xs:element name="title">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- Example of subtitle: "A Cheesy Specification" -->
+ <xs:element name="subtitle">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- Example of version: "Version 666.0" -->
+ <xs:element name="version">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- Example of w3c-designation: "WD-xcl-19991231" -->
+ <xs:element name="w3c-designation">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- Example of w3c-doctype: "W3C Working Draft" -->
+ <xs:element name="w3c-doctype">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1998-03-10: maler: Made pubdate content model easily customizable. -->
+ <xs:element name="pubdate">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="pubdate.mdl">
+ <xs:attributeGroup ref="common.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="day">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="month">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="year">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1999-07-02: maler: Declared copyright element. -->
+ <xs:element name="copyright">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="hdr.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- Example of notice: "This draft is for public comment..." -->
+ <xs:element name="notice">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="hdr.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #2000-03-07: maler: Broadened models of *loc to %p.pcd.mix;. -->
+ <xs:element name="publoc">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="p.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ #2002-08-15: nwalsh: Added altlocs element.
+ The semantics of the altlocs are equivalent to the Dublin Core relation element
+ with type="hasVersion". Each of the loc elements inside altlocs should identify
+ an alternate version of the resource described by the document, for example
+ HTML, XML, and PDF forms.
+ -->
+ <xs:element name="altlocs">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="loc"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="prevlocs">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="p.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ #2005-10-13: nwalsh: restrict latestloc content model.
+ New pubrules allows for multiple latestlocs. For some reason, this element
+ used to allow PCDATA. Now it allows only loc elements. If this causes
+ trouble, tell Norm.
+ -->
+ <xs:element name="latestloc">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="loc"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="errataloc">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href-req.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="preverrataloc">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href-req.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="translationloc">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href-req.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- loc (defined in "Phrase-level elements" below) -->
+ <xs:element name="authlist">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="author"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ #1997-09-30: maler: Made affiliation optional.
+ #1998-03-10: maler: Made email optional.
+ -->
+ <xs:element name="author">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="name"/>
+ <xs:element minOccurs="0" ref="affiliation"/>
+ <xs:element minOccurs="0" ref="email"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="name">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="key.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="affiliation">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1999-07-02: maler: Added show/actuate attributes and default values. -->
+ <xs:element name="email">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href-req.att"/>
+ <xs:attributeGroup ref="user-new.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ href attribute:
+ email functions as a hypertext reference through this
+ required attribute. Typically the reference would use
+ the mailto: scheme. E.g.:
+
+ <email href="mailto:elm@arbortext.com">elm@arbortext.com</email>
+ -->
+ <!--
+ #1998-05-15: maler: Changed status content from %statusobj.mix;
+ # to plain %obj.mix;. statusp is obsolete.
+ -->
+ <xs:element name="status">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="abstract">
+ <xs:complexType>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="hdr.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="pubstmt">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="hdr.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="sourcedesc">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="hdr.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="langusage">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="language"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="language">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="revisiondesc">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="hdr.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- Paragraph ..................................................... -->
+ <!-- ............................................................... -->
+ <!--
+ #1997-09-30: maler: Changed from %obj.mix; to %p.mix;.
+ #1997-12-29: maler: Changed order of %p.mix; and %p.pcd.mix;
+ # references.
+ #1997-12-29: maler: Changed order of %statusobj.mix; and
+ # %statusp.pcd.mix; references.
+ #1998-05-14: maler: Removed statusp declarations.
+ -->
+ <xs:element name="p">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="p.pcd.mix"/>
+ <xs:group ref="p.mix"/>
+ </xs:choice>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- Regular lists ................................................. -->
+ <!-- ............................................................... -->
+ <!-- ulist: Unordered list, typically bulleted. -->
+ <xs:element name="ulist" substitutionGroup="list.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="item"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attribute name="spacing">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="normal"/>
+ <xs:enumeration value="compact"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ spacing attribute:
+ Use "normal" to get normal vertical spacing for items;
+ use "compact" to get less spacing. The default is dependent
+ on the stylesheet.
+ -->
+ <!-- olist: Ordered list, typically numbered. -->
+ <xs:element name="olist" substitutionGroup="list.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="item"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attribute name="spacing">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="normal"/>
+ <xs:enumeration value="compact"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ spacing attribute:
+ Use "normal" to get normal vertical spacing for items;
+ use "compact" to get less spacing. The default is dependent
+ on the stylesheet.
+ -->
+ <xs:element name="item">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- slist: Simple list, typically with no mark. -->
+ <xs:element name="slist" substitutionGroup="list.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="sitem"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="sitem">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="p.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- glist: Glossary list, typically two-column. -->
+ <xs:element name="glist" substitutionGroup="list.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="gitem"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="gitem">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="label"/>
+ <xs:element ref="def"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="label">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="label.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="def">
+ <xs:complexType>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="obj.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- Special lists ................................................. -->
+ <!-- ............................................................... -->
+ <!-- blist: Bibliography list. -->
+ <xs:element name="blist" substitutionGroup="speclist.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="bibl"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1999-07-02: maler: Added show/actuate attributes and default values. -->
+ <xs:element name="bibl">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="bibl.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href.att"/>
+ <xs:attributeGroup ref="user-replace.att"/>
+ <xs:attributeGroup ref="key.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ href attribute:
+ bibl optionally functions as a hypertext reference to the
+ referred-to resource through this attribute. E.g.:
+
+ <bibl href="http://www.my.com/doc.htm">My Document</bibl>
+ -->
+ <!-- orglist: Organization member list. -->
+ <xs:element name="orglist" substitutionGroup="speclist.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="member"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1997-09-30: maler: Added optional affiliation. -->
+ <xs:element name="member">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="name"/>
+ <xs:element minOccurs="0" ref="affiliation"/>
+ <xs:element minOccurs="0" ref="role"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- name (defined in "Specification header" above) -->
+ <!-- affiliation (defined in "Specification header" above) -->
+ <xs:element name="role">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- Notes ......................................................... -->
+ <!-- ............................................................... -->
+ <xs:element name="note" substitutionGroup="note.class">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ #1998-05-14: maler: Declared issue element.
+ #2000-03-07: maler: Added head, source, resolution, and status.
+ -->
+ <xs:element name="issue" substitutionGroup="note.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="head"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="source"/>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ <xs:element minOccurs="0" ref="resolution"/>
+ </xs:sequence>
+ <xs:attribute name="id" use="required" type="xs:ID"/>
+ <xs:attributeGroup ref="role.att"/>
+ <xs:attributeGroup ref="diff.att"/>
+ <xs:attribute name="status" default="open">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="open"/>
+ <xs:enumeration value="closed"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ status attribute:
+ Indicates whether the issue is open or closed. Note that
+ the lack of a resolution element does not necessarily mean
+ that the issue is still open.
+ -->
+ <xs:element name="source">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="p.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="resolution">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- wfcnote: Well-formedness constraint note. -->
+ <xs:element name="wfcnote" substitutionGroup="note.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common-idreq.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ ID attribute:
+ wfcnote must have an ID so that it can be pointed to
+ from a wfc element in a production.
+ -->
+ <!-- vcnote: Validity constraint note. -->
+ <xs:element name="vcnote" substitutionGroup="note.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common-idreq.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ ID attribute:
+ vcnote must have an ID so that it can be pointed to
+ from a vc element in a production.
+ -->
+ <!-- #1998-05-21: maler: Declared generic constraintnote element. -->
+ <!-- constraintnote: Generic constraint note. -->
+ <xs:element name="constraintnote" substitutionGroup="note.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common-idreq.att"/>
+ <xs:attribute name="type" use="required" type="xs:NMTOKEN"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ ID attribute:
+ constraintnote must have an ID so that it can be
+ pointed to from a constraint element in a production.
+ -->
+ <!--
+ type attribute:
+ constraintnote must have a type value keyword so that
+ it can be correctly characterized in the specification.
+ -->
+ <!-- ............................................................... -->
+ <!-- Basic display elements ........................................ -->
+ <!-- ............................................................... -->
+ <!-- #1998-03-23: maler: Added xml:space attribute. -->
+ <!-- eg: Example element, with whitespace respected. -->
+ <xs:element name="eg" substitutionGroup="illus.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="eg.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="xmlspace.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ #2000-03-07: maler: Removed the xml:attributes attribute.
+ # Added %local.graphic.att;.
+ -->
+ <!--
+ graphic: Displayed graphic. Graphic data should be
+ displayed at the point where it is referenced. Not
+ actually conforming to XLink right now.
+ -->
+ <xs:element name="graphic" substitutionGroup="illus.class">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attribute name="source" use="required"/>
+ <xs:attributeGroup ref="auto-embed.att"/>
+ <xs:attribute name="alt"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ source attribute:
+ The graphic data must reside at the location pointed to.
+ -->
+ <!-- #2000-03-07: maler: Added proto element structure. -->
+ <!-- proto: Function prototype, in the XPath/XPointer style. -->
+ <xs:element name="proto" substitutionGroup="illus.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="arg"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attribute name="name" use="required" type="xs:NMTOKEN"/>
+ <xs:attribute name="return-type" use="required" type="argtypes"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="arg">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attribute name="type" use="required" type="argtypes"/>
+ <xs:attribute name="occur">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="opt"/>
+ <xs:enumeration value="req"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <!-- #2000-03-07: maler: Added example element. -->
+ <xs:element name="example" substitutionGroup="illus.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="head"/>
+ <xs:group maxOccurs="unbounded" ref="obj.mix"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- EBNF .......................................................... -->
+ <!-- ............................................................... -->
+ <!--
+ #1997-11-28: maler: Added prodgroup to scrap and defined it.
+ #1998-05-21: maler: Added constraint to prod.
+ #1999-07-02: maler: Added prodrecap to scrap; broadened scrap model.
+ # Added headstyle attribute to scrap.
+ -->
+ <!-- scrap: Collection of EBNF language productions. -->
+ <xs:element name="scrap" substitutionGroup="illus.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="head"/>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="prodgroup"/>
+ <xs:element ref="prod"/>
+ <xs:element ref="bnf"/>
+ <xs:element ref="prodrecap"/>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attribute name="lang" type="xs:IDREF"/>
+ <xs:attribute name="headstyle" default="show">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="show"/>
+ <xs:enumeration value="suppress"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ lang attribute:
+ The scrap can link to a description of the language used,
+ found in a language element in the header.
+ headstyle attribute:
+ Allows a scrap title to be suppressed from output. To be
+ used only when a scrap title directly next to a section
+ title is distracting or repetetive.
+ -->
+ <!--
+ prodgroup: Sub-collection of productions, needed for
+ formatting reasons.
+ -->
+ <xs:element name="prodgroup">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="prod"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attribute name="pcw1"/>
+ <xs:attribute name="pcw2"/>
+ <xs:attribute name="pcw3"/>
+ <xs:attribute name="pcw4"/>
+ <xs:attribute name="pcw5"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ pcw<n> attributes:
+ Presentational attributes to control the width
+ of the "pseudo-table" columns used to output
+ groups of productions.
+ -->
+ <!-- prod: EBNF language production. -->
+ <xs:element name="prod">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="lhs"/>
+ <xs:sequence maxOccurs="unbounded">
+ <xs:element ref="rhs"/>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="com"/>
+ <xs:element ref="wfc"/>
+ <xs:element ref="vc"/>
+ <xs:element ref="constraint"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:sequence>
+ <xs:attributeGroup ref="common-idreq.att"/>
+ <xs:attribute name="num"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ ID attribute:
+ The production must have an ID so that cross-references
+ (specref) and mentions of nonterminals (nt) can link to
+ it.
+ -->
+ <!-- lhs: Left-hand side of production. -->
+ <xs:element name="lhs">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ rhs: Right-hand side of production; may have many
+ "right-hand sides," one to a line.
+ -->
+ <xs:element name="rhs">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="phrase"/>
+ <xs:element ref="nt"/>
+ <xs:element ref="xnt"/>
+ <xs:element ref="com"/>
+ </xs:choice>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- nt and xnt (defined in "Phrase-level elements" below) -->
+ <!-- #1997-11-28: maler: Added loc and bibref to com content. -->
+ <!-- com: Production comment. -->
+ <xs:element name="com">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="phrase"/>
+ <xs:element ref="loc"/>
+ <xs:element ref="bibref"/>
+ </xs:choice>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ wfc: Reference to a well-formedness constraint; should
+ generate the head of the wfcnote pointed to.
+ -->
+ <xs:element name="wfc">
+ <xs:complexType>
+ <xs:attributeGroup ref="def-req.att"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ def attribute:
+ Each well formedness tagline in a production must link to the
+ wfcnote that defines it.
+ -->
+ <!--
+ vc: Reference to a validity constraint; should generate
+ the head of the vcnote pointed to.
+ -->
+ <xs:element name="vc">
+ <xs:complexType>
+ <xs:attributeGroup ref="def-req.att"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ def attribute:
+ Each validity tagline in a production must link to the vcnote
+ that defines it.
+ -->
+ <!-- #1998-05-21: maler: Declared generic constraint element. -->
+ <!--
+ constraint: Reference to a generic constraint; should
+ generate the head of the constraintnote pointed to.
+ -->
+ <xs:element name="constraint">
+ <xs:complexType>
+ <xs:attributeGroup ref="def-req.att"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ def attribute:
+ Each constraint tagline in a production must link to the
+ constraint note that defines it.
+ -->
+ <!-- #1998-03-23: maler: Added xml:space attribute. -->
+ <!--
+ bnf: Un-marked-up EBNF production, with whitespace
+ respected.
+ -->
+ <xs:element name="bnf">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="eg.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="xmlspace.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1999-07-02: maler: Declared prodrecap. -->
+ <!--
+ prodrecap: Reference to production or bnf that appears
+ in its "normative" form elsewhere in the spec; should
+ generate a copy of the original production, without
+ a production number next to it.
+ -->
+ <xs:element name="prodrecap">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="ref-req.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- Table ......................................................... -->
+ <!-- ............................................................... -->
+ <!--
+ #1997-10-16: maler: Added table mechanism.
+ #1997-11-28: maler: Added non-null system ID to entity declaration.
+ # Added HTML table module.
+ #1997-12-29: maler: IGNOREd SGML Open table model.
+ #1998-03-10: maler: Removed SGML Open table model.
+ # Merged html-tbl.mod file into main file.
+ # Added %common.att; to all HTML table elements.
+ #1998-05-14: maler: Replaced table model with full HTML 4.0 model.
+ # Removed htable in favor of table.
+ # Removed htbody in favor of tbody.
+ -->
+ <xs:attributeGroup name="cellhalign.att">
+ <xs:attribute name="align">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="left"/>
+ <xs:enumeration value="center"/>
+ <xs:enumeration value="right"/>
+ <xs:enumeration value="justify"/>
+ <xs:enumeration value="char"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="char"/>
+ <xs:attribute name="charoff"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="cellvalign.att">
+ <xs:attribute name="valign">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="top"/>
+ <xs:enumeration value="middle"/>
+ <xs:enumeration value="bottom"/>
+ <xs:enumeration value="baseline"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="thtd.att">
+ <xs:attribute name="abbr"/>
+ <xs:attribute name="axis"/>
+ <xs:attribute name="headers" type="xs:IDREFS"/>
+ <xs:attribute name="scope">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="row"/>
+ <xs:enumeration value="col"/>
+ <xs:enumeration value="rowgroup"/>
+ <xs:enumeration value="colgroup"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="rowspan" default="1" type="xs:NMTOKEN"/>
+ <xs:attribute name="colspan" default="1" type="xs:NMTOKEN"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="width.att">
+ <xs:attribute name="width"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="span.att">
+ <xs:attribute name="span" default="1" type="xs:NMTOKEN"/>
+ </xs:attributeGroup>
+ <!-- table: HTML-based geometric table model. -->
+ <xs:element name="table" substitutionGroup="illus.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="caption"/>
+ <xs:choice>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="col"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="colgroup"/>
+ </xs:choice>
+ <xs:element minOccurs="0" ref="thead"/>
+ <xs:element minOccurs="0" ref="tfoot"/>
+ <xs:element maxOccurs="unbounded" ref="tbody"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="width.att"/>
+ <xs:attribute name="summary"/>
+ <xs:attribute name="border"/>
+ <xs:attribute name="frame">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="void"/>
+ <xs:enumeration value="above"/>
+ <xs:enumeration value="below"/>
+ <xs:enumeration value="hsides"/>
+ <xs:enumeration value="lhs"/>
+ <xs:enumeration value="rhs"/>
+ <xs:enumeration value="vsides"/>
+ <xs:enumeration value="box"/>
+ <xs:enumeration value="border"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="rules">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="none"/>
+ <xs:enumeration value="groups"/>
+ <xs:enumeration value="rows"/>
+ <xs:enumeration value="cols"/>
+ <xs:enumeration value="all"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="cellspacing"/>
+ <xs:attribute name="cellpadding"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="caption">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="p.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="col">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="span.att"/>
+ <xs:attributeGroup ref="width.att"/>
+ <xs:attributeGroup ref="cellhalign.att"/>
+ <xs:attributeGroup ref="cellvalign.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="colgroup">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="col"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="span.att"/>
+ <xs:attributeGroup ref="width.att"/>
+ <xs:attributeGroup ref="cellhalign.att"/>
+ <xs:attributeGroup ref="cellvalign.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="thead">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="tr"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="cellhalign.att"/>
+ <xs:attributeGroup ref="cellvalign.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="tfoot">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="tr"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="cellhalign.att"/>
+ <xs:attributeGroup ref="cellvalign.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="tbody">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="tr"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="cellhalign.att"/>
+ <xs:attributeGroup ref="cellvalign.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="tr">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="th"/>
+ <xs:element ref="td"/>
+ </xs:choice>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="cellhalign.att"/>
+ <xs:attributeGroup ref="cellvalign.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="th">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="p.pcd.mix"/>
+ <xs:group ref="p.mix"/>
+ </xs:choice>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="thtd.att"/>
+ <xs:attributeGroup ref="cellhalign.att"/>
+ <xs:attributeGroup ref="cellvalign.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="td">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="p.pcd.mix"/>
+ <xs:group ref="p.mix"/>
+ </xs:choice>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="thtd.att"/>
+ <xs:attributeGroup ref="cellhalign.att"/>
+ <xs:attributeGroup ref="cellvalign.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- IDL structures for DOM specifications ......................... -->
+ <!-- ............................................................... -->
+ <!-- ............................................................... -->
+ <!-- Specialized entities for classes .............................. -->
+ <xs:group name="idl-desc.class">
+ <xs:choice>
+ <xs:element ref="p"/>
+ <xs:element ref="note"/>
+ </xs:choice>
+ </xs:group>
+ <xs:element name="idl-tdef.class" abstract="true"/>
+ <xs:element name="idl-mod.class" abstract="true"/>
+ <xs:element name="idl-struct.class" abstract="true" substitutionGroup="idl-type.mix"/>
+ <xs:element name="idl-meth.class" abstract="true"/>
+ <!-- ............................................................... -->
+ <!-- Specialized entities for mixtures ............................. -->
+ <!--
+ Quick reference to content model mixtures:
+
+ desc tdef mod struct meth
+ group x x x x x
+ definitions, module x x x
+ interface x x x
+ typedef, case, component x
+ -->
+ <xs:group name="idl-grp.mix">
+ <xs:choice>
+ <xs:group ref="idl-desc.class"/>
+ <xs:element ref="idl-tdef.class"/>
+ <xs:element ref="idl-mod.class"/>
+ <xs:element ref="idl-struct.class"/>
+ <xs:element ref="idl-meth.class"/>
+ </xs:choice>
+ </xs:group>
+ <xs:group name="idl-defn.mix">
+ <xs:choice>
+ <xs:group ref="idl-desc.class"/>
+ <xs:element ref="idl-tdef.class"/>
+ <xs:element ref="idl-mod.class"/>
+ </xs:choice>
+ </xs:group>
+ <xs:group name="idl-intfc.mix">
+ <xs:choice>
+ <xs:group ref="idl-desc.class"/>
+ <xs:element ref="idl-tdef.class"/>
+ <xs:element ref="idl-meth.class"/>
+ </xs:choice>
+ </xs:group>
+ <xs:element name="idl-type.mix" abstract="true"/>
+ <!-- ............................................................... -->
+ <!-- Specialized entities for common attributes .................... -->
+ <!--
+ name attribute:
+ Provides a name. Required.
+ -->
+ <xs:attributeGroup name="idl-name.att">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <!--
+ type attribute:
+ Provides a type. Required.
+ -->
+ <xs:attributeGroup name="idl-type.att">
+ <xs:attribute name="type" use="required"/>
+ </xs:attributeGroup>
+ <!-- ............................................................... -->
+ <!-- Common IDL element ............................................ -->
+ <xs:complexType name="descr">
+ <xs:sequence>
+ <xs:element ref="descr"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="descr">
+ <xs:complexType>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="obj.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- IDL definition elements ....................................... -->
+ <!-- definitions: Top-level element for definitions. -->
+ <xs:element name="definitions" substitutionGroup="illus.class">
+ <xs:complexType>
+ <xs:group maxOccurs="unbounded" ref="idl-defn.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- group: Element used to group a set of definitions. -->
+ <xs:element name="group" substitutionGroup="idl-tdef.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="idl-grp.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- interface: Definition of an interface. -->
+ <xs:element name="interface" substitutionGroup="idl-mod.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="idl-intfc.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ <xs:attribute name="inherits"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- module: Definition of a module. -->
+ <xs:element name="module" substitutionGroup="idl-mod.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="idl-defn.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- reference: Reference to some other declaration. -->
+ <xs:element name="reference" substitutionGroup="idl-tdef.class">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attribute name="declaration" use="required" type="xs:IDREF"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- typedef: Definition of a named type. -->
+ <xs:element name="typedef" substitutionGroup="idl-tdef.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:sequence>
+ <xs:element ref="idl-type.mix"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ <xs:attribute name="array.size" type="xs:NMTOKEN"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- struct: Declaration of a struct type. -->
+ <xs:element name="struct" substitutionGroup="idl-struct.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="component"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- component: Declaration of a structural member. -->
+ <xs:element name="component">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="idl-type.mix"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- union: Declaration of a union type. -->
+ <xs:element name="union" substitutionGroup="idl-struct.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="case"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ <xs:attribute name="switch.type" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="case">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:sequence>
+ <xs:element ref="idl-type.mix"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attribute name="labels" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- enum: Declaration of an enum type. -->
+ <xs:element name="enum" substitutionGroup="idl-struct.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="enumerator"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="enumerator">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- sequence: Declaration of a sequence type (not named). -->
+ <xs:element name="sequence" substitutionGroup="idl-struct.class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="sequence"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-type.att"/>
+ <xs:attribute name="size" type="xs:NMTOKEN"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- constant: Declaration of a named constant. -->
+ <xs:element name="constant" substitutionGroup="idl-tdef.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ <xs:attributeGroup ref="idl-type.att"/>
+ <xs:attribute name="value" use="required"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- exception: Declaration of an exception. -->
+ <xs:element name="exception" substitutionGroup="idl-tdef.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="component"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- component (defined under struct, above) -->
+ <!-- attribute: Declaration of an attribute (data member). -->
+ <xs:element name="attribute" substitutionGroup="idl-meth.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ <xs:attributeGroup ref="idl-type.att"/>
+ <xs:attribute name="readonly" default="no">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="yes"/>
+ <xs:enumeration value="no"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <!-- method: Declaration of a method. -->
+ <xs:element name="method" substitutionGroup="idl-meth.class">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:sequence>
+ <xs:element ref="parameters"/>
+ <xs:element ref="returns"/>
+ <xs:element ref="raises"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="parameters">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="param"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="param">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-name.att"/>
+ <xs:attributeGroup ref="idl-type.att"/>
+ <xs:attribute name="attr" default="inout">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="in"/>
+ <xs:enumeration value="out"/>
+ <xs:enumeration value="inout"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="returns">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="descr">
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="idl-type.att"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="raises">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="exception"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!-- exception (defined under constant, above) -->
+ <xs:element name="typename" substitutionGroup="idl-struct.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- ............................................................... -->
+ <!-- Phrase-level elements ......................................... -->
+ <!-- ............................................................... -->
+ <!-- #2000-03-07: maler: Added att and attval elements. -->
+ <!-- att: Attribute name. -->
+ <xs:element name="att" substitutionGroup="tech.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="tech.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- attval: Attribute value. -->
+ <xs:element name="attval" substitutionGroup="tech.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="tech.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ bibref: Reference to a bibliography list entry; should
+ generate, in square brackets, "key" on bibl.
+ -->
+ <xs:element name="bibref" substitutionGroup="ref.class">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="ref-req.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ ref attribute:
+ A bibliography reference must link to the bibl element that
+ describes the resource.
+ -->
+ <xs:element name="code" substitutionGroup="tech.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="tech.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ #1998-03-10: maler: Declared ednote and related elements.
+ #1999-07-02: maler: Changed edtext content from #PCDATA to %p.pcd.mix;.
+ -->
+ <!-- ednote: Editorial note for communication among editors. -->
+ <xs:element name="ednote" substitutionGroup="ednote.class"/>
+ <xs:element name="date">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="edtext">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="p.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #2000-03-07: maler: Added el element. -->
+ <!-- el: Element type name (GI). -->
+ <xs:element name="el" substitutionGroup="tech.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="tech.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #2000-03-07: maler: Expanded emph to %p.pcd.mix;. -->
+ <xs:element name="emph" substitutionGroup="emph.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="p.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- footnote: Both footnote content and call to footnote. -->
+ <xs:element name="footnote" substitutionGroup="annot.class"/>
+ <!--
+ #2000-03-07: maler: Added function and gave it content of
+ # %tech.pcd.mix; instead of XPath's #PCDATA.
+ -->
+ <xs:element name="function" substitutionGroup="tech.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="tech.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="kw" substitutionGroup="tech.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="tech.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1999-07-02: maler: Added show/actuate attributes and default values. -->
+ <!-- loc: Generic link to a Web resource, similar to HTML's A. -->
+ <xs:element name="loc" substitutionGroup="loc.class"/>
+ <!--
+ href attribute:
+ The purpose of a loc element is to function as a A-like
+ hypertext link to a resource. (Ideally, the content of loc
+ will also mention the URI of the resource, so that readers of
+ the printed version will be able to locate the resource.) E.g.:
+
+ <loc href="http://www.my.com/doc.htm">http://www.my.com/doc.htm</loc>
+ -->
+ <!--
+ nt: Mention of a nonterminal in text, along with a link to
+ the production in the current document that defines it.
+ -->
+ <xs:element name="nt" substitutionGroup="tech.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="def-req.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ def attribute:
+ The nonterminal must link to the production that defines
+ it.
+ -->
+ <!-- #2000-03-07: maler: Declared phrase. -->
+ <!--
+ phrase: "Attribute hanger" for small bits of (e.g.) differenced
+ text in a paragraph or similar, when another element isn't handy.
+ Beware that its content model may allow more nested elements than
+ would normally be allowed in some contexts.
+ -->
+ <xs:element name="phrase" substitutionGroup="emph.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="p.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #2003-06-25: nwalsh: RFC2119 elements -->
+ <xs:element name="rfc2119" substitutionGroup="emph.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1998-03-10: maler: Declared quote. -->
+ <!-- quote: Scare quotes and other purely presentational quotes. -->
+ <xs:element name="quote" substitutionGroup="emph.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="p.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ specref: Reference to a div, olist item, prod, or issue
+ in the current document; should generate italic "[n.n],
+ Section Title" for div, "n" for numbered item, "[n]" for
+ production, or "Issue id" for issue.
+ -->
+ <xs:element name="specref" substitutionGroup="ref.class">
+ <xs:complexType>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="ref-req.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ ref attribute:
+ The purpose of a specref element is to link to a div, item
+ in an olist, or production in the current spec.
+ -->
+ <!-- #2000-03-07: maler: Added sub and sup. -->
+ <!-- sub: Subscript. -->
+ <xs:element name="sub" substitutionGroup="emph.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- sup: Superscript. -->
+ <xs:element name="sup" substitutionGroup="emph.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- term: The term in text that is being defined in text. -->
+ <xs:element name="term" substitutionGroup="termdef.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- termdef: Definition of a term in text. -->
+ <xs:element name="termdef" substitutionGroup="termdef.class">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="termdef.pcd.mix"/>
+ <xs:group ref="termdef.mix"/>
+ </xs:choice>
+ <xs:attributeGroup ref="common-idreq.att"/>
+ <xs:attribute name="term" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ ID attribute:
+ A term definition must have an ID so that it can be linked
+ to from termref elements.
+ -->
+ <!--
+ term attribute:
+ The canonical form of the term or phrase being defined must
+ appear in this attribute, even if the term or phrase also
+ appears in the element content in identical form (e.g., in
+ the term element).
+ -->
+ <!--
+ termref: Mention of a term, along with a link to the
+ definition in the current document.
+ -->
+ <xs:element name="termref" substitutionGroup="ref.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="def-req.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ ref attribute:
+ A term reference must link to the termdef element that
+ defines the term.
+ -->
+ <!-- #1999-07-02: maler: Added show/actuate attributes and default values. -->
+ <!--
+ titleref: Citation of another document, which can also
+ link to that document if it is a Web resource.
+ -->
+ <xs:element name="titleref" substitutionGroup="ref.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href.att"/>
+ <xs:attributeGroup ref="user-new.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ href attribute:
+ A title reference can optionally function as a hypertext
+ link to the resource with this title. E.g.:
+
+ <loc href="http://www.my.com/doc.htm">http://www.my.com/doc.htm</loc>
+ -->
+ <!-- #2000-03-07: maler: Added var. -->
+ <!--
+ var: String standing for a variable value that the user
+ or system will supply. For example: "For each node
+ <var>x</var> in this node-set..."
+ -->
+ <xs:element name="var" substitutionGroup="tech.class">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="tech.pcd.mix"/>
+ <xs:attributeGroup ref="common.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- #1999-07-02: maler: Added show/actuate attributes and default values. -->
+ <!--
+ xnt: Mention of a nonterminal in text, along with a link to
+ the production in another document that defines it.
+ -->
+ <xs:element name="xnt" substitutionGroup="tech.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href-req.att"/>
+ <xs:attributeGroup ref="user-new.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ href attribute:
+ The nonterminal must hyperlink to a resource that serves
+ to define it (e.g., a production in a related XML
+ specification). E.g.:
+
+ <xnt href="http://www.w3.org/TR/spec.htm#prod3">Name</xnt>
+ -->
+ <!--
+ #1997-12-29: maler: Declared xspecref.
+ #1999-07-02: maler: Added show/actuate attributes and default values.
+ -->
+ <!--
+ xspecref: Reference to a div, olist item, prod, or issue
+ in a related specification document; should generate
+ no special text.
+ -->
+ <xs:element name="xspecref" substitutionGroup="ref.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href-req.att"/>
+ <xs:attributeGroup ref="user-new.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ href attribute:
+ The spec reference must hyperlink to the resource to
+ cross-refer to (e.g., a section in a related XML
+ specification). E.g.:
+
+ <xspecref href="http://www.w3.org/TR/spec.htm#sec2">
+ the section on constraints</xspecref>
+ -->
+ <!-- #1999-07-02: maler: Added show/actuate attributes and default values. -->
+ <!--
+ termref: Mention of a term, along with a link to the
+ definition in a related document.
+ -->
+ <xs:element name="xtermref" substitutionGroup="ref.class">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="phrase"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="common.att"/>
+ <xs:attributeGroup ref="simple-xlink.att"/>
+ <xs:attributeGroup ref="href-req.att"/>
+ <xs:attributeGroup ref="user-new.att"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ href attribute:
+ The term reference must hyperlink to the resource that
+ serves to define the term (e.g., a term definition in
+ a related XML specification). E.g.:
+
+ <xtermref href="http://www.w3.org/TR/spec.htm#term5">
+ entity
+ </xtermref>
+ -->
+ <!-- ............................................................... -->
+ <!-- Unused elements for ADEPT ..................................... -->
+ <!-- ............................................................... -->
+ <!--
+ #1997-09-30: maler: Added unusued elements.
+ #1997-10-14: maler: Fixed div to move nested div to the mixture.
+ #1998-05-14: maler: Added key-term, htable, and htbody.
+ #1998-11-30: maler: Added para, listitem, itemizedlist, and orderedlist.
+ -->
+ <!--
+ The following elements are purposely declared but never
+ referenced. Declaring them allows them to be pasted from
+ an HTML document, an earlier version of an XMLspec document,
+ or a DocBook document into a document using this DTD in ADEPT.
+ The ATD Context Transformation mechanism will try to convert
+ them to the appropriate element for this DTD. While this
+ conversion will not work for all fragments, it does allow many
+ cases to work reasonably well.
+ -->
+ <xs:element name="div">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="head"/>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="div.mix"/>
+ <xs:element ref="ul"/>
+ <xs:element ref="ol"/>
+ <xs:element ref="h1"/>
+ <xs:element ref="h2"/>
+ <xs:element ref="h3"/>
+ <xs:element ref="h4"/>
+ <xs:element ref="h5"/>
+ <xs:element ref="h6"/>
+ <xs:element ref="div"/>
+ </xs:choice>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="h1">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="head.pcd.mix"/>
+ <xs:element ref="em"/>
+ <xs:element ref="a"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="h2">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="head.pcd.mix"/>
+ <xs:element ref="em"/>
+ <xs:element ref="a"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="h3">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="head.pcd.mix"/>
+ <xs:element ref="em"/>
+ <xs:element ref="a"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="h4">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="head.pcd.mix"/>
+ <xs:element ref="em"/>
+ <xs:element ref="a"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="h5">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="head.pcd.mix"/>
+ <xs:element ref="em"/>
+ <xs:element ref="a"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="h6">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="head.pcd.mix"/>
+ <xs:element ref="em"/>
+ <xs:element ref="a"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="pre">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="eg.pcd.mix"/>
+ <xs:element ref="em"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ul">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="item"/>
+ <xs:element ref="li"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ol">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="item"/>
+ <xs:element ref="li"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="li">
+ <xs:complexType mixed="true">
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="obj.mix"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="em" type="xs:string"/>
+ <xs:element name="a" type="xs:string"/>
+ <xs:element name="key-term" type="xs:string"/>
+ <xs:element name="htable">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="caption"/>
+ <xs:choice>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="col"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="colgroup"/>
+ </xs:choice>
+ <xs:element minOccurs="0" ref="thead"/>
+ <xs:element minOccurs="0" ref="tfoot"/>
+ <xs:element maxOccurs="unbounded" ref="tbody"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="htbody">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="tr"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="statusp">
+ <xs:complexType mixed="true">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="p.pcd.mix"/>
+ <xs:group ref="p.mix"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="itemizedlist">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="listitem"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="orderedlist">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="listitem"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="listitem">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="para"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="para" type="xs:string"/>
+</xs:schema>
+<!-- ............................................................... -->
+<!-- Change history ................................................ -->
+<!-- ............................................................... -->
+<!--
+ #This revision history is no longer being maintained. See the CVS log
+ #for detailed revisions history.
+ #####################################################################
+ #1997-08-18: maler
+ #- Did a major revision.
+ #1997-09-10: maler
+ #- Updated FPI.
+ #- Removed namekey element and put key attribute on name element.
+ #- Made statusp element and supporting entities.
+ #- Added slist element with sitem+ content.
+ #- Required head on scrap and added new bnf subelement.
+ #- Added an xnt element and allowed it and nt in regular text and rhs.
+ #- Removed the ntref element.
+ #- Added back the com element to the content of rhs.
+ #- Added a key attribute to bibl.
+ #- Removed the ident element.
+ #- Added a term element to be used inside termdef.
+ #- Added an xtermref element parallel to termref.
+ #- Beefed up DTD comments.
+ #1997-09-12: maler
+ #- Allowed term element in general text.
+ #- Changed bibref to EMPTY.
+ #- Added ref.class to termdef.pcd.mix.
+ #1997-09-14: maler
+ #- Changed main attribute of xtermref from def to href.
+ #- Added termdef.class to label contents.
+ #1997-09-30: maler
+ #- Added character entity module and added new entities.
+ #- Removed p from appearing directly in self; created %p.mix;.
+ #- Added inform-div (non-normative division) element.
+ #- Fixed xtermref comment to mention href, not ref.
+ #- Extended orglist model to allow optional affiliation.
+ #- Modified author to make affiliation optional.
+ #- Added %speclist.class; and %note.class; to %obj.mix; and %p.mix;.
+ #- Added %note.class; and %illus.class; to %termdef.pcd.mix;.
+ #- Added unused HTML elements.
+ #- Put empty system ID next to public ID in entity declarations.
+ #1997-10-14: maler
+ #- Fixed "unused" div content model to move nested div to mixture.
+ #1997-10-16: maler
+ #- Added SGML Open Exchange tables.
+ #1997-11-28: maler
+ #- Added support for prodgroup and its attributes.
+ #- Added support for HTML tables.
+ #- Added loc and bibref to content of com.
+ #- Added loc to general p content models.
+ #- Allowed p as alternative to statusp in status.
+ #- Added non-null system IDs to external parameter entity declarations.
+ #- (Modified the SGML Open table module to make it XML-compliant.)
+ #- (Modified the character entity module.)
+ #1997-12-29: maler
+ #- Moved #PCDATA occurrences to come before GIs in content models.
+ #- Removed use of the SGML Open table module.
+ #- Added xspecref element.
+ #- Ensured that all FPIs contain 4-digit year.
+ #- (Modified the character entity module.)
+ #1998-03-10: maler
+ #- Merged the character entity and table modules into the main file.
+ #- Added ldquo and rdquo entities.
+ #- Added common attributes to prodgroup.
+ #- Made the email element in header optional.
+ #- Removed reference to the SGML Open table model.
+ #- Added ednote element.
+ #- Added quote element.
+ #- Updated XLink usage to reflect 3 March 1998 WD.
+ #- Added "local" entities to the class entities for customization.
+ #- Parameterized several content models to allow for customization.
+ #1998-03-23: maler
+ #- Cleaned up some comments and removed some others.
+ #- Added xml:space semi-common attribute to eg and bnf elements.
+ #- Added show and embed attributes on all the uses of href.
+ #- Added %common.att; to all HTML table elements.
+ #- Added a real URI to the "typical invocation" comment.
+ #1998-05-14: maler
+ #- Fixed mdash, ldquo, and rdquo character entities.
+ #- Switched to the full HTML 4.0 table model.
+ #- Removed htable/htbody elements and replaced them with table/tbody.
+ #- Added issue element to %note.class; and declared it.
+ #- Allowed prevlocs and latestloc in either order.
+ #- Added key-term, htable, htbody, and statusp as unused elements.
+ #- Removed real statusp element in favor of plain p.
+ #1998-05-21: maler
+ #- Declared generic constraint and constraintnote elements.
+ #- Added constraintnote to %note.class;.
+ #- Added constraint to %eg.pcd.mix; and prod content model.
+ #1998-08-22: maler
+ #- Fixed %illus.class; to mention table instead of htable.
+ #- Added definitions to %illus.class; for DOM model.
+ #- Added DOM definitions element and its substructure.
+ #- Updated XLink usage in %href.att; to use xlink:form and #IMPLIED.
+ #- Added clarifying comments to href-using elements.
+ #1998-11-30: maler
+ #- Added new unused elements to support DocBook translation.
+ #- Updated maler phone numbers.
+ #1998-12-3: maler
+ #- Fixed character entities with respect to escaping of ampersands.
+ #- Added many more explanatory comments.
+ #1999-07-02: maler
+ #- Added %loc.class; to all PCD mixes that didn't already have it.
+ #- Removed unused %loc.pcd.mix;.
+ #- Made version in spec header optional.
+ #- Added three new attributes to spec.
+ #- Broadened content of edtext.
+ #- Added optional copyright element to header.
+ #- Reorganized XLink-related parameter entities; added xmlns:xlink.
+ #- Changed edtext content from #PCDATA to %p.pcd.mix;.
+ #- Added show/actuate atts and default values to all href elements.
+ #- Changed versioning scheme from 8-digit dates to version numbers.
+ #- Added w3c-doctype, other-doctype, status atts to spec element.
+ #- Added prodrecap element inside scrap.
+ #- Added headstyle attribute to scrap.
+ #2000-03-07: maler
+ #- Added proto element, its arg subelement, and the %argtypes; entity.
+ #- Added function, var, sub, sup, phrase, el, att, attval elements.
+ #- Expanded emph to %p.pcd.mix;.
+ #- Allowed status and abstract to appear in the opposite order.
+ #- Updated XLink usage to the latest WD, except for href and source.
+ #- Removed the xml:attributes attribute from graphic.
+ #- Added %local.graphic.att; to graphic.
+ #- Added common diff attribute.
+ #- Added div5 element.
+ #- Broadened content models of publoc, prevlocs, and latestloc.
+ #- Added head, source, resolution, and status attribute to issue.
+ #- Added cr, issues, and dispcmts to w3c-doctype attribute on spec.
+ #- Added example element.
+-->
+<!-- ............................................................... -->
+<!-- End of XML specification DTD .................................. -->
+<!-- ............................................................... -->
diff --git a/client/formatXML.sh b/client/formatXML.sh
deleted file mode 100755
index c830f30..0000000
--- a/client/formatXML.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-cd ..
-
-for f in $(find -name "*.xml")
-do
- if [ ${f} != "./items.xml" ]; then
- xsltproc tools/indent.xsl ${f} > ${f}__
- mv ${f}__ ${f}
- fi
-done
-xmlindent items.xml > items.xml_
-sed 's/[[:space:]]*$//' items.xml_ > items.xml
diff --git a/client/indent.xsl b/client/indent.xsl
deleted file mode 100644
index 7d747ab..0000000
--- a/client/indent.xsl
+++ /dev/null
@@ -1,7 +0,0 @@
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="xml" indent="yes"/>
- <xsl:strip-space elements="*"/>
- <xsl:template match="/">
- <xsl:copy-of select="."/>
- </xsl:template>
-</xsl:stylesheet>
diff --git a/client/tmw.xsd b/client/tmw.xsd
new file mode 100644
index 0000000..139f3b9
--- /dev/null
+++ b/client/tmw.xsd
@@ -0,0 +1,637 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- vim: set sts=2 sw=2: -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:its="http://www.w3.org/2005/11/its" elementFormDefault="qualified">
+ <!--
+ meta
+ -->
+ <!--
+ Probably most 'sequence' below should really be 'choice',
+ and the corresponding maxOccurs should be hoisted.
+ TODO see what happens for duplicates in that case (see <chars> in particular)
+ -->
+ <xs:import namespace="http://www.w3.org/2005/11/its" schemaLocation="dl/its.xsd"/>
+ <!--
+ common
+ -->
+ <xs:complexType name="weapon_items">
+ <xs:sequence>
+ <xs:element name="item" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="include">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:simpleType name="cursor">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="small"/>
+ <xs:enumeration value="large"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="sex">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="male"/>
+ <xs:enumeration value="female"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="replace_dir">
+ <!-- also used for drawBefore -->
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="left"/>
+ <xs:enumeration value="right"/>
+ <xs:enumeration value="upall"/>
+ <xs:enumeration value="downall"/>
+ <xs:enumeration value="up"/>
+ <xs:enumeration value="down"/>
+ <xs:enumeration value="default"/>
+ <xs:enumeration value="upright"/>
+ <xs:enumeration value="upleft"/>
+ <xs:enumeration value="downright"/>
+ <xs:enumeration value="downleft"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="replace_sprite">
+ <!-- also used for drawBefore -->
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="hair"/>
+ <xs:enumeration value="hat"/>
+ <xs:enumeration value="pants"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="sound_event">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="strike"/>
+ <xs:enumeration value="hit"/>
+ <xs:enumeration value="miss"/>
+ <xs:enumeration value="die"/>
+ <xs:enumeration value="hurt"/>
+ <xs:enumeration value="move"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:complexType name="item_drawBefore">
+ <xs:attribute name="name" type="replace_sprite" use="required"/>
+ <xs:attribute name="direction" type="replace_dir" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="item_sprite">
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="gender" type="sex" use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ <xs:complexType name="item_replace">
+ <xs:sequence>
+ <xs:element name="item" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="from" type="xs:integer" use="optional"/>
+ <xs:attribute name="to" type="xs:integer" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="direction" type="replace_dir" use="optional"/>
+ <xs:attribute name="sprite" type="replace_sprite" use="required"/>
+ </xs:complexType>
+ <xs:complexType name="item_sound">
+ <!-- TODO also being used for monster sounds, see if that's really ok -->
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="event" type="sound_event" use="required"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ <xs:simpleType name="attack_action">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="attack"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="attack_type">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="direct"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="unit_type">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="currency"/>
+ <xs:enumeration value="weight"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="sprite_action">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="stand"/>
+ <xs:enumeration value="walk"/>
+ <xs:enumeration value="attack"/>
+ <xs:enumeration value="dead"/>
+ <xs:enumeration value="default"/>
+ <xs:enumeration value="sit"/>
+ <xs:enumeration value="attack_bow"/>
+ <xs:enumeration value="attack_sword_stab"/>
+ <xs:enumeration value="attack_dagger_stab"/>
+ <xs:enumeration value="attack_spear"/>
+ <xs:enumeration value="attack_chop"/>
+ <xs:enumeration value="attack_2hand"/>
+ <xs:enumeration value="cast"/>
+ <xs:enumeration value="attack_dagger_stab"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:simpleType name="literal_stand">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="stand"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <xs:complexType name="sequence">
+ <xs:attribute name="start" type="xs:integer" use="required"/>
+ <xs:attribute name="end" type="xs:integer" use="required"/>
+ <xs:attribute name="delay" type="xs:integer" use="optional"/>
+ <xs:attribute name="offsetX" type="xs:integer" use="optional"/>
+ <xs:attribute name="offsetY" type="xs:integer" use="optional"/>
+ </xs:complexType>
+ <xs:complexType name="animation">
+ <xs:sequence>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="frame">
+ <xs:complexType>
+ <xs:attribute name="index" type="xs:integer" use="required"/>
+ <xs:attribute name="delay" type="xs:integer" use="optional"/>
+ <xs:attribute name="offsetX" type="xs:integer" use="optional"/>
+ <xs:attribute name="offsetY" type="xs:integer" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="sequence" type="sequence"/>
+ </xs:choice>
+ <xs:element name="end" minOccurs="0">
+ <xs:complexType>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="direction" type="replace_dir" use="optional"/>
+ <xs:attribute name="imageset" type="xs:string" use="optional"/>
+ <xs:attribute name="width" type="xs:integer" use="optional"/>
+ <xs:attribute name="height" type="xs:integer" use="optional"/>
+ </xs:complexType>
+ <xs:complexType name="emitter">
+ <xs:choice maxOccurs="unbounded">
+ <xs:element name="property">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="value" type="xs:string" use="optional"/>
+ <xs:attribute name="min" type="xs:decimal" use="optional"/>
+ <xs:attribute name="max" type="xs:decimal" use="optional"/>
+ <xs:attribute name="change-func" type="change_func" use="optional"/>
+ <xs:attribute name="change-amplitude" type="xs:integer" use="optional"/>
+ <xs:attribute name="change-period" type="xs:integer" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="animation" type="animation"/>
+ <xs:element name="emitter" type="emitter"/>
+ </xs:choice>
+ </xs:complexType>
+ <xs:simpleType name="change_func">
+ <xs:restriction base="xs:string">
+ <xs:enumeration value="sine"/>
+ </xs:restriction>
+ </xs:simpleType>
+ <!--
+ end meta
+ -->
+ <!--
+ effects.xml
+ -->
+ <xs:element name="being-effects">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="effect" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ <xs:attribute name="audio" type="xs:string" use="optional"/>
+ <xs:attribute name="particle" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ charcreation.xml
+ -->
+ <xs:element name="chars">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="haircolor">
+ <xs:complexType>
+ <xs:attribute name="min" type="xs:integer" use="required"/>
+ <xs:attribute name="max" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="hairstyle">
+ <xs:complexType>
+ <xs:attribute name="min" type="xs:integer" use="required"/>
+ <xs:attribute name="max" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="stat">
+ <xs:complexType>
+ <xs:attribute name="min" type="xs:integer" use="required"/>
+ <xs:attribute name="max" type="xs:integer" use="required"/>
+ <xs:attribute name="sum" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="item" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ hair.xml
+ -->
+ <xs:element name="colors">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="its:rules" minOccurs="0"/>
+ <xs:element name="color" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ <xs:attribute name="value" type="xs:string" use="required"/>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ features.xml, paths.xml
+ -->
+ <xs:element name="configuration">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="option" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="value" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ emotes.xml
+ -->
+ <xs:element name="emotes">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="its:rules" minOccurs="0"/>
+ <xs:element name="emote" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="sprite">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="variant" type="xs:integer" use="required"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ equipmentwindow.xml
+ -->
+ <xs:element name="equipment">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="window">
+ <xs:complexType>
+ <xs:attribute name="width" type="xs:integer" use="required"/>
+ <xs:attribute name="height" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="playerbox">
+ <xs:complexType>
+ <xs:attribute name="x" type="xs:integer" use="required"/>
+ <xs:attribute name="y" type="xs:integer" use="required"/>
+ <xs:attribute name="width" type="xs:integer" use="required"/>
+ <xs:attribute name="height" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="slot" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="x" type="xs:integer" use="required"/>
+ <xs:attribute name="y" type="xs:integer" use="required"/>
+ <xs:attribute name="image" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ items.xml
+ -->
+ <xs:element name="items">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="its:rules" minOccurs="0"/>
+ <xs:element ref="include" minOccurs="0" maxOccurs="unbounded"/>
+ <xs:element name="item" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <!--
+ TODO change xml files to all be <replace/> <sprite/>
+ -->
+ <xs:sequence>
+ <xs:element name="drawBefore" minOccurs="0" type="item_drawBefore"/>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="sprite" type="item_sprite"/>
+ <xs:element name="replace" type="item_replace"/>
+ </xs:choice>
+ <xs:element name="sound" minOccurs="0" maxOccurs="unbounded" type="item_sound"/>
+ <xs:element name="particlefx" minOccurs="0" type="xs:string"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ <xs:attribute name="type" type="xs:string" use="optional"/>
+ <xs:attribute name="name" type="xs:string" use="optional"/>
+ <xs:attribute name="attack-action" type="xs:string" use="optional"/>
+ <xs:attribute name="image" type="xs:string" use="optional"/>
+ <xs:attribute name="description" type="xs:string" use="optional"/>
+ <xs:attribute name="hp" type="xs:integer" use="optional"/>
+ <xs:attribute name="weight" type="xs:integer" use="optional"/>
+ <xs:attribute name="tag" type="xs:string" use="optional"/>
+ <xs:attribute name="effect" type="xs:string" use="optional"/>
+ <xs:attribute name="defense" type="xs:integer" use="optional"/>
+ <xs:attribute name="sellProtected" type="xs:boolean" use="optional"/>
+ <xs:attribute name="attack-range" type="xs:integer" use="optional"/>
+ <xs:attribute name="missile-particle" type="xs:string" use="optional"/>
+ <xs:attribute name="mp" type="xs:integer" use="optional"/>
+ <xs:attribute name="str" type="xs:integer" use="optional"/>
+ <xs:attribute name="agi" type="xs:integer" use="optional"/>
+ <xs:attribute name="vit" type="xs:integer" use="optional"/>
+ <xs:attribute name="int" type="xs:integer" use="optional"/>
+ <xs:attribute name="dex" type="xs:integer" use="optional"/>
+ <xs:attribute name="luck" type="xs:integer" use="optional"/>
+ <xs:attribute name="drawBefore" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ maps.xml
+ -->
+ <xs:element name="maps">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="map" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="atlas">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="atlas" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="file" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ monsters.xml
+ -->
+ <xs:element name="monsters">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="its:rules" minOccurs="0"/>
+ <xs:element name="monster" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element name="sprite" type="xs:string"/>
+ <xs:element name="particlefx" type="xs:string"/>
+ <xs:element name="sound" type="item_sound"/>
+ <xs:element name="attack" minOccurs="0">
+ <xs:complexType>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ <xs:attribute name="critical-hit-effect-id" type="xs:integer" use="optional"/>
+ <xs:attribute name="hit-effect-id" type="xs:integer" use="optional"/>
+ <xs:attribute name="effect-id" type="xs:integer" use="optional"/>
+ <xs:attribute name="particle-effect" type="xs:string" use="optional"/>
+ <xs:attribute name="missile-particle" type="xs:string" use="optional"/>
+ <xs:attribute name="action" type="attack_action" use="optional"/>
+ <xs:attribute name="type" type="attack_type" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:choice>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="targetCursor" type="cursor" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="offset" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ npcs.xml
+ -->
+ <xs:element name="npcs">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="npc" maxOccurs="unbounded">
+ <xs:complexType>
+ <!-- This 'minOccurs' is suspicious -->
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element name="sprite">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="variant" type="xs:integer" use="optional"/>
+ <xs:attribute name="gender" type="sex" use="optional"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="particlefx" type="xs:string"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ <xs:attribute name="targetSelection" type="xs:boolean" use="optional"/>
+ <xs:attribute name="nameOffsetX" type="xs:integer" use="optional"/>
+ <xs:attribute name="nameOffsetY" type="xs:integer" use="optional"/>
+ <xs:attribute name="targetOffsetX" type="xs:integer" use="optional"/>
+ <xs:attribute name="targetOffsetY" type="xs:integer" use="optional"/>
+ <xs:attribute name="targetCursor" type="cursor" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!-- skills.xml (modern), ea-skills.xml (for old versions) -->
+ <xs:element name="skills">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="its:rules" minOccurs="0"/>
+ <xs:element name="set" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="skill" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="icon" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ status-effects.xml
+ -->
+ <xs:element name="status-effects">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="status-effect" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="id" type="xs:integer" use="required"/>
+ <xs:attribute name="block-id" type="xs:integer" use="optional"/>
+ <xs:attribute name="persistent-particle-effect" type="xs:boolean" use="optional"/>
+ <xs:attribute name="start-particle" type="xs:string" use="optional"/>
+ <xs:attribute name="icon" type="xs:string" use="optional"/>
+ <xs:attribute name="start-message" type="xs:string" use="optional"/>
+ <xs:attribute name="end-message" type="xs:string" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ units.xml
+ -->
+ <xs:element name="units">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="unit" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="level" minOccurs="0">
+ <xs:complexType>
+ <xs:attribute name="symbol" type="xs:string" use="required"/>
+ <xs:attribute name="count" type="xs:integer" use="required"/>
+ <xs:attribute name="round" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="type" type="unit_type" use="required"/>
+ <xs:attribute name="base" type="xs:string" use="required"/>
+ <xs:attribute name="round" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ weapons.xml
+ -->
+ <xs:element name="weapons">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element name="swords" type="weapon_items"/>
+ <xs:element name="bows" type="weapon_items"/>
+ <xs:element name="shields" type="weapon_items"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="effect">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="particle" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="rotation" minOccurs="0">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="sequence" type="sequence"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string" use="optional"/>
+ <xs:attribute name="imageset" type="xs:string" use="required"/>
+ <xs:attribute name="width" type="xs:integer" use="required"/>
+ <xs:attribute name="height" type="xs:integer" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="animation" type="animation" minOccurs="0"/>
+ <xs:element name="emitter" type="emitter" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="position-x" type="xs:integer" use="required"/>
+ <xs:attribute name="position-y" type="xs:integer" use="required"/>
+ <xs:attribute name="position-z" type="xs:integer" use="required"/>
+ <xs:attribute name="lifetime" type="xs:integer" use="optional"/>
+ <xs:attribute name="follow-parent" type="xs:integer" use="optional"/>
+ <xs:attribute name="size-adjustable" type="xs:boolean" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="sprite">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="imageset" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:attribute name="name" type="xs:string" use="required"/>
+ <xs:attribute name="src" type="xs:string" use="required"/>
+ <xs:attribute name="width" type="xs:integer" use="required"/>
+ <xs:attribute name="height" type="xs:integer" use="required"/>
+ <xs:attribute name="offsetY" type="xs:integer" use="optional"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="action" minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element name="animation" type="animation" minOccurs="0" maxOccurs="unbounded"/>
+ </xs:sequence>
+ <xs:attribute name="name" type="sprite_action" use="required"/>
+ <xs:attribute name="imageset" type="xs:string" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="include" minOccurs="0">
+ <xs:complexType>
+ <xs:attribute name="file" use="required"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attribute name="name" type="xs:string"/>
+ <xs:attribute name="action" type="literal_stand"/>
+ <xs:attribute name="variants" type="xs:integer"/>
+ <xs:attribute name="variant_offset" type="xs:integer"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>