xsl-list
[Top] [All Lists]

RE: how do you determine if a property exists?

2004-04-15 01:58:41
Hi,

                              <xsl:choose>
                                      <xsl:when 
test="@duration=''">1</xsl:when>
                                      <xsl:when 
test="@duration">1</xsl:when>

Sorry, this should of course be

  test="not(@duration)"

but you can remove this condition, because if the duration attribute doesn't 
exist, the first test will already return true.

Cheers,

Jarno