RE: [xsl] template matching using namespace

Subject: RE: [xsl] template matching using namespace
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 29 Nov 2006 17:06:25 -0000
> 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

Michael Kay

Current Thread