You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/31 18:50:51 UTC

DO NOT REPLY [Bug 4546] New: - normalize-space does not properly handle text data

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

           Summary: normalize-space does not properly handle text data
           Product: XalanJ2
           Version: 2.2.x
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: org.apache.xpath
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: john.stewart@veridian.com


Using the sql extension and 2.2.D11:

<xsl:variable name="original-data" select="col[@column-label='original_data']"/>
<corrected-data>
   <xsl:value-of select="normalize-space($original-data)"/>
</corrected-data>

The output is:

<corrected-data>#element</corrected-data>


If I wrap a dummy-node around the data in my variable it works, ie.

<xsl:variable name="original-data">
  <this-is-crap>
    <xsl:value-of select="col[@column-label='original_data']"/>
  </this-is-crap>
</xsl:variable>