[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: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 15 Apr 2004 11:58:41 +0300

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


Current Thread