xsl-list
[Top] [All Lists]

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

2002-12-10 08:29:41

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(_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