Subject: RE: [xsl] Converting <xml> StyleSheet param contents into a node set? From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 17 Aug 2005 07:46:39 +0100 |
The way you pass parameters to a stylesheet depends on the API of the XSLT processor that you are using. Many will allow you to pass a DOM Document node. If you're using Saxon from the command line, the parameter +Filter=filter.xml causes the file filter.xml to be parsed, and the resulting document (root) node becomes the value of the parameter. Another approach is to pass the URI as the stylesheet parameter, and then call document() from within the stylesheet. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Jacquo Johnson [mailto:genxgeek@xxxxxxxxx] > Sent: 17 August 2005 02:07 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] Converting <xml> StyleSheet param contents > into a node set? > > HI all, can somebody tell me how I can pass <xml> contents into a > stylesheet param and then convert that <xml> contents into a nodeset? > > > Stylesheet: ( Filter=<Node><Whatever/></Node> ) > ... > <xsl:param name="Filter" select="string('NULL')" /> > > <xsl:copy-of select="$Filter"/> > ... > Output: > <Node><Whatever/></Node> > > However, I want to turn the xml contents above into a node set that I > can later use in the transform. Is that possible (is there something > other than using CDATA)? > > Any information would be greatly appreciated.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Re: Converting <xml> StyleShe, Jacquo Johnson | Thread | Re: [xsl] Converting <xml> StyleShe, Jacquo Johnson |
[xsl] Re: Converting <xml> StyleShe, Jacquo Johnson | Date | RE: [xsl] Transforming an XML docum, Michael Kay |
Month |