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

ampersand character in xsl attribute?

Subject: ampersand character in xsl attribute?
From: Dan Cederholm <dan@xxxxxxxxxxxx>
Date: Mon, 17 Dec 2001 20:22:53 -0600 (CST)
xsl ampersand
Hi all,

I'm a newbie to the list, so I apologize if this has been answered before.
I've been searching everywhere for a solid answer on this.

Is it true that it's impossible to have a stylesheet ouptut an "&"
character when inside an attribute?  For example, I have a URL that
includes an ampersand as part of a query string -- not the entity -- and I
can get this to print out just fine when doing a simple <xsl:value-of>, but when it's inside an
<xsl:attribute> or even when I hold it in a variable and do <A
HREF="{$foo}">, it always prints out &amp;.

I've tried disable-output-escaping with no luck.  Very frustrating... I
realize it's "bad HTML" to not use &amp;, but since this is for an HTML
version of a newsletter, I don't trust that email clients will convert the
URL correctly.  Not sure who's bright idea it was to make the beginning
character of an entity, an entity itself :)

Thanks!

Dan Cederholm


--
dan@xxxxxxxxxxxx


 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.