This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Using Include File..
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 17 Apr 2002 09:59:13 +0100
- Subject: RE: [xsl] Using Include File..
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Second, while running, any
> xsl:apply-templates command
> will spend time trying to match against the extra templates
> that have a "match" attribute.
>
An XSLT processor is very unlikely to do a serial search of template rules
to find the one that matches. It will typically build some kind of decision
tree or hash table at compile time. If a template rule is of the form
<xsl:template match="some-element-name">
then it's very unlikely that it will add perceptibly to the cost of
executing xsl:apply-templates on a node that is not a <some-element-name>
element.
Of course, I'm making assumptions here about XSLT processors whose internals
are known only to the vendors.
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list