Subject: Re: template matching using namespace
From: "James A. Robinson" <jim.robinson@xxxxxxxxxxxx>
Date: Wed, 29 Nov 2006 07:14:46 -0800
|
> <xsl:if test="self::constraint:And">
> ...
> </xsl:if>
>
> Don't use name() or local-name() to test the name of an element or
> attribute if you statically know the name to test.
So are you saying local-name() is inefficent compared to an
axes based test? That one should only be using local-name
in the context of a 'local-name($foo) eq local-name($bar)'
style test?
Jim
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson jim.robinson@xxxxxxxxxxxx
Stanford University HighWire Press http://highwire.stanford.edu/
+1 650 7237294 (Work) +1 650 7259335 (Fax)
|