<
xsl:variable name="stock" select="@stockwerk"></xsl:variable><xsl:choose>
<xsl:when test="$stock != '' ">
<td><xsl:value-of select="@typ" /> in Stockwerk "$stock" von Gebaeude "<xsl:value-of select="gebaeude" />" in Bauvorhaben "<xsl:value-of select="bauvorhaben" />"</td>
<td align="center"><b><xsl:value-of select="gesamtSim" /></b></td>
</xsl:when>
<xsl:otherwise>
<td>Gebaeude "<xsl:value-of select="gebaeude" />" in Bauvorhaben "<xsl:value-of select="bauvorhaben" />"</td>
<td align="center"><b><xsl:value-of select="gesamtSim" /></b></td>
</xsl:otherwise>
</xsl:choose>
In the bold line I want to test, if the variable "stock" contains an empty string or anything else. But with the code above, Cocoon always jumps into the Otherwise-part.
What's wrong there?
Thanks,
Barthi
