![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
16/09/2004, 04:01
|
![Avatar de Helbira](http://static.forosdelweb.com/customavatars/avatar6439_3.gif) | | | Fecha de Ingreso: octubre-2001 Ubicación: Sevilla, España
Mensajes: 1.228
Antigüedad: 23 años, 3 meses Puntos: 5 | |
Te falta ponerle el carácter @ delante del nombre del atributo.
Te quedaría así el código:
<xsl:template match="div">
<xsl:choose>
<xsl:when test="@class='card'">
<card>
----------- Acciones ----------
</card>
</xsl:when>
<xsl:when test="@class='txt'">
<txt>
----------- Acciones ----------
</txt>
</xsl:when>
</xsl:choose>
</xsl:template> |