]> Git trees. - libqmvoc.git/commitdiff
better modularisation
authorFrederik Gladhorn <gladhorn@kde.org>
Tue, 6 Nov 2007 12:15:21 +0000 (12:15 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Tue, 6 Nov 2007 12:15:21 +0000 (12:15 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=733471

keduvocdocument/docs/kvtml_html_stylesheet.xsl

index ea3c56cf43ae67a774ce78a0e24bb36e6110cced..24f43664271962b1c8706b23f7d993d39d13a40c 100644 (file)
@@ -13,7 +13,7 @@
 Copyright 2007: Frederik Gladhorn <frederik.gladhorn@kdemail.net>
 
 The easiest way to use the stylesheet is to include it in the .kvtml file:
- <?xml-stylesheet type="text/xsl" href="kvtml_style.xsl"?>
+ <?xml-stylesheet type="text/xsl" href="kvtml_html_style.xsl"?>
 
  -->
 
@@ -44,19 +44,24 @@ The easiest way to use the stylesheet is to include it in the .kvtml file:
           <td><xsl:value-of select="name"/></td>
         </xsl:for-each>
      </tr>
-      <xsl:for-each select="kvtml/entries/entry">
-      <tr>
-        <xsl:for-each select="translation">
-          <td><xsl:value-of select="text"/></td>
-        </xsl:for-each>
-      </tr>
-      </xsl:for-each>
+     <xsl:apply-templates select="kvtml/entries/entry"/>
    </table>
 
  </body>
  </html>
 </xsl:template>
 
+  <xsl:template match="entry">
+    <tr>
+      <xsl:apply-templates select="translation"/>
+    </tr>
+  </xsl:template>
+
+  <xsl:template match="translation">
+    <td>
+      <xsl:value-of select="text"/>
+    </td>
+  </xsl:template>
 
 </xsl:stylesheet>