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

RE: ampersand character in xsl attribute?

Subject: RE: ampersand character in xsl attribute?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 18 Dec 2001 09:43:20 -0000
ampersand in xml attribute
> Is it true that it's impossible to have a stylesheet ouptut an "&"
> character when inside an attribute?

In general, the only way you can output ill-formed XML or HTML using the
XML/HTML output methods is by using disable-output-escaping; and d-o-e is
specifically not allowed for attribute nodes. So the answer is that it's
almost impossible: the only way to achieve it is to output the entire
start/end tag of the element using d-o-e.

Fortunately, as the many previous instances of this thread have proved,
that's not needed. Many previous askers of this question have been
challenged to identify specific HTML clients that don't accept the correct
escaped &amp; form of a URL, and as far as I recall they have never come up
with a credible example of such a product. It's an urban myth.

Mike Kay


 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.