--- /dev/null
+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;}
+
+
+
<xsl:template match="/">
<html>
- <body bgcolor="#FF0000">
- <table border="1" WIDTH="100%">
+ <head>
+ <link rel="stylesheet" type="text/css" href="styles.css" />
+ </head>
+ <body>
+ <table>
<xsl:for-each select="ar/dict">
<xsl:apply-templates/>
</xsl:for-each>
</xsl:template>
<xsl:template match="info">
- <!-- <xsl:variable name="path" select="info/@path"/>-->
- <tr bgcolor="#99FF99">
- <th><xsl:value-of select="."/> <!-- <img src="{$path}"/> --></th>
+ <tr>
+ <th class="info"><xsl:value-of select="."/></th>
</tr>
</xsl:template>
<xsl:template match="key">
- <tr bgcolor="#99CCFF">
- <th><xsl:value-of select="."/></th>
+ <tr>
+ <th class="key"><xsl:value-of select="."/></th>
</tr>
</xsl:template>
</xsl:template>
<xsl:template match="tr">
- [<i><xsl:apply-templates/></i>]
+ [<p><xsl:apply-templates/></p>]
</xsl:template>
<xsl:template match="pot">
- ,<i><xsl:apply-templates/></i>
+ ,<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="tence">
- ,<i><xsl:apply-templates/></i>
+ ,<p><xsl:apply-templates/></p>
</xsl:template>
<xsl:template match="def">
<xsl:template match="c">
<xsl:variable name="atr" select="@c"/>
- <font color="{$atr}"> <xsl:apply-templates/> </font>
+ <font color="{$atr}"> <xsl:apply-templates/></font>
</xsl:template>
</xsl:stylesheet>