xsl-list
[Top] [All Lists]

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

2009-12-05 06:22:58
On Sat, Dec 5, 2009 at 4:44 PM, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> 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">

    </xsl:call-template>
</xsl:context>

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



-- 
Regards,
Mukul Gandhi

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--