[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: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 18 Mar 2000 12:55:38 GMT
xml output ampersand
> 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.

That is not forgiving, that is correct behaviour.

It is not well formed XML to have & on its own so in the xml output
method you have to have &amp;.

In HTML (being based on sgml rather than xml) it is legal, so in
the html output method your processor _may_ decide to output
& as & rather than &amp; but you have no way to control that within
XSLT. (Either & or &amp; are valid HTML, as in SGML a & is taken as
literal character if it isn't followed by an entity name defined in the
current dtd.

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.