Re: Variables and inherited attributes

Subject: Re: Variables and inherited attributes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 21 Jun 2000 15:16:40 +0100 (BST)
> For large document, getting the value from the document tree is very
> time consuming.

actually has anyone done any timings comparing handling inherited
attribute values via ancestestor-or-self::*/@xxx rather than
saving the value "on the way down" and using parameters to pass the
information to templates handling the descendent nodes.

Unlike // which potentially causes a search of the whole document
I'd have thought that for most document types the number of ancestor
nodes is typically quite small, and so looking back up the ancestor axis
to find the relevant xml:lang should be quite efficient?

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread