changes in xsl and css, 0 instead of NULL in code
[mdictionary] / data / xsl / xsl.xsl
index 96770eb..01a19c4 100644 (file)
@@ -2,34 +2,28 @@
 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
 <xsl:template match="/">
-                <table border="1" width="100%">
-                   <xsl:for-each select="ar/dict"> 
+       <div class="tab">
+               <xsl:for-each select="ar/dict"> 
                        <xsl:apply-templates/>
-                   </xsl:for-each>
-                </table>
+               </xsl:for-each>
+       </div>
 </xsl:template> 
 
 <xsl:template match="info">
-       <tr>
-               <th class="info">               
+       <div class="info">              
                <xsl:if test="@bookmark = 'true'">
                        <img src="$STAR$" width="16" height="16"/>   
                </xsl:if>
-               <xsl:value-of select="."/> <!-- <img src="{$path}"/> -->
-               </th>
-       </tr>
+               <xsl:value-of select="."/> 
+       </div>
 </xsl:template>
 
 <xsl:template match="key">
-       <tr>
-       <th class="key"><xsl:value-of select="."/></th>                 
-       </tr>
+       <div class="key"><xsl:value-of select="."/></div>                       
 </xsl:template> 
 
 <xsl:template match="t">
-       <tr>
-          <td><xsl:apply-templates/></td>
-        </tr>
+       <div class="cell"><xsl:apply-templates/></div>
 </xsl:template>
 
 <xsl:template match="tr">
        <br/>
 </xsl:template>
 
-<!--
-<xsl:template match="table">
-       <table>
-       <xsl:apply-templates/>
-       </table>
-</xsl:template>
-
-<xsl:template match="tr">
-       <tr>
-       <xsl:apply-templates/>
-       </tr>
-</xsl:template>
-
-<xsl:template match="td">
-       <td>
-       <xsl:apply-templates/>
-       </td>
-</xsl:template>        -->
-
 </xsl:stylesheet>