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

Re: Generating CGI querystrings: How to write a litera

Subject: Re: Generating CGI querystrings: How to write a literal ampersand?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 30 Mar 2001 12:03:25 +0100
Re:  Generating CGI querystrings: How to write a litera
> 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

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.