[ http://issues.apache.org/jira/browse/XALANJ-2095?page=all ]

Brian Minchau resolved XALANJ-2095.
-----------------------------------

    Fix Version/s: 2.7
                       (was: Latest Development Code)
       Resolution: Fixed

> Tab characters in text nodes are serialized to 	 but shouldn't be
> --------------------------------------------------------------------
>
>                 Key: XALANJ-2095
>                 URL: http://issues.apache.org/jira/browse/XALANJ-2095
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: Serialization
>            Reporter: Brian Minchau
>         Assigned To: Brian Minchau
>            Priority: Minor
>             Fix For: 2.7
>
>         Attachments: CharInfo.patch1.txt
>
>
> The serializer has code in CharInfo to check if characters in attribute 
> values, or int text nodes need special processing.
> The fact that a tab is special in an XML attribute value and needed to be 
> output as 	 leaked into the processing of XML text nodes.
> Consider the following stylesheet, with tab characters where indicated
> in the attribute value, and text node value.
> ---------------------------------------------------------
> <?xml version="1.0"?>
> <xsl:stylesheet 
>   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";  
>   version="1.0">
> <xsl:output method="xml" indent="yes" version="1.1" />
> <xsl:template match="/">
> <out>
>   <xsl:attribute name="attr1">tab:    :</xsl:attribute>
>   <xsl:text>tab here: :</xsl:text>
> </out>
> </xsl:template>
> </xsl:stylesheet>
> ----------------------------------------------------------
> The output produced is:
> <?xml version="1.1" encoding="UTF-8"?>
> <out attr1="tab:&#9;:">tab here:&#9;:</out>
> But should have produced:
> <?xml version="1.1" encoding="UTF-8"?>
> <out attr1="tab:&#9;:">tab here:      :</out>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to