Diferencia entre revisiones de «Gambas/Manipular documentos XML»
Contenido eliminado Contenido añadido
Línea 104:
< table >
< tr >
< th >Name< /th >
< th >Played by< /th >
< th >Ability< /th >
< /tr >
<x s l:for-each select="characters/*" >
Línea 112:
<xsl:when test="position() mod 2 = 0">
< tr class="even" >
< td ><xsl:value-of select="name" />< /td >
< td ><xsl:value-of select="played_by" />< /td >
< td ><xsl:value-of select="ability" />< /td >
< /tr >▼
< tr class="odd" >▼
< td ><xsl:value-of select="name" />< /td >▼
< td ><xsl:value-of select="played_by" />< /td >▼
< td ><xsl:value-of select="ability" />< /td >▼
< /tr >
▲ </x s l:when>
▲ <x s l:otherwise>
▲ <tr class="odd">
▲ < td ><xsl:value-of select="name" /></td>
▲ < td ><xsl:value-of select="played_by" /></td>
▲ < td ><xsl:value-of select="ability" /></td>
▲ </tr>
</xsl:otherwise>
</xsl:choose>
|