This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Generating CGI querystrings: How to write a literal ampersand?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Generating CGI querystrings: How to write a literal ampersand?
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Fri, 30 Mar 2001 12:03:25 +0100
- References: <7FDE48022CEFA544878EA148687723DF0FD952@mqgenevaex01.myqube.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I need to generate CGI querystrings from an XML data file(s), thus need
> to produce a string such as:
>
> url?param1=value1¶m2=value2¶m3=value3
>
> I have not succeeded in writing out the literal ampersand.
No you don't want an & you want & If that URI is appearinng in XHTML
you _have_ to have & If it is in HTML then it's best to have &
although & on its own is legal so long as the "param2" in your example
doesn't have a name that is the same as an HTML entity.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list