Hi there, I'm still at the "monkey see, monkey do" stage with xsl.
Hence there isn't much understanding to the structure of xsl.
I'm trying to have the xsl to branch such as...
if (dataPresent) {
display this
}
else {
do that
}
this is what I have so far...
<xsl:template match="/">
<xsl:variable name="num">
<xsl:number value="0"/>
<xsl:for-each select="semiFinalists/emailedFinalist">
<xsl:if test="semiDateConfirmed != '0000-00-00 00:00:00'">
<xsl:number value="position()"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:choose>
<xsl:when test="$num > 0">
<xsl:call-template name="emailListing"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="noListing"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
I get stuck where I need to define a starting point (<xsl:number value="0"/>) to the increment, atleast that's what I assume... glad to have help on this.
|