Jump to content

saralima

Members
  • Posts

    2
  • Joined

  • Last visited

saralima's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. Arghhh driving me nuts. <?xml version="1.0" encoding="ISO-8859-1"?><!-- Edited by XMLSpy® --><xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/"> <html> <body> <h2>Arbol genealogico</h2> <table border="1" width="243"> <tr bgcolor="blue" > <th>Familia</th> </tr></table><table border="1" width="243"> <tr bgcolor="red" > <th>Primos</th> </tr></table> <table border="1"> <tr bgcolor="#9acd32"> <th>Nombre</th> <th>Apellido</th> <th>Fechanac</th> <th>Edad</th> <th>Att->Rama</th> </tr> <xsl:for-each select="Arbolgenealogico/Familia/Primos"> <tr> <td><xsl:value-of select="Nombre"/></td> <td><xsl:value-of select="Apellido"/></td> <td><xsl:value-of select="Fechanac"/></td> <td><xsl:value-of select="Edad"/></td> <td><xsl:value-of select="@Rama"/></td> </tr> </xsl:for-each> </table><table border="1" width="243"> <tr bgcolor="#grey" > <th>Abuelos</th> </tr></table> <table border="1"> <tr bgcolor="#9acd32"> <th>Nombre</th> <th>Apellido</th> <th>Fechanac</th> <th>Edad</th> </tr> <xsl:for-each select="Arbolgenealogico/Familia/Abuelos/Abuela"> <tr> <td><xsl:value-of select="Nombre"/></td> <td><xsl:value-of select="Apellido"/></td> <td><xsl:value-of select="Fechanac"/></td> <td><xsl:value-of select="Edad"/></td> </tr> </xsl:for-each> </table><table border="1" width="243"> <tr bgcolor="#brown" > <th>Tios</th> </tr></table> <table border="1"> <tr bgcolor="#9acd32"> <th>Nombre</th> <th>Apellido</th> <th>Fechanac</th> <th>Edad</th> </tr> <xsl:for-each select="Arbolgenealogico/Familia/Tios/Tio"> <tr> <td><xsl:value-of select="Nombre"/></td> <td><xsl:value-of select="Apellido"/></td> <td><xsl:value-of select="Fechanac"/></td> <td><xsl:value-of select="Edad"/></td> </tr> </xsl:for-each> </table> </body> </html></xsl:template></xsl:stylesheet> I did it like this from an xml and now the the project specifies that i add 2 temple match... i have no idea, ive read a lot and cant make it work
×
×
  • Create New...