RE: [xsl] Use of xsl:apply-templates exception with an element

Subject: RE: [xsl] Use of xsl:apply-templates exception with an element
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 25 Sep 2009 19:52:34 +0100
> What should be done if the element name is in an attribute or 
> variable, as <variable name="name" select=" 'attribution' "/>
> 
> Can name() be avoided here also?
> 

That variable only contains part of the element's name - the local part. You
also need to know the namespace URI part. If you are confident that the
namespace URI makes no difference, then you can test using the predicate
[local-name()!=$name].

Regards,

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

Current Thread