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

Re: How do I output an ampersand?

Subject: Re: How do I output an ampersand?
From: Chris Knoll <knoll@xxxxxxxxxxx>
Date: Fri, 17 Mar 2000 23:01:11 -0500
chris knoll
That's funny, I wasn't aware that HTML encoding was valid in a URL, i thought
the proper URL encoding was to use the %### convension.

-Chris

(Sorry this is off topic)


James Lynn wrote:

> This is probably staring me in the face but...
>
> I've got an XSLT stylesheet which I'm running through MSXML2 (and now
> MSXML3) converting from XML to HTML. Part of it requires that I piece
> together a URL from various elements and attributes. I need to be able to
> output an ampersand *on its own* and *not* as &amp;.
>
> How should I do this? I've tried various different methods, but xslt
> resolutely refuses to send anything other than &amp; even when I try
> <xsl:text disable-output-escaping="yes">&#38;</xsl:text>.
>
> I've tried having the output format as html, which doesn't affect this at
> all.
>
> Is it just a quirk of the MS component (which is the only xslt processor I
> have) or is this a general problem?
>
> I should say that IE5 is quite happy to handle URLs of the form
> abc.cgi?p=1&amp;q=2 but my worry is that other browsers won't be as
> forgiving as IE.
>
> Jim Lynn.
> The Hitchhiker's Guide To The Galaxy
> http://www.h2g2.com
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.