You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2006/03/06 22:51:28 UTC

[jira] Commented: (XALANJ-2271) XML 1.1 Serialization, char in attribute value not escaped

    [ http://issues.apache.org/jira/browse/XALANJ-2271?page=comments#action_12369049 ] 

Henry Zongaro commented on XALANJ-2271:
---------------------------------------

I have reviewed Brian's patch3[1], and I believe that it correctly resolves the problem.

[1] http://issues.apache.org/jira/secure/attachment/12323688/character.expansion.patch3.txt

> XML 1.1 Serialization, char in  attribute value not escaped
> -----------------------------------------------------------
>
>          Key: XALANJ-2271
>          URL: http://issues.apache.org/jira/browse/XALANJ-2271
>      Project: XalanJ2
>         Type: Bug
>     Reporter: Brian Minchau
>     Assignee: Brian Minchau
>  Attachments: character.expansion.patch1.txt, character.expansion.patch3.txt
>
> This issue was found by Henry Zongaro.
> If you try the following stylesheet, you'll see that the character x8C, which is not permitted in literal form in XML 1.1, is escaped when it appears in an element's character content, but it's not escaped when it is part of an attribute value.  
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>   <xsl:output method="xml" version="1.1"/>
>   <xsl:template match="/">
>     <out att="&#x8c;">&#x8c;</out>
>   </xsl:template>
> </xsl:stylesheet>
> When the serialized XML produced by this stylesheet is parsed by Xerces (depending perhaps on the version of Xerces) it goes into an infinite loop when it attempts to parse an attribute that contains an invalid character.  

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org