xsl-list
[Top] [All Lists]

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

2009-09-25 14:53:20

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 


--~------------------------------------------------------------------
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>
--~--