[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Can apply-templates attribute mode be passed a variable?


Subject: RE: [xsl] Can apply-templates attribute mode be passed a variable?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 8 Jul 2002 10:02:26 +0100

> >           <xsl:apply-templates select="self::x" mode="$mode"/>
> 
> Note "." is going to be a little more efficient than 
> "self::x", since you already know you're processing an "x" element.
> 
Dangerous assertion. With some processors (not Saxon, though), giving
the processor the advance knowledge that it's processing an "x" element
might reduce the search space for matching template rules.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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



Current Thread