Changeset 151 for trunk/instant_messenger/xsl/vcard_contacts.xsl
- Timestamp:
- 01/18/08 15:17:58 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/instant_messenger/xsl/vcard_contacts.xsl
r55 r151 3 3 <xsl:output method="html" omit-xml-declaration="yes"/> 4 4 5 <xsl:template match="/retorno/vcard"> 6 <html> 7 <head> 8 </head> 9 <body> 10 <div id="_im_vcard_contacts_childs"> 11 <xsl:apply-templates select="div" /> 12 </div> 13 </body> 14 </html> 15 </xsl:template> 16 17 <xsl:template match="div"> 18 <div id="{@id}"> 19 <FN><xsl:value-of select="FN" /></FN> 20 <NICKNAME><xsl:value-of select="NICKNAME" /></NICKNAME> 21 <ROLE><xsl:value-of select="ROLE" /></ROLE> 22 <ORGNAME><xsl:value-of select="ORG/ORGNAME" /></ORGNAME> 23 <ORGUNIT><xsl:value-of select="ORG/ORGUNIT" /></ORGUNIT> 24 <BDAY><xsl:value-of select="BDAY" /></BDAY> 25 <DESC><xsl:value-of select="DESC" /></DESC> 26 </div> 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 27 78 </xsl:template> 28 79
Note: See TracChangeset
for help on using the changeset viewer.