
I have done in the past, but I can not find the error

I would like to see the dynamic text, which changes
example
if and present one comic, show
1 Albo Catalogato per: (singular)
and if the present 2 or more comic show
2 Albi Catalogati per: (plural)
Code: Select all
<!-- Serie con conteggio e cambio dinamico testo in base al numero albi inizio codice -->
<xsl:if test="series!=''">
<strong><span style="color:red;"> ##CMD:COUNT:book,series=<xsl:value-of select="series"/>##</span>
<xsl:choose>
<xsl:when test="series =1">
Albo Catalogato per:
</xsl:when>
<xsl:otherwise>
Albi Catalogati per:
</xsl:otherwise>
</xsl:choose>
<xsl:text> </xsl:text></strong><strong><span style="color:red;"><xsl:value-of select="series"/></span></strong>
</xsl:if>
<!-- Serie con conteggio e cambio dinamico testo in base al numero albi fine codice -->