This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]