mirror of
https://gitlab.com/tutorial-java-rafa-munoz/tutorial-java-2024-25/LMSGI-2024-25.git
synced 2025-11-09 18:03:06 +01:00
feat(ch 6 & 7): added
This commit is contained in:
26
Unidad_06_XSL/Tutorial/xml-xsl-ejercicicio01.xsl
Normal file
26
Unidad_06_XSL/Tutorial/xml-xsl-ejercicicio01.xsl
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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="/superheroe">
|
||||
<html>
|
||||
<head>
|
||||
<title>Superheroes de Marvel</title>
|
||||
</head>
|
||||
<body>
|
||||
<xsl:apply-templates/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
<xsl:template match="nombre">
|
||||
<h1>Superheroe: <xsl:value-of select="."/></h1>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="poderes">
|
||||
<h1>Poderes: <xsl:value-of select="."/></h1>
|
||||
</xsl:template>
|
||||
<xsl:template match="amigos">
|
||||
<h1>Amigos: <xsl:value-of select="."/></h1>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user