xsl-list
[Top] [All Lists]

RE: href with & ?

2002-09-17 16:41:01
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com]On Behalf Of 
Peter Davis
Sent: Tuesday, September 17, 2002 11:05 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] href with & ?


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 17 September 2002 13:39, Holmberg Rick-ra0119 wrote:
I was thinking that somehow because it was a part of the href, that it
needed to be & instead of & to show up correctly.

You are right that it should be "&" in HTML, but the XSLT page is

No, he isn't. It's "&" *both* in HTML and XML.

in XML.  It
is only translated to HTML by the XSLT engine's serializer, when
you specify
an <xsl:output method="html"/> tag.  The engine doesn't copy the text
literally; it first parses the XSLT page using a normal XML
parser, and then
serializes the parsed text according to the output method and encoding.

Correct.

But note that it would be a *bug* if the XSLT engine serialized the
ampersand just as "&" in HTML attributes.

Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>