RE: variable rtf as querystring in document uri
Variable "query" doesn't contain any tags. It's a tree containing a document node, an element node, and an attribute node. If you want tags, you either have to serialize the tree to lexical XML, or you have to write it as a string variable rather than a tree fragment. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: subscriptions [mailto:subscriptions@xxxxxxxxxxx] > Sent: 29 November 2006 22:55 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: variable rtf as querystring in document uri > > Hi all, > > I am pondering on the possibility of the following: > > > > <xsl:variable > name="server">http://mydomain/q.php?query=</xsl:variable> > <xsl:variable name="query"> > <request id="1" /> > </xsl:variable> > <xsl:variable name="url"> > <xsl:copy-of select="$server" /> > <xsl:copy-of select="$query" /> > </xsl:variable> > <xsl:apply-templates select="document($url)" /> > > > > Without the variable $query it works (as it reacts properly > on the responded xml by applying the templates), but combined > I loose the 'tags' of variable 'query'. > > How to do it properly? > > I downloaded EXSLT uri-encode and tried, but with no changes > in behaviour. > > Greetings Rob
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format