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