changes in xsl and css, 0 instead of NULL in code
[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         <div class="tab">
6                 <xsl:for-each select="ar/dict"> 
7                         <xsl:apply-templates/>
8                 </xsl:for-each>
9         </div>
10 </xsl:template> 
11
12 <xsl:template match="info">
13         <div class="info">              
14                 <xsl:if test="@bookmark = 'true'">
15                         <img src="$STAR$" width="16" height="16"/>   
16                 </xsl:if>
17                 <xsl:value-of select="."/> 
18         </div>
19 </xsl:template>
20
21 <xsl:template match="key">
22         <div class="key"><xsl:value-of select="."/></div>                       
23 </xsl:template> 
24
25 <xsl:template match="t">
26         <div class="cell"><xsl:apply-templates/></div>
27 </xsl:template>
28
29 <xsl:template match="tr">
30         [<span class="i"><xsl:apply-templates/></span>]
31 </xsl:template> 
32
33 <xsl:template match="pos">
34         (<span><xsl:apply-templates/></span>)
35 </xsl:template>
36
37 <xsl:template match="pot">
38         ,<span class="i"><xsl:apply-templates/></span>
39 </xsl:template>
40
41 <xsl:template match="tence">
42         ,<span class="i"><xsl:apply-templates/></span>
43 </xsl:template>
44
45 <xsl:template match="def">
46         ,(<xsl:apply-templates/>)
47 </xsl:template>
48
49 <xsl:template match="ex">
50         ,"<xsl:apply-templates/>"
51 </xsl:template>
52
53 <xsl:template match="b">
54         <span class="b"><xsl:apply-templates/></span>
55 </xsl:template>
56
57 <xsl:template match="u">
58         <span class="u"><xsl:apply-templates/></span>
59 </xsl:template>
60
61 <xsl:template match="i">
62         <span class="i"><xsl:apply-templates/></span>
63 </xsl:template> 
64
65 <xsl:template match="c">
66         <xsl:variable name="atr" select="@c"/>
67         <font color="{$atr}"> <xsl:apply-templates/></font>
68 </xsl:template>
69
70 <xsl:template match="br">
71         <br/>
72 </xsl:template>
73
74 </xsl:stylesheet>