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

Re: ampersand output

Subject: Re: ampersand output
From: Benjamin Franz <snowhare@xxxxxxxxxxx>
Date: Thu, 18 Oct 2001 11:42:22 -0700 (PDT)
svg button
On Thu, 18 Oct 2001, Eric Vitiello wrote:

> I've been following the &nbsp; 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...
>
[...]

> the problem is the SRC tag.  instead of outputting a & it is outputting &amp;  so the output looks like:
>
> <html>
> 	<body>
> 		<embed src="/default.asp?person=p1&amp;tree=vitiello" width="600" height="300" type="image/svg+xml"/>
> 	</body>
> </html>

That is correct output.

[...]

> any ideas?

Yes. Leave it alone. It is doing the right thing. It _SHOULD_ put an &amp;
in the URL because the web browser will convert it to a single '&' before
it loads the URL. It would be _wrong_ (and would work unpredictably, if at
all) if you succeeded in getting a solitary '&' output there (which would
be syntactically invalid HTML).

-- 
Benjamin Franz

 "Code as if whoever maintains your code is a violent
  psychopath who knows where you live."
                    -- Nancy Lebovitz, the button lady


 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.