[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: RE: [xsl] Test for current node being an element or attribute?
From: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
Date: Tue, 10 Dec 2002 13:31:08 -0000

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



Current Thread