xsl-list
[Top] [All Lists]

Re: perfomance question about selecting from child-node

2003-05-22 08:23:02


What is better for getting a faster transformation in general?

Answers to such questions often depend on the processor, so I suppose
the real answer is just to time it it with the processor that you intend
to use.

Note however that there are alternatives to the two forms you show.
the second form would presumably only be slower if ../abc is slow
but you can limit the number of times you need to use .. in your
template without using parameters, eg

<xsl:variable name="parent" select=".."/>
<xsl:variable name="tannr" select="$parent/tannr"/>
etc and then use  $tannr rather than ../tannr  however I would have
thought that you would have to have an awful lot of access to ../ inside
your DARKONTRAKT template before any of these made any real difference.

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