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

Subject: RE: [xsl] how do you determine if a property exists?
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 15 Apr 2004 10:34:56 +0300
Hi,

What is a "property"?
 
> I have the following code in a template I am working
> on:
> 
> <xsl:choose>
>   <xsl:when test="@Predecessors=''">1</xsl:when>

You seem to be testing if the string value of an attribute is an empty string. Either like already have, or if you want to test if the attribute exists, then simply

  <xsl:when test="@Predecessors">

Cheers,

Jarno

Current Thread