]> Git trees. - libqmvoc.git/commitdiff
show comments in the output and have them with their own css style
authorFrederik Gladhorn <gladhorn@kde.org>
Tue, 6 Nov 2007 18:48:56 +0000 (18:48 +0000)
committerFrederik Gladhorn <gladhorn@kde.org>
Tue, 6 Nov 2007 18:48:56 +0000 (18:48 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=733567

keduvocdocument/docs/kvtml_html_stylesheet.xsl

index 2eb4652168c53e5c424509520d5cda959dd1a73f..aca2a5e09b6618b9ecd891cb249dff73faa89e84 100644 (file)
@@ -32,7 +32,9 @@ The easiest way to use the stylesheet is to include it in the .kvtml file:
                        font-size: 130%;
                        background-color: lightblue;
                }
-       
+               .comment {
+                       color: blue;
+               }
        </style>
        
        <head>
@@ -77,9 +79,16 @@ The easiest way to use the stylesheet is to include it in the .kvtml file:
        </xsl:template>
        
        <xsl:template match="translation">
-               <td><xsl:value-of select="text"/></td>
+               <td><xsl:value-of select="text"/>
+                       <xsl:apply-templates select="comment"/>
+               </td>
        </xsl:template>
 
+       <xsl:template match="comment">
+               <span class="comment">
+                       <br/><xsl:value-of select="."/>
+               </span>
+       </xsl:template>
 </xsl:stylesheet>