[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: href with & ?

Subject: RE: href with & ?
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Wed, 18 Sep 2002 01:41:01 +0200
href with
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Peter Davis
> Sent: Tuesday, September 17, 2002 11:05 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  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 &amp; to show up correctly.
>
> You are right that it should be "&" in HTML, but the XSLT page is

No, he isn't. It's "&amp;" *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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.