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

RE: [xsl] how do you determine if a property exists?


Subject: RE: [xsl] how do you determine if a property exists?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 15 Apr 2004 15:39:21 +0100

> I have been looking for a function like
> "exists(@Predecessor)", but there does not seem to be
> such a function...

There is such a function in XPath 2.0. But you don't really need it, since
boolean(@Predecessor) works just fine, and is implicit if you write

<xsl:if test="@Predecessor">

Michael Kay


Current Thread
Keywords