xsl-list
[Top] [All Lists]

Re: [xsl] using xsl:output-character to render characters in 2 ways

2009-11-13 12:26:44
When I use this character map:

<xsl:character-map name="default">
                <xsl:output-character character="&lt;" string="&#60;" />
                <xsl:output-character character=">" string="&#62;" />
                <xsl:output-character character="&amp;" string="&#38;amp;" />
</xsl:character-map>    

the unexpected behaviour occurs. When I remove the output-characters
and use this one:

<xsl:character-map name="default"/>

There is no problem.

I am using Saxon 9


On Fri, Nov 13, 2009 at 4:37 PM, Christopher R. Maden 
<crism(_at_)maden(_dot_)org> wrote:
Tom T wrote:
I'll change my example.

Financial Times, "Erdoğan Grubu'na"

creates

  <meta name="description"
            content='Financial Times, &#34;Erdoğan Grubu'na&#34;'
            />

I now have an attribute that is marked up by single quotes containing
a single quote. IE6 for one cannot deal with this.

That is clearly in error.

Is this happening *with* your output character mapping in force, or
*without*?

If without, then the XSLT processor has a severe bug.  If with, then it
may be happening because of your character mapping.

~Chris
--
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“The State is that great fiction by which everyone tries to live at
 the expense of everyone else.” — Frédéric Bastiat, “L’État”
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--