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

Re: how to include an ampersand in an html href using xt and

Subject: Re: how to include an ampersand in an html href using xt and xsl?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Jan 2000 16:47:01 GMT
include ampersand in xml
> Most (all?) existing servers use the ampersand in query string to
> separate parameters

yes in the URL, but if that URL is in an XML file it has to be written
in XML syntax, so & gets written as &amp; most (all?) browsers do the
correct thing and the URL works.

> To the XSL community:
> In my opinion this is a flaw in the xslt specification.

You can not write an & directly into an attribute value in XML so what
you ask would be impossible to specify for the XML output method.
For HTML output method the xsl engine can output either & or &amp;
in attribute values since they are equivalent as long as the following
letters don't form an attribute name.

If your HTML system doesn't accept xxx?foo=bar&amp;xxx=yyy but does
accept xxx?foo=bar&xxx=yyy then it is broken as these are equivalent
forms in HTML.

David


 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.