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

 


Help: OASIS Mailing Lists Help | MarkMail Help

office-accessibility message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [office-accessibility] odf to daisy transform


On 01/06/06, Dave Pawson <dave.pawson@gmail.com> wrote:


> > (saxon654.jar,
> Saxon xslt engine.
http://saxon.sourceforge.net/
Saxon 6.5.5
Use this or Xalan.

Xalan, use Xerces-Java 2.7.1.
http://xml.apache.org/xalan-j/downloads.html
includes xercesImple and xml-apis.jar



>  &  /sgml/xsl/clean.xsl
> My bad.
>   Its the identity transform. Makes content.xml readable.
> Only needed for people. Not for machines.
Either remove this section from regen

======
echo Convert and tidy up odf output files

echo Content.xml

java  -mx120m -ms120m -cp
.;\myjava\saxon654.jar;\myjava\xercesImpl.jar
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration
com.icl.saxon.StyleSheet -x org.apache.xerces.parsers.SAXParser -y
org.apache.xerces.parsers.SAXParser   -w1 -l -o op.xml   content.xml
/sgml/xsl/clean.xsl
If  ErrorLevel 1 Goto procError
del content.xml
ren op.xml content.xml
======
or
save this as clean.xsl
====
<?xml version="1.0" encoding="utf-8"?>
<!-- The Identity Transformation -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  <xsl:import href="identity.xsl"/>
  <xsl:strip-space elements="*"/>
  <xsl:output method="xml" indent="yes" encoding="utf-8"/>

<xsl:template match="@xml:space"/>

<xsl:template match="*">
  <xsl:copy>
  <xsl:apply-templates select="@*" />
  <xsl:apply-templates />
</xsl:copy>
</xsl:template>


<xsl:template match="@*">
  <xsl:copy-of select="." />
</xsl:template>
</xsl:stylesheet>
====




 What assumptions can I make about an installation?

Who should I be asking?

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]