If I understand correctly you first need to serialize the XML and then to
%HH-encode it.
For the second operation you can use the XPath 2.0 iri-to-uri() function.
There's no standard way of doing the first operation. Saxon has an extension
function saxon:serialize() however.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Gary Stewart [mailto:the(_dot_)stewarg(_at_)gmail(_dot_)com]
Sent: 30 October 2005 18:06
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Converting XML to an Escacped URL
Hi there,
I was attempting to convert an XML document into an escaped URL to
send over a HTTP get and couldn't find a very good solution and was
wondering if anyone has designed or had any thoughts to the design of
a stylesheet that could do this. I don't mind if I use version 1.0 or
2.0. I figured that a character map might be the answer for any spaces
but I'm still not certain how I can change tags into escaped
characters unless there is a good way to get a nodeset as a string
then use escape-uri on it.
Thanks,
Gary
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--