DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14242>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14242

Xalan-J 2.4.0 XSLT processor occasionally inserts a superfluous blank

           Summary: Xalan-J 2.4.0 XSLT processor occasionally inserts a
                    superfluous blank
           Product: XalanJ2
           Version: 2.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Apparently, there's a bug in version 2.4.0 of the Xalan-J XSLT processor. I 
will append an archive containing my test input file xalantest.xml and XSL file 
xalantest.xsl as well as the output files xalantest_<version>.out.

With version 2.1.0, everything is fine. The 2.4.0 output has an additional 
blank in line 25 and in every 32nd following line.

There's is also a quite similar bug in the Xalan version which is contained in 
JSDK 1.4.0: As you can see in my output file xalantest_jdk140builtin.out, this 
version occasionally _removes_ a blank from the input (line 1821 and every 
4551st following; or search for "xxxxxx").

I tried to make the XML and XSL input files as simple as possible. The 
xsl:strip-space element as well as the normalize-space() function call seem to 
be vital to reproduce the bugs.

My java calls were:

C:\jdk1.3.0\bin\java.exe -classpath xalan-j_2_1_0\bin\xalan.jar 
org.apache.xalan.xslt.Process -IN xalantest.xml -XSL xalantest.xsl -OUT 
xalantest_210.out

C:\jdk1.3.0\bin\java.exe -classpath xalan-j_2_4_0\bin\xalan.jar 
org.apache.xalan.xslt.Process -IN xalantest.xml -XSL xalantest.xsl -OUT 
xalantest_240.out

C:\jdk1.4.0\bin\java.exe org.apache.xalan.xslt.Process -IN xalantest.xml -XSL 
xalantest.xsl -OUT xalantest_jdk140builtin.out

Regards
Ralf

Reply via email to