Merge branch 'cache' of ssh://drop.maemo.org/git/mdictionary into cache
[mdictionary] / trunk / src / base / xsl.xsl
index e966813..a3dd6e1 100644 (file)
@@ -3,8 +3,11 @@
 
 <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>
@@ -14,6 +17,7 @@
 </xsl:template> 
 
 <xsl:template match="info">
+<<<<<<< HEAD
        <!-- <xsl:variable name="path" select="info/@path"/>-->
        <tr bgcolor="#99FF99">
                <th>            
                </xsl:if>
                <xsl:value-of select="."/> <!-- <img src="{$path}"/> -->
                </th>
+=======
+       <tr>
+       <th class="info"><xsl:value-of select="."/></th>
+>>>>>>> 3e7118bfec64f44b11205ca836cb1a82c725d123
        </tr>
 </xsl:template>
 
 <xsl:template match="key">
+<<<<<<< HEAD
        <tr bgcolor="#99CCFF">
        <th><xsl:value-of select="."/></th>                     
        </tr>
+=======
+       <tr>
+       <th class="key"><xsl:value-of select="."/></th>         
+        </tr>
+>>>>>>> 3e7118bfec64f44b11205ca836cb1a82c725d123
 </xsl:template> 
 
 <xsl:template match="t">
 </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">
@@ -59,7 +73,7 @@
 
 <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>