[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Generating CGI querystrings: How to write a literal ampersand?


Subject: Re: [xsl] Generating CGI querystrings: How to write a literal ampersand?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 30 Mar 2001 12:03:25 +0100

> I need to generate CGI querystrings from an XML data file(s), thus need
> to produce a string such as:
> 
> url?param1=value1&param2=value2&param3=value3 
> 
> I have not succeeded in writing out the literal ampersand.

No you don't want an & you want &amp; If that URI is appearinng in XHTML
you _have_ to have &amp; If it is in HTML then it's best to have &amp;
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



Current Thread
Keywords