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 Collier-Brown (JIRA)" <xa...@xml.apache.org> on 2011/01/01 17:48:45 UTC

[jira] Commented: (XALANJ-2528) character maps in stylesheets used by Xerces fail

    [ https://issues.apache.org/jira/browse/XALANJ-2528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12976414#action_12976414 ] 

David Collier-Brown commented on XALANJ-2528:
---------------------------------------------

Rats, You already moved it: I'll try to kill the clone I just created. --dave

> character maps in stylesheets used by Xerces fail
> -------------------------------------------------
>
>                 Key: XALANJ-2528
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2528
>             Project: XalanJ2
>          Issue Type: Bug
>      Security Level: No security risk; visible to anyone(Ordinary problems in Xalan projects.  Anybody can view the issue.) 
>          Components: Serialization
>         Environment: Linux  2.6.5-7.151-s390x (SuSE mainframe) and 2.6.23.9lw #105 SMP (Red Hat derived Intel)
>            Reporter: David Collier-Brown
>
> I send a file containing the line
> --
> character="&#10003;" name="check;"
> --
> to Xerces, and wrote it to the following xsl program:
> ---
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>    version="2.0">
>   <xsl:output
>         use-character-maps="cm1" />
>   <xsl:character-map name="cm1">
>       <xsl:output-character character="&#10003;" string="&amp;check;"/>
>   </xsl:character-map>
> </xsl:stylesheet>
> --
> The output, alas, is 
> --
> character="&#10003;" name="check;"
> --
> where "&#10003;" is literally a checkmark character. Piping it through
> cat -A yeilds
> --
> character="M-bM-^\M-^S" name="check;"$
> --
> I expected a literal ampersand followed by "check;", but instead got a 
> literal checkmark on both mainframe and intel linux.
> The code example is from www.xml.com/lpt/a/1426, and has arguably
> worked for the author, but but several other commentartors suggest it 
> doesn't work, as found via the google search "xsl character-map doesn't work"
> This is puzzling, and disqualifies me from using Xerces, and even DOm in
> in general for my customer.
> Is there a general problem with character maps, or ones specific to particular implementations?
> --dave

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