Re: [xsl] Passing XML in parameter for HREF in <xsl:attribute>

Subject: Re: [xsl] Passing XML in parameter for HREF in <xsl:attribute>
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 29 Mar 2001 11:48:48 +0100
> Has anyone else successfully passed XML via a parameter on the URL? 
no
> Is it an unusual thing to do,
Yes because it's not legal.


<A HREF="myservlet?request=<REQUEST id="12"><COMMAND
                           ^       ^   ^  ^ ^
id="something"/></REQUEST>"></A>
   ^         ^  ^       

You can't have a < in an XML attribute (although you can in SGML (hence
HTML) in some situtaions). In th estylesheet (at least) that needs to
be &lt;

You can't have a literal " in an attribute value if you've used " to
surround that value. You need to use ' or &quot;

Spaces in URL's  need quoting as %20



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