To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=97170





------- Additional comments from gkhol...@openoffice.org Fri Dec 12 02:17:21 
+0000 2008 -------
Sorry, I forgot to mention the user perspective of this error.

After installing the short stylesheet on top of the long stylesheet and getting 
a successful report from the user, an export attempt returns the following 
error box:

  Error saving the document Untitled 1: 
  Write Error. 
  The file could not be written.

This is what the log file reports:

t:\>type t:\oo3-xslt-log.txt
The transformation's parameters as 'name = value' pairs:

StylesheetURL = file:///C:/Documents%20and%20Settings/G.%20Ken%
20Holman/Application%20Data/OpenOffice.org/3/user/xslt/Ken%20Test%20Length/ken-
test.xsl
TargetURL = file:///t:/j2.txt
DoctypeSystem =
TargetBaseURL = file:///t:/


Starting transformation...
TransformerFactory is 'net.sf.saxon.TransformerFactoryImpl'
Error on line 18 column 1 of file:///C:/Documents%20and%20Settings/G.%20Ken%
20Holman/Application%20Data/OpenOffice.org/3/user/xslt/Ken%20Test%20Length/ken-
test.xsl:
  SXXP0003: Error reported by XML parser: Content is not allowed in trailing 
section.
javax.xml.transform.TransformerConfigurationException: Failed to compile 
stylesheet. 1 error detected.
javax.xml.transform.TransformerConfigurationException: Failed to compile 
stylesheet. 1 error detected.
        at net.sf.saxon.PreparedStylesheet.prepare(PreparedStylesheet.java:176)
        at net.sf.saxon.TransformerFactoryImpl.newTemplates
(TransformerFactoryImpl.java:139)
        at net.sf.saxon.TransformerFactoryImpl.newTransformer
(TransformerFactoryImpl.java:91)
        at XSLTransformer$1.run(XSLTransformer.java:296)

t:\>

In the case of these two filters, just start any empty spreadsheet and export 
to a text file.

Here are the two stylesheets:

Z:\data\kendata\dev\OOo\bugs>type ken-test-short.xsl
<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:xsd="http://www.w3.org/2001/XMLSchema";
                xmlns:c="urn:X-Crane"
                exclude-result-prefixes="xsd c"
                version="2.0">

<xsl:output method="text"/>

<xsl:template match="/">
  This is a successful run of the short stylesheet: <xsl:value-of
  select="format-dateTime(adjust-dateTime-to-timezone(
            current-dateTime(),xsd:dayTimeDuration('PT0H')),
            '[Y0001]-[M01]-[D01] [H01]:[m01]z')"/>
</xsl:template>

</xsl:stylesheet>

Z:\data\kendata\dev\OOo\bugs>type ken-test-long.xsl
<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:xsd="http://www.w3.org/2001/XMLSchema";
                xmlns:c="urn:X-Crane"
                exclude-result-prefixes="xsd c"
                version="2.0">

<xsl:output method="text"/>

<xsl:variable name="other-stuff"
              select="'just making the stylesheet longer'"/>

<xsl:template match="/">
  This is a successful run of the long stylesheet: <xsl:value-of
  select="format-dateTime(adjust-dateTime-to-timezone(
            current-dateTime(),xsd:dayTimeDuration('PT0H')),
            '[Y0001]-[M01]-[D01] [H01]:[m01]z')"/>
</xsl:template>

</xsl:stylesheet>

Z:\data\kendata\dev\OOo\bugs>


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@xml.openoffice.org
For additional commands, e-mail: issues-h...@xml.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to