Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match='/ciclo'>
- <html>
- <head>
- <title>Actividad 6_1</title>
- </head>
- <body>
- <h2><xsl:value-of select='titulo'/></h2>
- <h2><xsl:value-of select='subtitulo'/></h2>
- <h2>Solución:</h2>
- <xsl:apply-templates select='alumnos' />
- </body>
- </html>
- </xsl:template>
- <xsl:template match='alumnos'>
- <xsl:apply-templates select='alumno'>
- <xsl:sort select='procedencia' data-type='text' order='descending' />
- </xsl:apply-templates>
- </xsl:template>
- <xsl:template match='alumno'>
- <xsl:choose>
- <xsl:when test="procedencia = 'Universidad'">
- <h3>Universidad</h3>
- <b><xsl:value-of select='nombre' /></b>
- <i><xsl:value-of select='apellidos' /></i>
- <br/>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement