xsl-list
[Top] [All Lists]

RE : xsl:param xsl:copy-of

2003-04-15 21:48:43
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



<Prev in Thread] Current Thread [Next in Thread>
  • RE : xsl:param xsl:copy-of, Leena Kulkarni <=