updated xsl and css files cache
authorPiotrek <ppilar11@gmail.com>
Wed, 25 Aug 2010 12:08:11 +0000 (14:08 +0200)
committerPiotrek <ppilar11@gmail.com>
Wed, 25 Aug 2010 12:08:11 +0000 (14:08 +0200)
styles.css
trunk/src/base/xsl.xsl

index d606bf3..c8490f2 100644 (file)
@@ -1,8 +1,22 @@
-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;
+}
+
 
 
index c6db7fd..f1b3e34 100644 (file)
@@ -3,47 +3,47 @@
 
 <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>