You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Dmitriy Gorbenko (JIRA)" <xa...@xml.apache.org> on 2007/11/27 14:25:43 UTC
[jira] Created: (XALANC-665) Russian language in attribute
variables become coded into HTML escape sequence
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
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="это логотип"></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
[jira] Assigned: (XALANC-665) Russian language in attribute
variables become coded into HTML escape sequence
Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANC-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Bertoni reassigned XALANC-665:
------------------------------------
Assignee: David Bertoni
> 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
> Assignee: David Bertoni
> 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="это логотип"></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
[jira] Commented: (XALANC-665) Russian language in attribute
variables become coded into HTML escape sequence
Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
[ 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="это логотип"></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
[jira] Commented: (XALANC-665) Russian language in attribute
variables become coded into HTML escape sequence
Posted by "Dmitriy Gorbenko (JIRA)" <xa...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XALANC-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12546213 ]
Dmitriy Gorbenko commented on XALANC-665:
-----------------------------------------
thank, I would be excellent - NCR prevents your SEO campaign.
> 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="это логотип"></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