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

RE: Repeated Recursion on different parts of a tree

Subject: RE: Repeated Recursion on different parts of a tree
From: "James Fuller" <james.fuller@xxxxxxxxxx>
Date: Mon, 30 Sep 2002 17:47:30 +0100
dif recursion
> Ok thanks James.
>
> I am aware of the call-template tag.
>
> However the issue I have was with the fact that
> if I was to call the template by name, how would I deal
> with the fact that I want to use the first <bitfield> node,
> and then the next and then the next etc.. with each pass of
> recursion?
>
> Below it is done by the select attribute, which
> <call-template> does not have?
>
> Thanks for the book reference. I have just ordered
> Michael Kays XSLT Programmers reference, but I may add that
> to my shopping list to.
>
>
> Thanks
>
>
> PD

just to add to M Kay prev post

you would use the following syntax to call a template

for example
<xsl:call-template name="sometemplatefunction">
   <xsl:with-param name="my_nodes_i_want_to_apply_more_stuff_too"
select="/mynodes" />
</xsl:call-template>

see that the <xsl:with-param/> has a 'select statement

then the accompanying named template must declare a xsl:param to use it
within the context of the template
as so;
<xsl:template name="sometemplatefunction">
  <xsl:param name="my_nodes_i_want_to_apply_more_stuff_too" select="/.." />

no do more stuff .....
</xsl:template>

gl, jim fuller


 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.