Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <html>
- <head>
- <title></title>
- <link rel="stylesheet" type="text/css" href="orario2.css"/>
- </head>
- <body>
- <p id="titolo">ORARIO GENERALE</p>
- <p id="sottotitolo">
- <xsl:value-of select="struttura/@nome"/> - <xsl:value-of select="struttura/@sede"/> - <xsl:value-of select="struttura/@sitoweb"/>
- </p>
- <table border="1">
- <tr>
- <th>CODICE</th><th>NOME CORSO</th><th>TIPO CORSO</th><th>GIORNI DI LEZIONE</th><th>ORARIO INIZIO</th><th>ORARIO FINE</th><th>TIPO AULA</th><th>NOME AULA</th><th>CAPIENZA</th>
- </tr>
- <xsl:for-each select="struttura/corso">
- <tr bgcolor="{nomeaula/@aula}">
- <td><xsl:value-of select="@codice"/></td>
- <td><xsl:value-of select="nomecorso"/></td>
- <td><xsl:value-of select="tipocorso"/></td>
- <td><xsl:value-of select="frequenzacorso/@frequenzac"/></td>
- <td><xsl:value-of select="dalleore"/></td>
- <td><xsl:value-of select="alleore"/></td>
- <td><xsl:value-of select="tipoaula/@aula"/></td>
- <td><xsl:value-of select="nomeaula/@aula"/></td>
- <td>
- <xsl:choose>
- <xsl:when select="nomeaula/@aula='RED'">
- 30
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when select="nomeaula/@aula='BLUE'">
- 50
- </xsl:when>
- <xsl:otherwise>
- 60
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </body>
- </html>
- </xsl:template>
- </xsl:stylesheet>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement