Subject: RE: [xsl] double escaping problem [re-visited] From: pkeane <pkeane@xxxxxxxxxxxxxxx> Date: Mon, 12 Nov 2007 20:28:20 -0600 (CST) |
Treat it as a workaround rather than a cure. Because DOE doesn't work in all environments, and it stops you reusing your code as a step in a pipeline. It would be better to fix the input side so it doesn't double-escape special characters in the first place
Michael Kay
Here's the xml coming from http://example.com/collections.xml: -------------------------- [...] <collections> <collection name="Art & Art History Collection" id="1"/> <collection name="Photography Collection" id="2"/> </collections> ----------------------------
<xsl:template match="collection"> <li><xsl:value-of select="@name"/></li> </xsl:template> [...] ----------------------------------------
And the output results in this xhtml: ------------------------ [...] <ul> <li>Art &amp; Art History Collection</li> <li>Photography Collection</li> </ul> [...] ----------------------------
thanks! Peter Keane
My apologies -- it seems when I add disable-output-escaping="yes" on the <xsl:value-of/> element, my problem goes away. So unless that's an egregiously improper use of DOE, I think my problem is solved.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] double escaping problem [, Michael Kay | Thread | Re: [xsl] double escaping problem [, Abel Braaksma |
Re: [xsl] fo:inline within fo:basic, David Carlisle | Date | Re: [xsl] fo:inline within fo:basic, Khaled Aly |
Month |