Translation update done using Pootle.
[wammu.git] / examples / sms.xsl
blob74a6c04cd6dd5b1de4c22486cfccb7dbbe170821
1 <?xml version="1.0" encoding="UTF-8"?>
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:output method="html" media-type="text/html; charset=UTF-8"/>
6 <xsl:template match="/messages">
7 <html>
8 <style type="text/css">
9 div.sms {
10 margin: 0.75em 5px;
11 background-color: #d2ddf6;
12 border: solid 2px black;
14 div.telephone {
15 font-weight: bold;
17 div.text {
18 color: #CC0000;
20 div{
21 margin: 0.25em 0px;
23 </style>
25 <h1>Messages Recus</h1>
27 <xsl:for-each select="message">
28 <xsl:sort select="dateenc"/>
29 <xsl:variable name="stat" select="stat"/>
33 <xsl:if test="$stat='Read'">
35 <div class="sms">
36 <div class="telephone"><xsl:value-of select="telephone"/></div>
37 <div class="date"> <xsl:value-of select="date"/></div>
38 <div class="text"> <xsl:value-of select="text"/></div>
39 </div>
41 </xsl:if>
43 </xsl:for-each>
45 <h1>Messages Envoyés</h1>
47 <xsl:for-each select="message">
48 <xsl:sort select="dateenc"/>
49 <xsl:variable name="stat" select="stat"/>
53 <xsl:if test="$stat='Sent'">
55 <div class="sms">
56 <div class="telephone"><xsl:value-of select="telephone"/></div>
57 <div class="date"> <xsl:value-of select="date"/></div>
58 <div class="text"> <xsl:value-of select="text"/></div>
59 </div>
61 </xsl:if>
63 </xsl:for-each>
65 </html>
66 </xsl:template>
68 </xsl:stylesheet>