Subject: [xsl] 0utput Escaping not behaving From: "Marroc" <marrocdanderfluff@xxxxxxxxxxx> Date: Fri, 22 Feb 2008 11:02:47 -0000 |
Hello all, I have a problem that is possibly a bug. I'm using .NET XslTransform for XSLT 1.0 (not my choice) to transform XHTML to XHTML. When I create this element like this: <xsl:element name="a"> <xsl:attribute name="href"> <xsl:text>javascript:include('</xsl:text> <xsl:value-of select="@href"/> <xsl:text>?i=1','</xsl:text> <xsl:value-of select="@target"/> <xsl:text>');</xsl:text> </xsl:attribute> </xsl:element> I get this: <a href="javascript:include('toc41837.htm?i=1','TOC');"> Notice the happy apostrophes. However, when I use a variable $href containing a query string instead of @href. $href being similar to: /support?p=Compare&c=Compare/help/6.2/toc41837.htm I get this: <a href="javascript:include('/support?p=Compare&c=Compare/help/6.2/toc 41837.htm?i=1','TOC');"> I've tried to 'disable-output-escaping' in the xsl:text elements but it doesn't make any difference. Can anyone say what is going on? Thanks in advance, Richard
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: Is an XPath processor, Colin Paul Adams | Thread | RE: [xsl] 0utput Escaping not behav, Michael Kay |
[xsl] Mysterious 0utput Escaping, Marroc | Date | RE: [xsl] Mysterious 0utput Escapin, Michael Kay |
Month |