mirror of
https://github.com/webodf/WebODF.git
synced 2026-11-30 16:47:58 +01:00
Add yet another test for the interleave element.
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<?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: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>
|
||||
<element name="office:automatic-styles">
|
||||
<ref name="styles"/>
|
||||
</element>
|
||||
<element name="office:body">
|
||||
<element name="office:text">
|
||||
<empty/>
|
||||
</element>
|
||||
</element>
|
||||
</element>
|
||||
</start>
|
||||
<define name="styles">
|
||||
<interleave>
|
||||
<choice>
|
||||
<empty/>
|
||||
<oneOrMore>
|
||||
<element name="number:boolean-style">
|
||||
<attribute name="style:name">
|
||||
<data type="NCName"/>
|
||||
</attribute>
|
||||
</element>
|
||||
</oneOrMore>
|
||||
</choice>
|
||||
<element name="number:text-style">
|
||||
<attribute name="style:name">
|
||||
<data type="NCName"/>
|
||||
</attribute>
|
||||
</element>
|
||||
</interleave>
|
||||
</define>
|
||||
</grammar>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user