
09/06/2004, 04:06
|
 | | | Fecha de Ingreso: octubre-2001 Ubicación: Sevilla, España
Mensajes: 1.228
Antigüedad: 23 años, 4 meses Puntos: 5 | |
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/">
<html> <head> <title>Title</title> </head> <body>
<xsl:for-each select="//nodo2/persona">
<tr>
<td>Nombre</td><td><xsl:value-of select="nombre"/></td>
<td>Desc. Vivienda</td><td>><xsl:value-of select="//nodo1/descripcion[../codigo=cod_v]"/></td>
</tr>
</xsl:for-each>
</body>
</html> </xsl:template>
</xsl:stylesheet> Llevas en negrita fallitos que tenías: 1. debes englobar el código HTML en algún template 2. te faltaba el atributo select en el for-each |