source: trunk/instant_messenger/xsl/vcard_contacts.xsl @ 151

Revision 151, 2.4 KB checked in by niltonneto, 16 years ago (diff)

Commit da nova versão do módulo, usando agente em C.
Vide Página do módulo do Trac:
http://www.expressolivre.org/dev/wiki/messenger

A versão anterior encontra-se na subpasta bkp (32/64).

  • Property svn:eol-style set to native
  • Property svn:executable set to *
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:template match="/vcard_contact">
6                <div class="vcard_contact">
7                        <div style="margin:3px">
8                                <label style="font-weight:bold;"><xsl:value-of select="lang1" /> .: </label>
9                                <xsl:choose>
10                                        <xsl:when test="div/@fn">
11                                                <xsl:value-of select="div/@fn" />
12                                        </xsl:when>
13                                        <xsl:otherwise>
14                                                <xsl:value-of select="div/@FN" />
15                                        </xsl:otherwise>
16                                </xsl:choose>
17                        </div>
18                        <div style="margin:3px">
19                                <label style="font-weight:bold;"><xsl:value-of select="lang2" /> .: </label>
20                                <xsl:choose>
21                                        <xsl:when test="div/@nickname">
22                                                <xsl:value-of select="div/@nickname" />
23                                        </xsl:when>
24                                        <xsl:otherwise>
25                                                <xsl:value-of select="div/@NICKNAME" />                                         
26                                        </xsl:otherwise>                                               
27                        </xsl:choose>                           
28                        </div>
29                        <div style="margin:3px">
30                                <label style="font-weight:bold;"><xsl:value-of select="lang3" /> .: </label>
31                                <xsl:choose>   
32                                        <xsl:when test="div/@orgname">
33                                                <xsl:value-of select="div/@orgname" />
34                                        </xsl:when>
35                                        <xsl:otherwise>
36                                                <xsl:value-of select="div/@ORGNAME" />
37                                        </xsl:otherwise>
38                                </xsl:choose>
39                        </div>
40                        <div style="margin:3px">
41                                <label style="font-weight:bold;"><xsl:value-of select="lang4" /> .: </label>
42                                <xsl:choose>
43                                        <xsl:when test="div/@org">
44                                                <xsl:value-of select="div/@org" />
45                                        </xsl:when>
46                                        <xsl:otherwise>
47                                                <xsl:value-of select="div/@ORG" />
48                                        </xsl:otherwise>
49                                </xsl:choose>                                   
50                        </div>
51                        <div style="margin:3px">
52                                <label style="font-weight:bold;"><xsl:value-of select="lang5" /> .: </label>
53                                <xsl:choose>
54                                        <xsl:when test="div/@role">
55                                                <xsl:value-of select="div/@role" />
56                                        </xsl:when>
57                                        <xsl:otherwise>
58                                                <xsl:value-of select="div/@ROLE" />
59                                        </xsl:otherwise>
60                                </xsl:choose>
61                        </div>
62                        <div style="margin:3px">       
63                                <label style="font-weight:bold;"><xsl:value-of select="lang6" /> .: </label>
64                                <xsl:choose>
65                                        <xsl:when test="div/@bday">
66                                                <xsl:value-of select="div/@bday" />
67                                        </xsl:when>
68                                        <xsl:otherwise>
69                                                <xsl:value-of select="div/@BDAY" />
70                                        </xsl:otherwise>
71                                </xsl:choose>
72                        </div>
73                        <div style="margin:5px 0px">
74                                <input type="button" value="{lang7}" onclick="javascript:im_window.window_close('{id}');" />
75                        </div>
76                </div>
77               
78</xsl:template>
79
80</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.