123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- OASIS OpenDocument v1.0
- Relax-NG Schema
-
- ** It's only a very small sub-set of the schema, meant for debugging text-notes-configuration element **
- -->
- <grammar
- xmlns="http://relaxng.org/ns/structure/1.0"
- xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
- datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
- xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
- xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
- xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0"
- xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
- xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
- xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
- xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
- xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
- xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
- xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
- xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
- xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
- xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
- xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0"
- xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:xlink="http://www.w3.org/1999/xlink"
- xmlns:math="http://www.w3.org/1998/Math/MathML"
- xmlns:xforms="http://www.w3.org/2002/xforms"
- xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
- xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
- xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"
- >
- <define name="office-process-content">
- <optional>
- <attribute name="office:process-content" a:defaultValue="true">
- <ref name="boolean"/>
- </attribute>
- </optional>
- </define>
- <start>
- <choice>
- <ref name="office-document-styles"/>
- </choice>
- </start>
- <define name="office-document-styles">
- <element name="office:document-styles">
- <ref name="office-document-common-attrs"/>
- <ref name="office-styles"/>
- </element>
- </define>
- <define name="office-document-common-attrs" combine="interleave">
- <optional>
- <attribute name="office:version">
- <ref name="string"/>
- </attribute>
- </optional>
- </define>
- <define name="office-styles">
- <optional>
- <element name="office:styles">
- <interleave>
- <zeroOrMore>
- <ref name="text-notes-configuration"/>
- </zeroOrMore>
- </interleave>
- </element>
- </optional>
- </define>
- <define name="text-notes-configuration">
- <element name="text:notes-configuration">
- <ref name="text-notes-configuration-content"/>
- </element>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <ref name="text-note-class"/>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <optional>
- <attribute name="text:citation-style-name">
- <ref name="styleNameRef"/>
- </attribute>
- </optional>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <optional>
- <attribute name="text:citation-body-style-name">
- <ref name="styleNameRef"/>
- </attribute>
- </optional>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <optional>
- <attribute name="text:default-style-name">
- <ref name="styleNameRef"/>
- </attribute>
- </optional>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <optional>
- <attribute name="text:master-page-name">
- <ref name="styleNameRef"/>
- </attribute>
- </optional>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <optional>
- <attribute name="text:start-value">
- <ref name="nonNegativeInteger"/>
- </attribute>
- </optional>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <ref name="common-num-format-prefix-suffix-attlist"/>
- <optional>
- <ref name="common-num-format-attlist"/>
- </optional>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <optional>
- <attribute name="text:start-numbering-at">
- <choice>
- <value>document</value>
- <value>chapter</value>
- <value>page</value>
- </choice>
- </attribute>
- </optional>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <optional>
- <attribute name="text:footnotes-position">
- <choice>
- <value>text</value>
- <value>page</value>
- <value>section</value>
- <value>document</value>
- </choice>
- </attribute>
- </optional>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <optional>
- <element name="text:note-continuation-notice-forward">
- <text/>
- </element>
- </optional>
- </define>
- <define name="text-notes-configuration-content" combine="interleave">
- <optional>
- <element name="text:note-continuation-notice-backward">
- <text/>
- </element>
- </optional>
- </define>
- <define name="common-num-format-prefix-suffix-attlist" combine="interleave">
- <optional>
- <attribute name="style:num-prefix">
- <ref name="string"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="style:num-suffix">
- <ref name="string"/>
- </attribute>
- </optional>
- </define>
- <define name="common-num-format-attlist" combine="interleave">
- <choice>
- <attribute name="style:num-format">
- <choice>
- <value>1</value>
- <value>i</value>
- <value>I</value>
- <ref name="string"/>
- <empty/>
- </choice>
- </attribute>
- <group>
- <attribute name="style:num-format">
- <choice>
- <value>a</value>
- <value>A</value>
- </choice>
- </attribute>
- <ref name="style-num-letter-sync-attlist"/>
- </group>
- <empty/>
- </choice>
- </define>
- <define name="style-num-letter-sync-attlist" combine="interleave">
- <optional>
- <attribute name="style:num-letter-sync">
- <ref name="boolean"/>
- </attribute>
- </optional>
- </define>
- <define name="text-note-class">
- <attribute name="text:note-class">
- <choice>
- <value>footnote</value>
- <value>endnote</value>
- </choice>
- </attribute>
- </define>
- <define name="styleNameRef">
- <choice>
- <data type="NCName"/>
- <empty/>
- </choice>
- </define>
- <define name="nonNegativeInteger">
- <data type="nonNegativeInteger"/>
- </define>
- <define name="boolean">
- <choice>
- <value>true</value>
- <value>false</value>
- </choice>
- </define>
- <define name="string">
- <data type="string"/>
- </define>
- </grammar>
|