source: companies/serpro/jabberit_messenger/xsl/list_ldap_contacts.xsl @ 903

Revision 903, 1.1 KB checked in by niltonneto, 15 years ago (diff)

Importacao inicial do Expresso do Serpro

Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3        <xsl:output method="html" omit-xml-declaration="yes"/>
4
5        <xsl:param name="many_results" />
6        <xsl:param name="empty" />
7
8        <xsl:template match="/">
9                <xsl:choose>
10                        <xsl:when test="error">
11                                <label><xsl:value-of select="$many_results" /></label>
12                        </xsl:when>
13                        <xsl:when test="empty">
14                                <label><xsl:value-of select="$empty" /></label>
15                        </xsl:when>
16                        <xsl:otherwise>
17                                <xsl:apply-templates select="uids/*" mode="uids" />
18                        </xsl:otherwise>
19                </xsl:choose>
20        </xsl:template>
21
22        <xsl:template match="*" mode="uids">
23                <xsl:for-each select="data">
24                        <xsl:sort select="cn"/>
25                        <span value="{mail};{uid}" photo="{photo}">
26                                <span id="{mail};{uid}" style="display:none;"><xsl:value-of select="cn" /></span>
27                                <b><xsl:value-of select="name(..)"/></b>
28                                <br/><xsl:value-of select="cn" />
29                                <br/><xsl:value-of select="mail" />
30                                <br/>
31                                <br/>
32                                <label style="color:blue;cursor:pointer;">Adicionar Contato</label>
33                        </span>
34                </xsl:for-each>
35        </xsl:template>
36
37</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.