ciao

Come faccio per applicareun templates se un attributo e' uguale ad un valore io; ho provato cosi' ma non funziona cosa sbaglio?

questo e' il codice


<xsl:apply-templates select="@prelievo">
<xsl:with-param name="vquap" select="@quap"/>
</xsl:apply-templates>

<xsl:template match="@prelievo[@prelievo=0]">
<xslaram name="vquap"/>
<td rowspan="3" width="176px" color="silver" align="center">
<font color="silver">
<xsl:if test="$vquap = 0">
<xsl:attribute name="color">red</xsl:attribute>
</xsl:if>
<xsl:if test="$vquap = 0">
Non disponibile
</xsl:if>
<xsl:if test="$vquap != 0">
Prelevato
</xsl:if>
</font>
</td>
</xsl:template>