xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <glen.ma...@gmail.com>
Subject Re: [Announce] Escaping double quotation marks in XSL
Date Tue, 23 Oct 2007 21:48:41 GMT
What do you mean by "escape"? Using a backslash as you have below, or 
replacing it with the macro "&quot;"?
I think you want the latter--and if you do that, it should work just as 
nicely as the &lt; and &gt; are doing for you right now.


caporale schrieb:
> I have XSL inside Javascript.  The XML looks like this:
> <image>imagename.jpg</image>.  Any time that tag's there, the output should
> be &lt;img src=\"imagename.jpg\" / &gt;.  This template works, but it
> doesn't escape the quotation marks:
> <xsl:template match="image">
> &lt;img&gt;
> <xsl:attribute name="src">
> <xsl:apply-templates />
> </xsl:attribute>
> </img>
> </xsl:template>
> What do I need to do to escape the quotation marks from that?  I've seen
> about 400 examples on-line--none of which actually do what I want.
> Thanks,
> Joseph Caporale

To unsubscribe, e-mail: general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message