Yet another test for interleave.

This commit is contained in:
Jos van den Oever
2011-03-31 08:48:42 +02:00
parent bcd1b2fe7e
commit fa1f5dbf13
2 changed files with 65 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<grammar
xmlns="http://relaxng.org/ns/structure/1.0"
datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
>
<start>
<element name="office:document">
<attribute name="office:version">
<value>1.2</value>
</attribute>
<attribute name="office:mimetype">
<data type="string"/>
</attribute>
<ref name="office-automatic-styles"/>
<element name="office:body">
<element name="office:text">
<empty/>
</element>
</element>
</element>
</start>
<define name="office-automatic-styles">
<element name="office:automatic-styles">
<interleave>
<oneOrMore>
<choice>
<empty/>
<element name="number:boolean-style">
<attribute name="style:name">
<data type="NCName"/>
</attribute>
</element>
</choice>
</oneOrMore>
<element name="number:text-style">
<attribute name="style:name">
<data type="NCName"/>
</attribute>
</element>
</interleave>
</element>
</define>
</grammar>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
office:version="1.2"
office:mimetype="application/vnd.oasis.opendocument.text">
<office:automatic-styles>
<number:boolean-style style:name="N99">
</number:boolean-style>
<number:text-style style:name="N100">
</number:text-style>
<number:boolean-style style:name="N5099">
</number:boolean-style>
</office:automatic-styles>
<office:body>
<office:text/>
</office:body>
</office:document>