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=13496>. 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=13496 Symbol NBSP from source XML is being replaced with wrong external reference in output during transformation Summary: Symbol NBSP from source XML is being replaced with wrong external reference in output during transformation Product: XalanJ2 Version: 2.4Dx Platform: All OS/Version: Windows NT/2K Status: NEW Severity: Major Priority: Other Component: org.apache.xalan.xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] If the source XML file contains a nonbreaking space symbol (\u00A0), then after <xsl:value-of select="..."/> operation this character is being replaced with reference: " ". So the destination XML file can't be parsed due to parsing exception "Reference to undefined entity " "" This occur only if a result of "value-of" operation created a text of element in the result XML. Example: ----------------- Source XML -------------------- <?xml version="1.0" encoding="windows-1252" ?> <FFOBJECTS> <art test1="Nonbreaking space here:�" /> </FFOBJECTS> ----------------- Transformation template-------- <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:strip-space elements="FFOBJECTS ART"/> <xsl:output method="xml" indent="yes" encoding="windows-1252" /> <xsl:template match="FFOBJECTS"> <out_test> <xsl:apply-templates/> </out_test> </xsl:template> <xsl:template match="art"> <art><xsl:value-of select="@test1"/></art> </xsl:template> <xsl:template match="text()|@*"/> </xsl:stylesheet> --------------Result XML --------------------- <?xml version="1.0" encoding="windows-1252"?> <out_test> <art>Nonbreaking space here: </art> </out_test> ---------------------------------------------- The same result was in version 2.3, but a usual transformation have not such bug.
