RE: [Announce] Escaping double quotation marks in XSL

"Timothy Jones" <[email protected]> Wed, 24 Oct 2007 12:52:26 -0400
Newsgroups gmane.text.xml.general
Message-ID <044F2EDDF4FCA24A965ECAA66CB9345C0142746C__17531.9358743311$1193266957$gmane$org@vdsexc02>
In the detested example
    > <xsl:template match="image">
    >  <![CDATA[ <image]>><xsl:apply-templates select="@*"/> <![CDATA[
>]>>
    > </xsl:template>
I didn't see any attempt to inject double quotes (I'll even admit to not
reading the subject line!).
 
But for inserting arbitrary characters (even metacharacters) without
escaping, maybe the disable-output-escaping attribute of <xsl:value-of>
and <xsl:text> would be useful.  In my application I have an
XSL-generated HTML page with hyperlinks with GET parameters, and I use
<xsl:value-of disable-output-escaping='yes'> to prevent the & characters
in my GET URLs from being converted to &amp;.  Since = -> &quot; is a
similar encoding to & -> &amp;, wouldn't this help?
 
I apologize if I am missing the point...
 
 
tlj
-----Original Message-----
From: Brian Minchau [mailto:[email protected]
<mailto:[email protected]> ]
Sent: Wednesday, October 24, 2007 12:31 PM
To: Timothy Jones
Cc: [email protected]; [email protected];
[email protected]
Subject: RE: [Announce] Escaping double quotation marks in XSL

Timothy,
well, .... yes, .... but I think that trying to inject double quotes
into the attribute value (with modifications to you suggestion)  in this
way will only get them escaped as &quot; which is not what the user
wanted.

- Brian