This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: ampersand output
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] ampersand output
- From: "Julian Reschke" <julian dot reschke at gmx dot de>
- Date: Thu, 18 Oct 2001 20:31:11 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Look at the FAQ again :-)
Ampersands in the HTML src attribute MUST be escaped as "&" (otherwise
it's invalid HTML).
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Eric Vitiello
> Sent: Thursday, October 18, 2001 8:07 PM
> To: xsl-list
> Subject: [xsl] ampersand output
>
>
> I've been following the thread, and looked up my question
> in the FAQ, but I've been unable to find an answer.
>
> I've also seen some messages with examples of exactly what I'm
> trying to do, but they aren't working...
>
> I'm trying to output the following stylesheet:
>
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="html"/>
>
> <xsl:template match="/family-tree">
> <html>
> <body>
> <embed
> src="/default.asp?{'person=p1'}{'&tree='}{@surname}"
> width="600" height="300" type="image/svg+xml"/>
> </body>
> </html>
> </xsl:template>
>
>
> the problem is the SRC tag. instead of outputting a & it is
> outputting & so the output looks like:
>
> <html>
> <body>
> <embed
> src="/default.asp?person=p1&tree=vitiello" width="600"
> height="300" type="image/svg+xml"/>
> </body>
> </html>
>
> I have also tried & but it also outputs &
>
> I am using MSXML 3.0.
>
> any ideas?
>
> Eric Vitiello
> perceive designs
> <www.perceive.net>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list