summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/xml/compound.xsd3
-rw-r--r--templates/xml/index.xsd3
-rw-r--r--templates/xml/xml.xsd23
3 files changed, 29 insertions, 0 deletions
diff --git a/templates/xml/compound.xsd b/templates/xml/compound.xsd
index 4df19ce..974a43c 100644
--- a/templates/xml/compound.xsd
+++ b/templates/xml/compound.xsd
@@ -1,5 +1,7 @@
<?xml version='1.0' encoding='utf-8' ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
+
<xsd:element name="doxygen" type="DoxygenType"/>
<!-- Complex types -->
@@ -9,6 +11,7 @@
<xsd:element name="compounddef" type="compounddefType" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="version" type="DoxVersionNumber" use="required" />
+ <xsd:attribute ref="xml:lang" use="required"/>
</xsd:complexType>
<xsd:complexType name="compounddefType">
diff --git a/templates/xml/index.xsd b/templates/xml/index.xsd
index 04cb2f1..edb1d34 100644
--- a/templates/xml/index.xsd
+++ b/templates/xml/index.xsd
@@ -1,5 +1,7 @@
<?xml version='1.0' encoding='utf-8' ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
+
<xsd:element name="doxygenindex" type="DoxygenType"/>
<xsd:complexType name="DoxygenType">
@@ -7,6 +9,7 @@
<xsd:element name="compound" type="CompoundType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:string" use="required"/>
+ <xsd:attribute ref="xml:lang" use="required"/>
</xsd:complexType>
<xsd:complexType name="CompoundType">
diff --git a/templates/xml/xml.xsd b/templates/xml/xml.xsd
new file mode 100644
index 0000000..9f80fe1
--- /dev/null
+++ b/templates/xml/xml.xsd
@@ -0,0 +1,23 @@
+<?xml version='1.0'?>
+<xsd:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xml:lang="en">
+
+ <xsd:attribute name="lang" type="xsd:language">
+ </xsd:attribute>
+
+ <xsd:attribute name="space" default="preserve">
+ <xsd:simpleType>
+ <xsd:restriction base="xsd:NCName">
+ <xsd:enumeration value="default"/>
+ <xsd:enumeration value="preserve"/>
+ </xsd:restriction>
+ </xsd:simpleType>
+ </xsd:attribute>
+
+ <xsd:attributeGroup name="specialAttrs">
+ <xsd:attribute ref="xml:lang"/>
+ <xsd:attribute ref="xml:space"/>
+ </xsd:attributeGroup>
+
+</xsd:schema>