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

Re: Nicer way to change context-node than xsl:for-each

Subject: Re: Nicer way to change context-node than xsl:for-each ?
From: Mukul Gandhi <gandhi.mukul@xxxxxxxxx>
Date: Sat, 5 Dec 2009 16:52:15 +0530
Re:  Nicer way to change context-node than xsl:for-each
On Sat, Dec 5, 2009 at 4:44 PM, David Carlisle <davidc@xxxxxxxxx> wrote:
> And when you find yourself needing to call that in another context wrapping it in
> xsl:for-each is often the least intrusive change.

I agree to this.

But accomplishing a context change, via xsl:for-each looks
syntactically confusing. I wish the language had a facility for such
kind of a requirement.

The following proposal comes to my mind :)

<xsl:context ref="nodeReference">
   <xsl:call-template name="xx">


Here, the template "xx" get's a context as node, "nodeReference".

Mukul Gandhi

Current Thread


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.
First Name
Last Name
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.