[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] When exactly is the current node changed?


Subject: RE: [xsl] When exactly is the current node changed?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 17 Nov 2006 00:34:03 -0000

> Hmmm... In case I'm instantiating matching templates to 
> several nodes in parallel, wouldn't that make it possible 
> that I'd end up with two current nodes existing at the same 
> time?  Probably having more than one current node isn't in 
> fact as horrible as it sounds?

Happens all the time. Your run-time environment is full of Closures -
half-evaluated expressions, each holding a copy of its dynamic context,
including its very own context node.

Michael Kay
http://www.saxonica.com/


Current Thread