MHonArc v2.5.0b2 -->
office message
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]
Subject: Re: [office] Groups - Draft 29 with change tracking information (office-spec-1.0-draft29-ct.sxw) modified
Having cleaned that last error (the spans)
the following style sheet will extract the schema, as a valid RNG schema.
I've also used an identity transform to clean it up and indent it for
readability.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
version="1.0">
<d:doc xmlns:d="rnib.org.uk/tbs#">
<revhistory>
<purpose><para>This stylesheet works with file content.xml to
produce ODFschema.rng</para></purpose>
<revision>
<revnumber>1.0</revnumber>
<date>2006-05-27T14:30:10Z</date>
<authorinitials>DaveP</authorinitials>
<revdescription>
<para></para>
</revdescription>
<revremark></revremark>
</revision>
</revhistory>
</d:doc>
<xsl:output method="text" indent="yes" encoding="utf-8"/>
<xsl:key name="schemaStyles"
match="style:style[@style:parent-style-name='RelaxNG']"
use="@style:name"/>
<xsl:template match="/">
<xsl:apply-templates
select="//text:p[@text:style-name='RelaxNG' or
@text:style-name='P36' or
@text:style-name='P74' or
@text:style-name='P75'or
@text:style-name='P134'or
@text:style-name='P123']"/>
</xsl:template>
<xsl:template match="text:p[@text:style-name='RelaxNG' or
@text:style-name='P36' or
@text:style-name='P74' or
@text:style-name='P75' or
@text:style-name='P134'or
@text:style-name='P123']">
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="*"/>
</xsl:stylesheet>
The schema is half a meg, so I won't post it to the list.
Let me know if you want it.
regards DaveP
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
| [List Home]