xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven J. Hathaway (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (XALANC-481) XalanC doesn't handle correctly the Unicode surrogate pairs
Date Thu, 20 Dec 2012 18:09:12 GMT

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

Steven J. Hathaway commented on XALANC-481:
-------------------------------------------

The length value in Microsoft and other 16-bit UTF-16 encoding products
reports length in UTF-16 (16-bit) elements, not the length in unicode characters.
Xerces-C emits a count of (16-bit) XMLCh units.
                
> XalanC doesn't handle correctly the Unicode surrogate pairs
> -----------------------------------------------------------
>
>                 Key: XALANC-481
>                 URL: https://issues.apache.org/jira/browse/XALANC-481
>             Project: XalanC
>          Issue Type: Bug
>          Components: XalanC
>    Affects Versions: CurrentCVS
>         Environment: all
>            Reporter: Dmitry Hayes
>            Priority: Minor
>             Fix For: CurrentCVS
>
>
> For the stylesheet :
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>   <xsl:variable name="single_surrogate_pair">&#x10001;</xsl:variable>
            
>   <xsl:template match="/">
>       <out lenght="{string-length($single_surrogate_pair)}"></out>
>   </xsl:template>
>   
> </xsl:stylesheet>
> we have an output:
> <?xml version="1.0" encoding="UTF-8"?><out lenght="2"/> 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message