xsl-list
[Top] [All Lists]

RE: how do you determine if a property exists?

2004-04-15 00:34:56
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