[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE : xsl:param xsl:copy-of

Subject: RE : xsl:param xsl:copy-of
From: Leena Kulkarni <mulberrylist@xxxxxxxxxxx>
Date: Wed, 16 Apr 2003 05:48:43 +0100 (BST)
xsl variable copy of
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.