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

Subject: RE: [xsl] Test for current node being an element or attribute?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 10 Dec 2002 14:26:10 -0000
> 
> 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.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


Current Thread