Subject: RE: Test for current node being an element or attribute?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 10 Dec 2002 15:29:41 -0000
|
>
> what about:
>
> <xsl:if test="../@*[current()]">
>
Stop guessing, and read the spec.
current() returns a node-set. When used in a predicate, [current()]
returns true if the node-set is non-empty. It is.
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
|