I wrote an xslt filter for OpenOffice.org 2.0.2. When I try to open a
document with it, OO.o becomes non-responsive and crashes. When I try
exporting it gives a "Write Error. The file could not be written", very
uninformative. If anything, can someone tell me at least how to get
more information about these errors? Thanks in advance.
Here is my import xslt:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:office="http://openoffice.org/2000/office"
xmlns:text="http://openoffice.org/2000/text">
<xsl:template match="/">
<office:document office:class="text"
xmlns:office="http://openoffice.org/2000/office"
xmlns:text="http://openoffice.org/2000/text" >
<office:body>
<xsl:apply-templates />
</office:body>
</office:document>
</xsl:template>
<xsl:template match="test">
<text:p><xsl:value-of select="."/></text:p>
</xsl:template>
</xsl:stylesheet>
And here is my export xslt:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:office="http://openoffice.org/2000/office"
xmlns:text="http://openoffice.org/2000/text">
<xsl:template match="/">
<test><xsl:apply-templates /></test>
</xsl:template>
<xsl:template match="/office:document/office:body/text:p">
<xsl:value-of select="." />
</xsl:template>
</xsl:stylesheet>
for a simple xml document like:
<?xml version="1.0"?>
<test>some text</test>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]