]> granicus.if.org Git - docbook-dsssl/commitdiff
DocBook Modules
authorNorman Walsh <ndw@nwalsh.com>
Tue, 31 Dec 2002 20:11:20 +0000 (20:11 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Tue, 31 Dec 2002 20:11:20 +0000 (20:11 +0000)
schema/relaxng/ebnf/dbebnf.rng [new file with mode: 0644]
schema/relaxng/ebnf/ebnf.rng [new file with mode: 0644]
schema/relaxng/htmlforms/dbforms.rng [new file with mode: 0644]
schema/relaxng/htmlforms/htmlforms.rng [new file with mode: 0644]
schema/relaxng/mathml/dbmathml.rng [new file with mode: 0644]
schema/relaxng/mathml/mathml.rng [new file with mode: 0644]
schema/relaxng/svg/dbsvg.rng [new file with mode: 0644]
schema/relaxng/svg/svg.rng [new file with mode: 0644]

diff --git a/schema/relaxng/ebnf/dbebnf.rng b/schema/relaxng/ebnf/dbebnf.rng
new file mode 100644 (file)
index 0000000..0d2ba6a
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+         xmlns:rng="http://relaxng.org/ns/structure/1.0"
+         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+         xmlns:s="http://www.ascc.net/xml/schematron"
+         xmlns:doc="http://nwalsh.com/xmlns/documentation"
+         xmlns:db="http://nwalsh.com/xmlns/docbook-grammar-structure"
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+<include href="docbook.rng"/>
+<include href="ebnf.rng"/>
+
+</grammar>
diff --git a/schema/relaxng/ebnf/ebnf.rng b/schema/relaxng/ebnf/ebnf.rng
new file mode 100644 (file)
index 0000000..89f6fcc
--- /dev/null
@@ -0,0 +1,233 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+         xmlns:rng="http://relaxng.org/ns/structure/1.0"
+         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+         xmlns:s="http://www.ascc.net/xml/schematron"
+         xmlns:doc="http://nwalsh.com/xmlns/documentation"
+         xmlns:db="http://nwalsh.com/xmlns/docbook-grammar-structure"
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+<rng:div doc:docbook="yes" xmlns="">
+<partinfo>
+<releaseinfo
+   role="cvs">$Id$</releaseinfo>
+<title>DocBook EBNF Module</title>
+<productname>DocBook</productname>
+<productnumber>1.1CR1+</productnumber>
+<releaseinfo role="filename">ebnf</releaseinfo>
+<copyright>
+<year>2001</year>
+<year>2002</year>
+<holder>OASIS Open, Inc.</holder>
+</copyright>
+
+<legalnotice>
+<para>Permission to use, copy, modify and distribute the DocBook schema
+and its accompanying documentation for any purpose and without fee
+is hereby granted in perpetuity, provided that the above copyright
+notice and this paragraph appear in all copies. The copyright
+holders make no representation about the suitability of the schema for
+any purpose. It is provided <quote>as is</quote> without expressed or implied
+warranty.</para>
+
+<para>If you modify the DocBook in any way, except for declaring and
+referencing additional sets of general entities and declaring
+additional notations, label your schema as a variant of DocBook. See
+the maintenance documentation for more information.</para>
+
+<para>Please direct all questions, bug reports, or suggestions for
+changes to the <email>docbook@lists.oasis-open.org</email> mailing list. For more
+information, see <ulink url="http://www.oasis-open.org/docbook/"/>.</para>
+</legalnotice>
+</partinfo>
+
+<partintro>
+<para>This module contains the definitions for the DocBook EBNF module.
+</para>
+
+<para>When using this schema in driver files referring to the DTD
+version of this module, please use an entity declaration that uses the
+public identifier shown below:</para>
+
+<para>This is the driver file for V1.1CR1 of the DocBook EBNF Module.
+Please use the following formal public identifier to identify it:</para>
+
+<screen>-//OASIS//DTD DocBook EBNF Module V1.1CR1//EN</screen>
+
+<para>For example, if your document's top-level element is Book, and
+you are using DocBook directly, use the FPI in the DOCTYPE
+declaration:
+
+<screen><![CDATA[<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.1CR1//EN"
+               "http://www.oasis-open.org/docbook/xml/ebnf/1.1CR1/dbebnf.dtd"
+               [...]>]]></screen>
+
+<para>Or, if you have a higher-level driver file that customizes DocBook,
+use the FPI in the parameter entity declaration:</para>
+
+<screen><![CDATA[<!ENTITY % DocBookEBNFDTD PUBLIC "-//OASIS//DTD DocBook EBNF Module V1.1CR1//EN"
+           "http://www.oasis-open.org/docbook/xml/ebnf/1.1CR1/dbebnf.dtd">
+%DocBookEBNFDTD;]]></screen>
+
+<para>See the documentation for detailed information on the parameter
+entity and module scheme used in DocBook, customizing DocBook and
+planning for interchange, and changes made since the last release
+of DocBook.</para>
+</partintro>
+</rng:div>
+
+  <define name="ebnf.inline.hook" combine="choice">
+    <ref name="nonterminal"/>
+  </define>
+
+  <define name="ebnf.block.hook" combine="choice">
+    <choice>
+      <ref name="productionset"/>
+      <ref name="constraintdef"/>
+    </choice>
+  </define>
+
+  <define name="productionset">
+    <element name="productionset">
+      <ref name="productionset.attlist"/>
+      <optional>
+        <ref name="formalobject.title.content"/>
+      </optional>
+      <oneOrMore>
+        <choice>
+          <ref name="production"/>
+          <ref name="productionrecap"/>
+        </choice>
+      </oneOrMore>
+    </element>
+  </define>
+
+  <define name="productionset.attlist" combine="interleave">
+    <ref name="common.attrib"/>
+    <ref name="role.attrib"/>
+  </define>
+
+  <define name="production">
+    <element name="production">
+      <ref name="production.attlist"/>
+      <ref name="lhs"/>
+      <ref name="rhs"/>
+      <zeroOrMore>
+        <ref name="constraint"/>
+      </zeroOrMore>
+    </element>
+  </define>
+
+  <define name="production.attlist" combine="interleave">
+    <ref name="idreq.common.attrib"/>
+    <ref name="role.attrib"/>
+  </define>
+
+  <define name="lhs">
+    <element name="lhs">
+      <ref name="lhs.attlist"/>
+      <text/>
+    </element>
+  </define>
+
+  <define name="lhs.attlist" combine="interleave">
+    <ref name="common.attrib"/>
+    <ref name="role.attrib"/>
+  </define>
+
+  <define name="rhs">
+    <element name="rhs">
+      <ref name="rhs.attlist"/>
+      <zeroOrMore>
+        <choice>
+          <text/>
+          <ref name="nonterminal"/>
+          <ref name="lineannotation"/>
+          <ref name="sbr"/>
+        </choice>
+      </zeroOrMore>
+    </element>
+  </define>
+
+  <define name="rhs.attlist" combine="interleave">
+    <ref name="common.attrib"/>
+    <ref name="role.attrib"/>
+  </define>
+
+<!-- Allowed to be an xpointer: you can point to non-terminals in -->
+<!-- other specifications. -->
+  <define name="required-XLink-to-production-ID">
+    <attribute name="def"/>
+  </define>
+
+  <define name="nonterminal">
+    <element name="nonterminal">
+      <ref name="nonterminal.attlist"/>
+      <text/>
+    </element>
+  </define>
+
+  <define name="nonterminal.attlist" combine="interleave">
+    <ref name="common.attrib"/>
+    <ref name="required-XLink-to-production-ID"/>
+    <ref name="role.attrib"/>
+  </define>
+
+<!-- Must be an IDREF: constraints identified in your spec must be -->
+<!-- represented in your spec. -->
+  <define name="required-IDREF-to-constraintdef-ID">
+    <attribute name="linkend">
+      <data type="IDREF"/>
+    </attribute>
+  </define>
+
+  <define name="constraint">
+    <element name="constraint">
+      <ref name="constraint.attlist"/>
+      <empty/>
+    </element>
+  </define>
+
+  <define name="constraint.attlist" combine="interleave">
+    <ref name="common.attrib"/>
+    <ref name="required-IDREF-to-constraintdef-ID"/>
+    <ref name="role.attrib"/>
+  </define>
+
+<!-- Must be an IDREF: you can only recap productions in your spec -->
+  <define name="required-IDREF-to-production-ID">
+    <attribute name="linkend">
+      <data type="IDREF"/>
+    </attribute>
+  </define>
+
+  <define name="productionrecap">
+    <element name="productionrecap">
+      <ref name="productionrecap.attlist"/>
+      <empty/>
+    </element>
+  </define>
+
+  <define name="productionrecap.attlist" combine="interleave">
+    <ref name="common.attrib"/>
+    <ref name="role.attrib"/>
+    <ref name="required-IDREF-to-production-ID"/>
+  </define>
+
+  <define name="constraintdef">
+    <element name="constraintdef">
+      <ref name="constraintdef.attlist"/>
+      <ref name="title"/>
+      <ref name="admon.mix"/>
+    </element>
+  </define>
+
+  <define name="constraintdef.attlist" combine="interleave">
+    <ref name="idreq.common.attrib"/>
+    <ref name="role.attrib"/>
+  </define>
+
+<!-- End of dbebnf.dtd V1.1CR1 ............................................ -->
+<!-- ...................................................................... -->
+
+</grammar>
diff --git a/schema/relaxng/htmlforms/dbforms.rng b/schema/relaxng/htmlforms/dbforms.rng
new file mode 100644 (file)
index 0000000..efacc52
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+         xmlns:rng="http://relaxng.org/ns/structure/1.0"
+         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+         xmlns:s="http://www.ascc.net/xml/schematron"
+         xmlns:doc="http://nwalsh.com/xmlns/documentation"
+         xmlns:db="http://nwalsh.com/xmlns/docbook-grammar-structure"
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+<include href="docbook.rng"/>
+<include href="htmlforms.rng"/>
+
+</grammar>
diff --git a/schema/relaxng/htmlforms/htmlforms.rng b/schema/relaxng/htmlforms/htmlforms.rng
new file mode 100644 (file)
index 0000000..40ab2dd
--- /dev/null
@@ -0,0 +1,462 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+         xmlns:rng="http://relaxng.org/ns/structure/1.0"
+         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+         xmlns:s="http://www.ascc.net/xml/schematron"
+         xmlns:doc="http://nwalsh.com/xmlns/documentation"
+         xmlns:db="http://nwalsh.com/xmlns/docbook-grammar-structure"
+         xmlns:html="http://www.w3.org/1999/xhtml"
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+<rng:div doc:docbook="yes" xmlns="">
+<partinfo>
+<releaseinfo
+   role="cvs">$Id$</releaseinfo>
+<title>DocBook HTML Forms Module</title>
+<productname>DocBook</productname>
+<productnumber>1.1+</productnumber>
+<releaseinfo role="filename">htmlforms</releaseinfo>
+<copyright>
+<year>2000</year>
+<year>2001</year>
+<year>2002</year>
+<holder>OASIS Open, Inc.</holder>
+</copyright>
+
+<legalnotice>
+<para>Permission to use, copy, modify and distribute the DocBook schema
+and its accompanying documentation for any purpose and without fee
+is hereby granted in perpetuity, provided that the above copyright
+notice and this paragraph appear in all copies. The copyright
+holders make no representation about the suitability of the schema for
+any purpose. It is provided <quote>as is</quote> without expressed or implied
+warranty.</para>
+
+<para>If you modify the DocBook in any way, except for declaring and
+referencing additional sets of general entities and declaring
+additional notations, label your schema as a variant of DocBook. See
+the maintenance documentation for more information.</para>
+
+<para>Please direct all questions, bug reports, or suggestions for
+changes to the <email>docbook@lists.oasis-open.org</email> mailing list. For more
+information, see <ulink url="http://www.oasis-open.org/docbook/"/>.</para>
+</legalnotice>
+</partinfo>
+
+<partintro>
+<para>This module contains the definitions for the DocBook HTML Forms module.
+</para>
+
+<para>When using this schema in driver files referring to the DTD
+version of this module, please use an entity declaration that uses the
+public identifier shown below:</para>
+
+<screen>-//OASIS//DTD DocBook HTML Forms Module V1.1//EN</screen>
+
+<para>For example, if your document's top-level element is Book, and
+you are using DocBook directly, use the FPI in the DOCTYPE
+declaration:</para>
+
+<screen><![CDATA[<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook HTML Forms Module V1.1//EN"
+               "http://www.oasis-open.org/docbook/xml/htmlforms/1.1/dbforms.dtd"
+               [...]>]]></screen>
+
+<para>Or, if you have a higher-level driver file that customizes DocBook,
+use the FPI in the parameter entity declaration:</para>
+
+<screen><![CDATA[<!ENTITY % DocBookHTMLFormsDTD PUBLIC "-//OASIS//DTD DocBook HTML Forms Module V1.1//EN"
+           "http://www.oasis-open.org/docbook/xml/htmlforms/1.1/dbforms.dtd">
+%DocBookHTMLFormsDTD;]]></screen>
+
+<para>See the documentation for detailed information on the parameter
+entity and module scheme used in DocBook, customizing DocBook and
+planning for interchange, and changes made since the last release
+of DocBook.</para>
+</partintro>
+</rng:div>
+
+  <define name="forminlines.hook" combine="choice">
+    <choice>
+      <ref name="html.input"/>
+      <ref name="html.button"/>
+      <ref name="html.label"/>
+      <ref name="html.select"/>
+      <ref name="html.textarea"/>
+    </choice>
+  </define>
+
+  <define name="forms.hook" combine="choice">
+    <ref name="html.form"/>
+  </define>
+
+  <define name="events">
+    <optional>
+      <attribute name="onclick"/>
+    </optional>
+    <optional>
+      <attribute name="ondblclick"/>
+    </optional>
+    <optional>
+      <attribute name="onmousedown"/>
+    </optional>
+    <optional>
+      <attribute name="onmouseup"/>
+    </optional>
+    <optional>
+      <attribute name="onmouseover"/>
+    </optional>
+    <optional>
+      <attribute name="onmousemove"/>
+    </optional>
+    <optional>
+      <attribute name="onmouseout"/>
+    </optional>
+    <optional>
+      <attribute name="onkeypress"/>
+    </optional>
+    <optional>
+      <attribute name="onkeydown"/>
+    </optional>
+    <optional>
+      <attribute name="onkeyup"/>
+    </optional>
+  </define>
+
+  <define name="html.form">
+    <element name="html:form">
+      <ref name="html.form.attlist"/>
+      <oneOrMore>
+        <choice>
+          <ref name="component.mix"/>
+          <ref name="html.input"/>
+          <ref name="html.button"/>
+          <ref name="html.label"/>
+          <ref name="html.select"/>
+          <ref name="html.textarea"/>
+        </choice>
+      </oneOrMore>
+    </element>
+  </define>
+
+  <define name="html.form.attlist" combine="interleave">
+    <empty/>
+    <ref name="common.attrib"/>
+    <ref name="events"/>
+    <attribute name="action"/>
+    <optional>
+      <attribute name="method" a:defaultValue="GET">
+        <choice>
+          <value>GET</value>
+          <value>POST</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="onsubmit"/>
+    </optional>
+    <optional>
+      <attribute name="onreset"/>
+    </optional>
+  </define>
+
+  <define name="inputtype">
+    <choice>
+      <value>text</value>
+      <value>password</value>
+      <value>checkbox</value>
+      <value>radio</value>
+      <value>submit</value>
+      <value>reset</value>
+      <value>file</value>
+      <value>hidden</value>
+      <value>image</value>
+      <value>button</value>
+    </choice>
+  </define>
+
+  <define name="html.input">
+    <element name="html:input">
+      <ref name="html.input.attlist"/>
+      <empty/>
+    </element>
+  </define>
+
+  <define name="html.input.attlist" combine="interleave">
+    <empty/>
+    <ref name="common.attrib"/>
+    <ref name="events"/>
+    <optional>
+      <attribute name="type" a:defaultValue="text">
+        <ref name="inputtype"/>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="name"/>
+    </optional>
+    <optional>
+      <attribute name="value"/>
+    </optional>
+    <optional>
+      <attribute name="checked">
+        <choice>
+          <value>checked</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="disabled">
+        <choice>
+          <value>disabled</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="readonly">
+        <choice>
+          <value>readonly</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="size"/>
+    </optional>
+    <optional>
+      <attribute name="maxlength"/>
+    </optional>
+    <optional>
+      <attribute name="src"/>
+    </optional>
+    <optional>
+      <attribute name="alt"/>
+    </optional>
+    <optional>
+      <attribute name="usemap"/>
+    </optional>
+    <optional>
+      <attribute name="tabindex"/>
+    </optional>
+    <optional>
+      <attribute name="accesskey"/>
+    </optional>
+    <optional>
+      <attribute name="onfocus"/>
+    </optional>
+    <optional>
+      <attribute name="onblur"/>
+    </optional>
+    <optional>
+      <attribute name="onselect"/>
+    </optional>
+    <optional>
+      <attribute name="onchange"/>
+    </optional>
+  </define>
+  <define name="html.button">
+    <element name="html:button">
+      <ref name="html.button.attlist"/>
+      <zeroOrMore>
+        <ref name="para.char.mix"/>
+      </zeroOrMore>
+    </element>
+  </define>
+
+  <define name="html.button.attlist" combine="interleave">
+    <empty/>
+    <ref name="common.attrib"/>
+    <ref name="events"/>
+    <optional>
+      <attribute name="name"/>
+    </optional>
+    <optional>
+      <attribute name="value"/>
+    </optional>
+    <optional>
+      <attribute name="type" a:defaultValue="submit">
+        <choice>
+          <value>button</value>
+          <value>submit</value>
+          <value>reset</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="disabled">
+        <choice>
+          <value>disabled</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="tabindex"/>
+    </optional>
+    <optional>
+      <attribute name="accesskey"/>
+    </optional>
+    <optional>
+      <attribute name="onfocus"/>
+    </optional>
+    <optional>
+      <attribute name="onblur"/>
+    </optional>
+  </define>
+
+  <define name="html.label">
+    <element name="html:label">
+      <ref name="html.label.attlist"/>
+      <zeroOrMore>
+        <ref name="para.char.mix"/>
+      </zeroOrMore>
+    </element>
+  </define>
+
+  <define name="html.label.attlist" combine="interleave">
+    <empty/>
+    <ref name="common.attrib"/>
+    <ref name="events"/>
+    <optional>
+      <attribute name="for">
+        <data type="IDREF"/>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="accesskey"/>
+    </optional>
+    <optional>
+      <attribute name="onfocus"/>
+    </optional>
+    <optional>
+      <attribute name="onblur"/>
+    </optional>
+  </define>
+
+  <define name="html.select">
+    <element name="html:select">
+      <ref name="html.select.attlist"/>
+      <oneOrMore>
+        <ref name="html.option"/>
+      </oneOrMore>
+    </element>
+  </define>
+
+  <define name="html.select.attlist" combine="interleave">
+    <empty/>
+    <ref name="common.attrib"/>
+    <ref name="events"/>
+    <optional>
+      <attribute name="name"/>
+    </optional>
+    <optional>
+      <attribute name="size"/>
+    </optional>
+    <optional>
+      <attribute name="multiple">
+        <choice>
+          <value>multiple</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="disabled">
+        <choice>
+          <value>disabled</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="tabindex"/>
+    </optional>
+    <optional>
+      <attribute name="onfocus"/>
+    </optional>
+    <optional>
+      <attribute name="onblur"/>
+    </optional>
+    <optional>
+      <attribute name="onchange"/>
+    </optional>
+  </define>
+
+  <define name="html.option">
+    <element name="html:option">
+      <ref name="html.option.attlist"/>
+      <text/>
+    </element>
+  </define>
+
+  <define name="html.option.attlist" combine="interleave">
+    <empty/>
+    <ref name="common.attrib"/>
+    <ref name="events"/>
+    <optional>
+      <attribute name="selected">
+        <choice>
+          <value>selected</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="disabled">
+        <choice>
+          <value>disabled</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="value"/>
+    </optional>
+  </define>
+
+  <define name="html.textarea">
+    <element name="html:textarea">
+      <ref name="html.textarea.attlist"/>
+      <text/>
+    </element>
+  </define>
+
+  <define name="html.textarea.attlist" combine="interleave">
+    <empty/>
+    <ref name="common.attrib"/>
+    <ref name="events"/>
+    <optional>
+      <attribute name="name"/>
+    </optional>
+    <attribute name="rows"/>
+    <attribute name="cols"/>
+    <optional>
+      <attribute name="disabled">
+        <choice>
+          <value>disabled</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="readonly">
+        <choice>
+          <value>readonly</value>
+        </choice>
+      </attribute>
+    </optional>
+    <optional>
+      <attribute name="tabindex"/>
+    </optional>
+    <optional>
+      <attribute name="accesskey"/>
+    </optional>
+    <optional>
+      <attribute name="onfocus"/>
+    </optional>
+    <optional>
+      <attribute name="onblur"/>
+    </optional>
+    <optional>
+      <attribute name="onselect"/>
+    </optional>
+    <optional>
+      <attribute name="onchange"/>
+    </optional>
+  </define>
+
+<!-- End of dbforms.dtd V1.1 .............................................. -->
+<!-- ...................................................................... -->
+
+</grammar>
diff --git a/schema/relaxng/mathml/dbmathml.rng b/schema/relaxng/mathml/dbmathml.rng
new file mode 100644 (file)
index 0000000..e410e5a
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+         xmlns:rng="http://relaxng.org/ns/structure/1.0"
+         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+         xmlns:s="http://www.ascc.net/xml/schematron"
+         xmlns:doc="http://nwalsh.com/xmlns/documentation"
+         xmlns:db="http://nwalsh.com/xmlns/docbook-grammar-structure"
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+<include href="docbook.rng"/>
+<include href="mathml.rng"/>
+
+</grammar>
diff --git a/schema/relaxng/mathml/mathml.rng b/schema/relaxng/mathml/mathml.rng
new file mode 100644 (file)
index 0000000..311613c
--- /dev/null
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+         xmlns:rng="http://relaxng.org/ns/structure/1.0"
+         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+         xmlns:s="http://www.ascc.net/xml/schematron"
+         xmlns:doc="http://nwalsh.com/xmlns/documentation"
+         xmlns:db="http://nwalsh.com/xmlns/docbook-grammar-structure"
+         xmlns:html="http://www.w3.org/1999/xhtml"
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+<rng:div doc:docbook="yes" xmlns="">
+<partinfo>
+<releaseinfo
+   role="cvs">$Id$</releaseinfo>
+<title>DocBook MathML Module</title>
+<productname>DocBook</productname>
+<productnumber>1.1+</productnumber>
+<releaseinfo role="filename">mathml</releaseinfo>
+<copyright>
+<year>2000</year>
+<year>2001</year>
+<year>2002</year>
+<holder>OASIS Open, Inc.</holder>
+</copyright>
+
+<legalnotice>
+<para>Permission to use, copy, modify and distribute the DocBook schema
+and its accompanying documentation for any purpose and without fee
+is hereby granted in perpetuity, provided that the above copyright
+notice and this paragraph appear in all copies. The copyright
+holders make no representation about the suitability of the schema for
+any purpose. It is provided <quote>as is</quote> without expressed or implied
+warranty.</para>
+
+<para>If you modify the DocBook in any way, except for declaring and
+referencing additional sets of general entities and declaring
+additional notations, label your schema as a variant of DocBook. See
+the maintenance documentation for more information.</para>
+
+<para>Please direct all questions, bug reports, or suggestions for
+changes to the <email>docbook@lists.oasis-open.org</email> mailing list. For more
+information, see <ulink url="http://www.oasis-open.org/docbook/"/>.</para>
+</legalnotice>
+</partinfo>
+
+<partintro>
+<para>This module contains the definitions for the DocBook MathML Module.
+</para>
+
+<para>When using this schema in driver files referring to the DTD
+version of this module, please use an entity declaration that uses the
+public identifier shown below:</para>
+
+<screen>-//OASIS//DTD DocBook MathML Module V1.0//EN</screen>
+
+<para>For example, if your document's top-level element is Book, and
+you are using DocBook directly, use the FPI in the DOCTYPE
+declaration:</para>
+
+<screen><![CDATA[<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.0//EN"
+               "http://www.oasis-open.org/docbook/xml/mathml/1.0/dbmathml.dtd"
+               [...]>]]></screen>
+
+<para>Or, if you have a higher-level driver file that customizes DocBook,
+use the FPI in the parameter entity declaration:</para>
+
+<screen><![CDATA[<!ENTITY % DocBookMathMLDTD PUBLIC "-//OASIS//DTD DocBook MathML Module V1.0//EN"
+           "http://www.oasis-open.org/docbook/xml/mathml/1.0/dbmathml.dtd">
+%DocBookMathMLDTD;]]></screen>
+
+<para>See the documentation for detailed information on the parameter
+entity and module scheme used in DocBook, customizing DocBook and
+planning for interchange, and changes made since the last release
+of DocBook.</para>
+</partintro>
+</rng:div>
+
+  <!-- In order to use this grammar, you must have a third-part MathML grammar,
+       such as the one from http://www3.sppd.ne.jp/lena/relax-ng/mml2.htm -->
+
+  <include href="/share/doctypes/w3c/mathml2/relaxng/mathml2.rng"/>
+
+  <define name="mathml.hook" combine="choice">
+    <ref name="mml.math.qname"/>
+  </define>
+
+<!-- End of dbmathml.dtd V1.0 ............................................. -->
+<!-- ...................................................................... -->
+
+</grammar>
diff --git a/schema/relaxng/svg/dbsvg.rng b/schema/relaxng/svg/dbsvg.rng
new file mode 100644 (file)
index 0000000..0bb48ae
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+         xmlns:rng="http://relaxng.org/ns/structure/1.0"
+         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+         xmlns:s="http://www.ascc.net/xml/schematron"
+         xmlns:doc="http://nwalsh.com/xmlns/documentation"
+         xmlns:db="http://nwalsh.com/xmlns/docbook-grammar-structure"
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+<include href="docbook.rng"/>
+<include href="svg.rng"/>
+
+</grammar>
diff --git a/schema/relaxng/svg/svg.rng b/schema/relaxng/svg/svg.rng
new file mode 100644 (file)
index 0000000..e5af46f
--- /dev/null
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+         xmlns:rng="http://relaxng.org/ns/structure/1.0"
+         xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+         xmlns:s="http://www.ascc.net/xml/schematron"
+         xmlns:doc="http://nwalsh.com/xmlns/documentation"
+         xmlns:db="http://nwalsh.com/xmlns/docbook-grammar-structure"
+         xmlns:html="http://www.w3.org/1999/xhtml"
+         datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+<rng:div doc:docbook="yes" xmlns="">
+<partinfo>
+<releaseinfo
+   role="cvs">$Id$</releaseinfo>
+<title>DocBook SVG Module</title>
+<productname>DocBook</productname>
+<productnumber>1.0CR1+</productnumber>
+<releaseinfo role="filename">svg</releaseinfo>
+<copyright>
+<year>2002</year>
+<holder>OASIS Open, Inc.</holder>
+</copyright>
+
+<legalnotice>
+<para>Permission to use, copy, modify and distribute the DocBook schema
+and its accompanying documentation for any purpose and without fee
+is hereby granted in perpetuity, provided that the above copyright
+notice and this paragraph appear in all copies. The copyright
+holders make no representation about the suitability of the schema for
+any purpose. It is provided <quote>as is</quote> without expressed or implied
+warranty.</para>
+
+<para>If you modify the DocBook in any way, except for declaring and
+referencing additional sets of general entities and declaring
+additional notations, label your schema as a variant of DocBook. See
+the maintenance documentation for more information.</para>
+
+<para>Please direct all questions, bug reports, or suggestions for
+changes to the <email>docbook@lists.oasis-open.org</email> mailing list. For more
+information, see <ulink url="http://www.oasis-open.org/docbook/"/>.</para>
+</legalnotice>
+</partinfo>
+
+<partintro>
+<para>This module contains the definitions for the DocBook SVG Module.
+</para>
+
+<para>When using this schema in driver files referring to the DTD
+version of this module, please use an entity declaration that uses the
+public identifier shown below:</para>
+
+<screen>-//OASIS//DTD DocBook SVG Module V1.0CR1//EN</screen>
+
+<para>For example, if your document's top-level element is Book, and
+you are using DocBook directly, use the FPI in the DOCTYPE
+declaration:</para>
+
+<screen><![CDATA[<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook SVG Module V1.0CR1//EN"
+                    "http://www.oasis-open.org/docbook/xml/svg/1.0CR1/dbsvg.dtd"
+                    [...]>]]></screen>
+
+<para>Or, if you have a higher-level driver file that customizes DocBook,
+use the FPI in the parameter entity declaration:</para>
+
+<screen><![CDATA[<!ENTITY % DocBookSVGDTD PUBLIC "-//OASIS//DTD DocBook SVG Module V1.0CR1//EN"
+                "http://www.oasis-open.org/docbook/xml/svg/1.0CR1/dbsvg.dtd">
+     %DocBookSVGDTD;]]></screen>
+
+<para>See the documentation for detailed information on the parameter
+entity and module scheme used in DocBook, customizing DocBook and
+planning for interchange, and changes made since the last release
+of DocBook.</para>
+</partintro>
+</rng:div>
+
+  <!-- In order to use this grammar, you must have a third-part MathML grammar,
+       such as the one from http://www3.sppd.ne.jp/lena/relax-ng/svg11.htm -->
+
+  <include href="/share/doctypes/w3c/svg11/relaxng/svg11.rng"/>
+
+  <define name="svg.hook" combine="choice">
+    <ref name="SVG.svg"/>
+  </define>
+
+<!-- End of dbmathml.dtd V1.0 ............................................. -->
+<!-- ...................................................................... -->
+
+</grammar>