Subject: Re: [xsl] using xsl:output-character to render characters in 2 ways From: "Christopher R. Maden" <crism@xxxxxxxxx> Date: Fri, 13 Nov 2009 13:09:34 -0500 |
Tom T wrote: > When I use this character map: > > <xsl:character-map name="default"> > <xsl:output-character character="<" string="<" /> > <xsl:output-character character=">" string=">" /> > <xsl:output-character character="&" string="&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 In that case: As several other people have suggested, there is really no need for that character map, if you are generating XML or HTML. The XSLT processor will handle necessary escaping for you. Since eliminating the map gives you correct behavior, just stop using it. However, it is still a bug (IMO) that that character map results in invalid markup; you are certainly not requesting the specific bad behavior youbre getting. I would file a bug against Saxon. ~Chris -- Chris Maden, text nerd <URL: http://crism.maden.org/ > bThe State is that great fiction by which everyone tries to live at the expense of everyone else.b b FrC)dC)ric Bastiat, bLbC tatb GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] using xsl:output-characte, Tom T | Thread | Re: [xsl] using xsl:output-characte, Martin Honnen |
Re: [xsl] using xsl:output-characte, David Carlisle | Date | RE: [xsl] Grouping into duplicates , Cavanagh, Tim (DFEES |
Month |