Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-665

Russian language in attribute variables become coded into HTML escape sequence

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10
    • None
    • XalanC
    • None
    • GNU/Linux, x86_64, CentOS 4.3
      ./Xalan --version
      Xalan version 1.10.0.
      Xerces version 2.7.0.

    Description

      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).

      Attachments

        1. am.xml
          0.1 kB
          Dmitriy Gorbenko
        2. test.xsl
          0.3 kB
          Dmitriy Gorbenko

        Activity

          People

            dbertoni David N Bertoni
            bazil Dmitriy Gorbenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: