Re: [xsl] RE : Still Testing!

Subject: Re: [xsl] RE : Still Testing!
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sun, 13 Feb 2005 13:54:24 GMT
> My understanding of the above template is that is will match all tree_node
> elements,

It does, but unless you apply templates to a node then it doesn't matter
which templates match that node, nnoe of them will be run.

You don't have a template matching tree, so the default template is used
that applies templates to its children. The child tree_node is then
matched to your template, but that doesn't use apply-templates so the
matching process is terminated at that point. As the if test is true you
get the value of the attribute then the processing stops.

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