feat(ch 6 & 7): added

This commit is contained in:
Rafa Muñoz
2025-04-07 12:01:02 +02:00
parent 2a060caea7
commit 38284b033d
169 changed files with 2651 additions and 1 deletions

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="iso-8859-1"/>
<xsl:template match="/marvel">
<html>
<head>
<title>Superheroes</title>
<xsl:call-template name="css"/>
</head>
<body>
<xsl:for-each select="superheroe">
<table border="1">
<tr class="tituloTabla">
<td><xsl:value-of select="nombre"/></td>
</tr>
<tr>
<td>poderes: <xsl:value-of select="poderes"/></td>
</tr>
<tr>
<td>amigos: <xsl:value-of select="amigos"/></td>
</tr>
</table>
<br/>
</xsl:for-each>
</body>
</html>
</xsl:template>
<xsl:template name="css">
<style type="text/css">
body {
margin: 50px;
padding: 0px;
background: #2372DE;
font-family: 'Open Sans', sans-serif;
font-size: 11pt;
color: #FFFFFF;
text-align:center;
}
.tituloTabla {
font-weight: bold;
text-align: center;
}
</style>
</xsl:template>
</xsl:stylesheet>