|
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
<xsl:apply-templates
select="document('TreeMenu.xml')//Menu[Menu_K=current()/MenuData]/Menu"
/>
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
loaded?
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.
David
________________________________________________________________________
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:
http://www.star.net.uk
________________________________________________________________________
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Get nodes with document(), Michael Kay | Thread | RE: [xsl] Closing and reopening hie, Pawson, David |
| Re: [xsl] case and strings conversi, JBryant | Date | [xsl] xsl:function, arithmetic, Richard Lewis |
| Month |