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

Re: <with-param> with non-text node

Subject: Re: <with-param> with non-text node
From: Mukul Gandhi <mukulw3@xxxxxxxxx>
Date: Tue, 16 Sep 2003 23:56:50 -0700 (PDT)
xsl with param nodeset
Hi Prashant,
I would do it as below --
1)
Convert the tree fragment to a node set first, using
the vendor:nodeset extension function.

<xsl:variable name="treefrag">
  <Parent>
    child1
    child2
  </Parent>
</xsl:variable>

then doing -- e.g. xalan:nodeset($treefrag)

2) Then pass the nodeset to the called template..
<xsl:call-template name="XXXX"> 
  <xsl:with-param name="YYYY"
select="xalan:nodeset($treefrag)">
  </xsl:with-param>
</xsl:call-template>

This way I can process the tree fragment e.g. --
<Parent>
    child1
    child2
</Parent>
in called template using XPath..

Regards,
Mukul


--- Prashant Thakare <thakare@xxxxxxxxxxxxx> wrote:
> If I call some template as :
> <xsl:call-template name="XXXX"> 
> 	<xsl:with-param name="YYYY">
> 		<Parent>
> 			child1
> 			child2
> 		</Parent>
> 	</xsl:with-param>
> </xsl:call-template>
> 
> instead of the text value for the parameter (I
> believe it is legal), how
> do I process parameter YYYY in the template "XXXX"? 
> 
> I am interested in retaining such non-next (node)
> parameters, so would
> be more interested in ways of processing them rather
> than ways of
> specifying alternatively.
> 
> I believe this could also be helpful in getting some
> "variable argument
> list" power in xsl, can we achieve this currently
> using plain xsl?
> 
> Prashant
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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.