OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

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

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";

<d:doc xmlns:d="rnib.org.uk/tbs#">
   <purpose><para>This stylesheet works with file content.xml to
produce ODFschema.rng</para></purpose>

  <xsl:output method="text" indent="yes" encoding="utf-8"/>

  <xsl:key name="schemaStyles"

  <xsl:template match="/">
select="//text:p[@text:style-name='RelaxNG' or
        @text:style-name='P36' or
        @text:style-name='P74' or


   <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
    <xsl:value-of select="."/>

  <xsl:template match="*"/>


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]