-table,th,td{border-style:solid;border-color:black;}
-th.info{background-color:#99FF99;}
-th.key{background-color:#99CCFF;}
-/*p{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;font-style:italic}*/
-p{display:inline;font-style:italic;}
+th.info {
+ background-color : #99FF99;
+}
+
+th.key {
+ background-color : #99CCFF;
+}
+
+span.i {
+ font-style : italic;
+}
+
+span.b {
+ font-weight : bold;
+}
+
+span.u {
+ text-decoration : underline;
+}
+
-
<xsl:template match="/">
<html>
- <head>
- <link rel="stylesheet" type="text/css" href="styles.css" />
- </head>
- <body>
- <table>
- <xsl:for-each select="ar/dict">
+ <head>
+ <link rel="stylesheet" type="text/css" href="styles.css" />
+ </head>
+ <body>
+ <table border="1" width="100%">
+ <xsl:for-each select="ar/dict">
<xsl:apply-templates/>
- </xsl:for-each>
- </table>
- </body>
+ </xsl:for-each>
+ </table>
+ </body>
</html>
</xsl:template>
<xsl:template match="info">
<tr>
- <th class="info"><xsl:value-of select="."/></th>
+ <th class="info"><xsl:value-of select="."/></th>
</tr>
</xsl:template>
<xsl:template match="key">
<tr>
- <th class="key"><xsl:value-of select="."/></th>
+ <th class="key"><xsl:value-of select="."/></th>
</tr>
</xsl:template>
<xsl:template match="t">
<tr>
- <td><xsl:apply-templates/></td>
+ <td><xsl:apply-templates/></td>
</tr>
</xsl:template>
<xsl:template match="tr">
- [<p><xsl:apply-templates/></p>]
+ [<span class="i"><xsl:apply-templates/></span>]
</xsl:template>
<xsl:template match="pot">
- ,<p><xsl:apply-templates/></p>
+ ,<span class="i"><xsl:apply-templates/></span>
</xsl:template>
<xsl:template match="tence">
- ,<p><xsl:apply-templates/></p>
+ ,<span class="i"><xsl:apply-templates/></span>
</xsl:template>
<xsl:template match="def">
,"<xsl:apply-templates/>"
</xsl:template>
+<xsl:template match="b">
+ <span class="b"><xsl:apply-templates/></span>
+</xsl:template>
+
+<xsl:template match="u">
+ <span class="u"><xsl:apply-templates/></span>
+</xsl:template>
+
+<xsl:template match="i">
+ <span class="i"><xsl:apply-templates/></span>
+</xsl:template>
+
<xsl:template match="c">
<xsl:variable name="atr" select="@c"/>
<font color="{$atr}"> <xsl:apply-templates/></font>