xsl-list
[Top] [All Lists]

RE: Test for current node being an element or attribute?

2002-12-10 07:26:10

There must be a better way to test if the current node is an 
attribute node, but the best I can think of is this:

<xsl:if test="../@*/.">

That tests whether the current node has a parent node that is an element
with one or more attributes.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list