You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "David Bertoni (JIRA)" <xa...@xml.apache.org> on 2007/11/27 21:50:43 UTC

[jira] Commented: (XALANC-665) Russian language in attribute variables become coded into HTML escape sequence

    [ https://issues.apache.org/jira/browse/XALANC-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546000 ] 

David Bertoni commented on XALANC-665:
--------------------------------------

It looks like we specifically used numeric character references in attribute values for compatibility purposes.  I tried Saxon, and it's doing the same thing.  However, Xalan-J no longer uses NCRs -- it just uses the actual characters.

I think I can make this change, as long as no one thinks I'm going to break any browsers.

> Russian language in attribute variables become coded into HTML escape sequence
> ------------------------------------------------------------------------------
>
>                 Key: XALANC-665
>                 URL: https://issues.apache.org/jira/browse/XALANC-665
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: 1.10
>         Environment: GNU/Linux, x86_64, CentOS 4.3
> ./Xalan --version
> Xalan version 1.10.0.
> Xerces version 2.7.0.
>            Reporter: Dmitriy Gorbenko
>         Attachments: am.xml, test.xsl
>
>
> In my xml I have a russian characters tag attribute values (in example below this is "alt" attribute). And after xslt transformation those characters become coded into html escape sequence.
> bazil@f3t $ cat am.xml
> <?xml version="1.0" encoding="UTF-8"?>
> <page>
> <img src="http://avtomagazine.ua/logo.jpg" alt="это логотип" />
> </page>
> bazil@f3t $
> bazil@f3t $ cat test.xsl
> <?xml version="1.0" encoding="utf-8"?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="/">
>   <html>
>     <body>
>   <xsl:copy-of select="page/img"/>
>     </body>
>   </html>
> </xsl:template>
> </xsl:stylesheet>
> bazil@f3t $
> bazil@f3t $ ./Xalan am.xml test.xsl
> <html>
> <body>
> <img src="http://avtomagazine.ua/logo.jpg" alt="&#1101;&#1090;&#1086; &#1083;&#1086;&#1075;&#1086;&#1090;&#1080;&#1087;"></body>
> </html>
> bazil@f3t $ 
> I think it's a bug - to code non-english characters, (of course, if there are no any RFC that require it).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org