Re: [xsl] Get nodes with document() and applying templates to them

Subject: Re: [xsl] Get nodes with document() and applying templates to them
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 14 Feb 2005 17:43:16 GMT
  BTW, when i do 


  what is hapening? Does the entire TreeMenu.xml loads and then get the
  nodes selected, or by some magic only the nodes selected are being

You are not supposed to ask. That is if the system can apply magic to
download less of that document (or less of the original source document)
than is apparently requested then this just comes under the "invisible
optimisation" implementation details banner.

However it's safest to assume that the whole document is
loaded. Specifically because in the template for Menu that is applied by
the above you are free to go
<xsl:value-of select="../../.."/>
so if the system had magically only fetched the  Menu nodes it had
better magically fetch the great-grandparents of those nodes when it
comes to this command.


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

Current Thread