plugins icon in translation
[mdictionary] / data / xsl / xsl.xsl
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
4 <xsl:template match="/">
5                  <table border="1" width="100%">
6                     <xsl:for-each select="ar/dict"> 
7                         <xsl:apply-templates/>
8                     </xsl:for-each>
9                  </table>
10 </xsl:template> 
11
12 <xsl:template match="info">
13         <xsl:variable name="path" select="@path"/>
14         <tr>
15                 <th class="info">               
16                 <xsl:if test="@bookmark = 'true'">
17                         <img src="$STAR$" width="16" height="16"/>   
18                 </xsl:if>
19                 <xsl:value-of select="."/>  <img src="{$path}" height="16"/>
20                 </th>
21         </tr>
22 </xsl:template>
23
24 <xsl:template match="key">
25         <tr>
26         <th class="key"><xsl:value-of select="."/></th>                 
27         </tr>
28 </xsl:template> 
29
30 <xsl:template match="t">
31         <tr>
32            <td><xsl:apply-templates/></td>
33         </tr>
34 </xsl:template>
35
36 <xsl:template match="tr">
37         [<span class="i"><xsl:apply-templates/></span>]
38 </xsl:template> 
39
40 <xsl:template match="pos">
41         (<span><xsl:apply-templates/></span>)
42 </xsl:template>
43
44 <xsl:template match="pot">
45         ,<span class="i"><xsl:apply-templates/></span>
46 </xsl:template>
47
48 <xsl:template match="tence">
49         ,<span class="i"><xsl:apply-templates/></span>
50 </xsl:template>
51
52 <xsl:template match="def">
53         ,(<xsl:apply-templates/>)
54 </xsl:template>
55
56 <xsl:template match="ex">
57         ,"<xsl:apply-templates/>"
58 </xsl:template>
59
60 <xsl:template match="b">
61         <span class="b"><xsl:apply-templates/></span>
62 </xsl:template>
63
64 <xsl:template match="u">
65         <span class="u"><xsl:apply-templates/></span>
66 </xsl:template>
67
68 <xsl:template match="i">
69         <span class="i"><xsl:apply-templates/></span>
70 </xsl:template> 
71
72 <xsl:template match="c">
73         <xsl:variable name="atr" select="@c"/>
74         <font color="{$atr}"> <xsl:apply-templates/></font>
75 </xsl:template>
76
77 <xsl:template match="br">
78         <br/>
79 </xsl:template>
80
81 <!--
82 <xsl:template match="table">
83         <table>
84         <xsl:apply-templates/>
85         </table>
86 </xsl:template>
87
88 <xsl:template match="tr">
89         <tr>
90         <xsl:apply-templates/>
91         </tr>
92 </xsl:template>
93
94 <xsl:template match="td">
95         <td>
96         <xsl:apply-templates/>
97         </td>
98 </xsl:template> -->
99
100 </xsl:stylesheet>