This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How do I output an ampersand?
- To: xsl-list at mulberrytech dot com
- Subject: Re: How do I output an ampersand?
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Sat, 18 Mar 2000 12:55:38 GMT
- References: <NCBBIGPJEJIPLMOKKIBKIEALGJAA.jiml@tdv.com>
- Reply-To: xsl-list at mulberrytech dot com
> I should say that IE5 is quite happy to handle URLs of the form
> abc.cgi?p=1&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 &.
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 & but you have no way to control that within
XSLT. (Either & or & 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