xsl-list
[Top] [All Lists]

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

2002-12-10 06:31:08
Hi George,

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="../@*/.">

or   <xsl:if test="parent::node()/attribute::node()/self::node()"> 

Regards,
Tom SW

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