Subversion Repositories bacoAlunos

Rev

Rev 1306 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
901 jmachado 1
<?xml version="1.0" encoding="UTF-8"?>
2
<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" >
3
 
4
        <xsl:output method="html" encoding="UTF-8" omit-xml-declaration="yes" />
5
 
6
 
7
        <xsl:template match="/">
8
        <h1><xsl:value-of select="//d:directory/@label"/></h1>
9
        <table border="1" width="100%">
10
            <tr>
11
                <td>NOME</td>
12
                <td>SALTO EXTERNO</td>
13
                <td>ULR</td>
14
                <td width="20%">NOTAS</td>
15
            </tr>
1067 jmachado 16
                <xsl:for-each select="//d:leaf[@node='true']">
901 jmachado 17
                <tr>
18
                    <td colspan="4" style="background-color:#aaaaaa"><xsl:value-of select="@label"/></td>
19
                </tr>
1067 jmachado 20
                <xsl:for-each select="./d:leaf[@node='false']">
901 jmachado 21
                    <tr>
22
                        <td><xsl:text>-&gt;</xsl:text><xsl:value-of select="@label"/></td>
23
                        <td>
24
                            <xsl:if test="@absolute='true'">
25
                                <label style="background-color:red">SIM</label>
26
                            </xsl:if>
27
                            <xsl:if test="@proxy='grupos'">
28
                                <label style="background-color:yellow">PASTA INTRANET</label>
29
                            </xsl:if>
30
 
31
                        </td>
32
                        <td><xsl:value-of select="@url"/></td>
33
                        <td></td>
34
                    </tr>
35
                </xsl:for-each>
36
 
37
                </xsl:for-each>
38
 
39
        </table>
40
        </xsl:template>
41
 
42
 
43
</xsl:stylesheet>