1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4 <xsl:template match="/">
7 <link rel="stylesheet" type="text/css" href="styles.css" />
10 <table border="1" width="100%">
11 <xsl:for-each select="ar/dict">
12 <xsl:apply-templates/>
19 <xsl:template match="info">
22 <xsl:if test="@bookmark = 'true'">
23 <img src="mydata://image.png"/>
25 <xsl:value-of select="."/> <!-- <img src="{$path}"/> -->
30 <xsl:template match="key">
32 <th class="key"><xsl:value-of select="."/></th>
36 <xsl:template match="t">
38 <td><xsl:apply-templates/></td>
42 <xsl:template match="tr">
43 [<span class="i"><xsl:apply-templates/></span>]
46 <xsl:template match="pos">
47 (<span><xsl:apply-templates/></span>)
50 <xsl:template match="pot">
51 ,<span class="i"><xsl:apply-templates/></span>
54 <xsl:template match="tence">
55 ,<span class="i"><xsl:apply-templates/></span>
58 <xsl:template match="def">
59 ,(<xsl:apply-templates/>)
62 <xsl:template match="ex">
63 ,"<xsl:apply-templates/>"
66 <xsl:template match="b">
67 <span class="b"><xsl:apply-templates/></span>
70 <xsl:template match="u">
71 <span class="u"><xsl:apply-templates/></span>
74 <xsl:template match="i">
75 <span class="i"><xsl:apply-templates/></span>
78 <xsl:template match="c">
79 <xsl:variable name="atr" select="@c"/>
80 <font color="{$atr}"> <xsl:apply-templates/></font>
83 <xsl:template match="br">
88 <xsl:template match="table">
90 <xsl:apply-templates/>
94 <xsl:template match="tr">
96 <xsl:apply-templates/>
100 <xsl:template match="td">
102 <xsl:apply-templates/>