Re: [xsl] [XSLT2] setting context inside funcdefs

Subject: Re: [xsl] [XSLT2] setting context inside funcdefs
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 14 Feb 2003 15:30:38 GMT
> Yep. What would be other examples (not using for-each)?

apply-templates would also effectively re-establish the context but in
that case the code that uses the context isn't explictitly in the 
function body but rather in the template that gets applied.
so probably just xsl:for-each or within an xpath2 expression of the form
<xsl:value-of select="$callers_context-node/a/b/*[localname()....

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread