added css file
authorPiotrek <ppilar11@gmail.com>
Tue, 24 Aug 2010 13:00:04 +0000 (15:00 +0200)
committerPiotrek <ppilar11@gmail.com>
Tue, 24 Aug 2010 13:00:04 +0000 (15:00 +0200)
styles.css [new file with mode: 0644]
trunk/src/base/xsl.xsl

diff --git a/styles.css b/styles.css
new file mode 100644 (file)
index 0000000..d606bf3
--- /dev/null
@@ -0,0 +1,8 @@
+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;}
+
+
index 54c041f..c6db7fd 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>
 </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">
@@ -54,7 +56,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>