xsl-list
[Top] [All Lists]

RE: [xsl] template matching using namespace

2006-11-29 10:06:50
 
So are you saying local-name() is inefficent compared to an 
axes based test? 

Can't speak for other processors but that's certainly the case for Saxon
(using self::x doesn't involve run-time string comparisons); also using an
axis NameTest gives better type information if you're using a schema. Also,
perhaps more importantly, it avoids the temptation to write code that isn't
namespace-correct.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>