Subject: [xsl] RE : xsl:param xsl:copy-of From: Leena Kulkarni <mulberrylist@xxxxxxxxxxx> Date: Wed, 16 Apr 2003 05:48:43 +0100 (BST) |
Yes, I am constructing the tags in the variable as you have shown like the following - <xsl:variable name="X"> <xxx> .... </xxx> </xsl:variable> Im doing it in this way - <xsl:call-template name="foo"> <xsl:with-param name="X"> <XXX> <xsl:copy-of select="xalan:nodeset($X)/XXX/*[not(position() = 1)]"/> </XXX> </xsl:with-param> </xsl:call template> Is it proper? Please advice. > "$X1(not(position() =1))" /> If you changed that to use Xpath synatax $X/*[not(position()=1)] Then you can do that so long as $X is a node set. If youhave defined it via <xsl:variable name="X" select=" some xpath"/> <xsl:param name="X" select=" some xpath"/> then it will be a node set conversely if you have defined it by constructing new elements inside the variable declaration <xsl:variable name="X"> <xxx> .... </xxx> </xsl:variable> then it is not a node set and so you can not query it with Xpath. Moset procesors have a node-set() extension function to convert such a result tree fragment into a node set. ________________________________________________________________________ Missed your favourite TV serial last night? Try the new, Yahoo! TV. visit http://in.tv.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XUpdate, S Woodside | Thread | [xsl] Sort by date, Torsten Schlabach |
RE: [xsl] How can I do a string sub, Bill Chmura | Date | [xsl] Re: Sorting on call-template , Dimitre Novatchev |
Month |