Hi Timothy,

I could not reproduce your problem with a recent build (m161).

Timothy Kellogg wrote:
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.

You might find further information in the archive of this newsgroup.
Take a look at my post from the "21.02.2005 21:40", "7 hints for writing XSL transformation in OOo".

Regards,
Svante



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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to