Subversion Repositories bacoAlunos

Rev

Rev 1306 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xs="http://www.w3.org/2001/XMLSchema"   version="1.0"   xmlns:d="http://www.estgp.pt/baco/directory/" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >

        <xsl:output method="html" encoding="UTF-8" omit-xml-declaration="yes" />


        <xsl:template match="/">
        <h1><xsl:value-of select="//d:directory/@label"/></h1>
        <table border="1" width="100%">
            <tr>
                <td>NOME</td>
                <td>SALTO EXTERNO</td>
                <td>ULR</td>
                <td width="20%">NOTAS</td>
            </tr>
                <xsl:for-each select="//d:leaf[@node='true']">
                <tr>
                    <td colspan="4" style="background-color:#aaaaaa"><xsl:value-of select="@label"/></td>
                </tr>
                <xsl:for-each select="./d:leaf[@node='false']">
                    <tr>
                        <td><xsl:text>-&gt;</xsl:text><xsl:value-of select="@label"/></td>
                        <td>
                            <xsl:if test="@absolute='true'">
                                <label style="background-color:red">SIM</label>
                            </xsl:if>
                            <xsl:if test="@proxy='grupos'">
                                <label style="background-color:yellow">PASTA INTRANET</label>
                            </xsl:if>

                        </td>
                        <td><xsl:value-of select="@url"/></td>
                        <td></td>
                    </tr>
                </xsl:for-each>

                </xsl:for-each>

        </table>
        </xsl:template>


</xsl:stylesheet>