I'm not sure you can do conditional creation of variables in xsl.
I think you'd have to do something like:
<xsl:variable name="x">
<xsl:choose>
<xsl:when test="Situs"><xsl:value-of select="" /></xsl:when>
<xsl:otherwise>0</xsl:otherwi
</xsl:choose>
i might be wrong and presuming that you got your page to parse and validate then I guess I must be (though that might be one explanation for the blank output depending on your level of error reporting)?
hth
Matt
Main Topics
Browse All Topics





by: GertonePosted on 2009-10-20 at 11:38:32ID: 25617088
count counts the number of nodes, x is a number(), no nodes there
I don't understand what you are trying to achieve
what do you want to do without recursion?