Non ce la faccio più...Devo controllare che una data non sia festiva. Io passo alla template la data da esaminare.
Codice:
<xsl:template name="IsHoliday">
<xsl:param name="giorno"/>
<xsl:variable name="feste">
<festa>01/01</festa>
<festa>06/01</festa>
<festa>25/04</festa>
<festa>01/05</festa>
<festa>02/06</festa>
<festa>15/08</festa>
<festa>01/11</festa>
<festa>08/12</festa>
<festa>25/12</festa>
<festa>26/12</festa>
</xsl:variable>
<xsl:for-each select="$feste/festa">
<xsl:choose>
<xsl:when test="text() = $giorno">
<xsl:variable name="esito">true</xsl:variable>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:template>
Dovrei dire "true" se la data è contenuta nell'array festa altrimenti "false". Mi date un aiuto per chiudere sta template?