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=4546>.
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=4546

normalize-space does not properly handle text data

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |



------- Additional Comments From [EMAIL PROTECTED]  2002-04-22 09:58 
-------
The error reocured in our application using the current CVS (04/22/2002).
Here is a small example:

Source-File:
------------
<page>
<data> 1 2 3 4 5 6 7 8 9 0  1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 </data>
</page>

Stylesheet:
-----------
<?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

        <xsl:template match="/page">
                <xsl:apply-templates/>
        </xsl:template>

        <xsl:template match="data">
                data: <xsl:value-of select="normalize-space(.)"/>
        </xsl:template>

</xsl:stylesheet>

Output:
-------
<?xml version="1.0" encoding="UTF-8"?>

data: 1 2 3 4 5 6 7 8 9 0 1 2 3 4 56 7 8 9 0 1 2 3 4 5 6 7 8 9 0

As you can see the space between "5" and "6" is removed.

I'm running this with current CVS under SunOS 5.8, JDK1.3.1.

Could you please check if you can reproduce that behaviour?

Reply via email to