On 6/28/2010 7:21 AM, ---GS--- wrote:

Hi,

i have a problem with xalan converting some of my Unicode-Signs.
My imput file contains elements with an attribute like this:
uid="􀀁"
My HTML output file should contain these unicode-ids somewhere within the
text (for example:<body>&#x100001;</body>), but XALAN replaces it with 2
characters instead (in this example:<body>&#56256;&#56321;</body>)
If I use the Mozilla Firefox to transform my input file this error doesn't
occur.

Is there any way to fix this in XALAN? I hope you can help me.


Here is my test example:
   test.xml:
     <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
     <test uid="&#x100001;"></test>

   test.xsl:
     <?xml version="1.0" encoding="UTF-8"?>
     <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
       <xsl:strip-space elements="*"/>
       <xsl:template match="min">
         <html><body><xsl:value-of select="@uid"/></body></html>
       </xsl:template>
     </xsl:stylesheet>

   output.html is:
     <html><body>&#56256;&#56321;</body></html>
   instead of:
     <html><body>&#x100001;</body></html>
I'm not seeing this result, although there certainly is a bug in the current version of the source code. Can you be more specific about the version and platform you're using?

Can you please create a Jira issue and attach your test files to it? I have a potential fix, but it will need more testing.

Thanks!

Dave

Reply via email to