To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=50536
                  Issue #:|50536
                  Summary:|XSLT export transformation prodeces many unexpected
                          |withe spaces and new lines
                Component:|xml
                  Version:|1.0.3
                 Platform:|PC
                      URL:|
               OS/Version:|Linux
                   Status:|UNCONFIRMED
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|external filters
              Assigned to:|jsi
              Reported by:|gattocarlo





------- Additional comments from [EMAIL PROTECTED] Thu Jun  9 06:07:34 -0700 
2005 -------
I'm developing a xslt stylesheet for exporting OpenOffice.org Writer's files to
a wiki text formatting.
Everything was working fine till version 1.1.2, but starting from OpenOffice.org
version 1.1.3 for the Linux OS, the export transformation produces many white
spaces and new lines that should not be there.
The stylesheet correctly works with xsltproc, saxon, sablot and xalan.

Way to reproduce.
1. Create a very simple xslt stylesheet, such as:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:office="http://openoffice.org/2000/office";>
        <xsl:output method="text" />
        <xsl:strip-space elements="*"/>
        <!-- Catch the non-content document sections -->
        <xsl:template match="/XML"/>
        <xsl:template match="/office:document/office:meta"/>
        <xsl:template match="/office:document/office:settings"/>
        <xsl:template match="/office:document/office:document-styles"/>
        <xsl:template match="/office:document/office:font-decls"/>
        <xsl:template match="/office:document/office:styles"/>
        <xsl:template match="/office:document/office:master-styles"/>
</xsl:stylesheet>

2. install the stylesheet as an XML export filter in Tools -> XML Filter 
Settings
3. Create a new Writer file and type a few words
4. Export with the installed filter.

Expected result:
you should get the text with the words you typed;

Actual result: 
you get many unexpected new lines and white spaces.

5. Extract content.xml from the file archive and try the xlst tranformation with
some other parsers.

This problem cannot reproduced in OpenOffice.org 1.1.2.
This problem can be reproduced in OpenOffice.org 1.1.3 and 1.1.4.

---------------------------------------------------------------------
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: [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