dims 01/07/19 03:53:28
Modified: webapp/stylesheets/documents root2html.xsl
Log:
Patch from Stuart Roebuck for Improvement of documentation source display
Revision Changes Path
1.5 +13 -6 xml-cocoon2/webapp/stylesheets/documents/root2html.xsl
Index: root2html.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/webapp/stylesheets/documents/root2html.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- root2html.xsl 2001/07/16 19:25:53 1.4
+++ root2html.xsl 2001/07/19 10:53:28 1.5
@@ -28,7 +28,7 @@
</xsl:template>
<xsl:template match="/root/sidebar">
- <table>
+ <table valign="top">
<xsl:apply-templates/>
</table>
</xsl:template>
@@ -59,24 +59,30 @@
<xsl:apply-templates/>
</xsl:template>
-<xsl:template match="body//s1" priority="2">
+<xsl:template match="body//s1">
<h1><xsl:value-of select="@title"/></h1>
<xsl:apply-templates/>
</xsl:template>
-<xsl:template match="body//s2" priority="2">
+<xsl:template match="body//s2">
<h2><xsl:value-of select="@title"/></h2>
<xsl:apply-templates/>
</xsl:template>
-<xsl:template match="body//link" priority="2">
+<xsl:template match="body//link">
<a>
<xsl:copy-of select="@href"/>
<xsl:apply-templates/>
</a>
</xsl:template>
-<xsl:template match="body//node()|body//@*">
+<xsl:template match="source">
+ <listing style="color: green; font-size: 80%;">
+ <xsl:apply-templates />
+ </listing>
+</xsl:template>
+
+<xsl:template match="body//node()|body//@*" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
@@ -90,6 +96,7 @@
</xsl:attribute>
</xsl:for-each>
</xsl:element>
-</xsl:template>
+</xsl:template>
+
</xsl:stylesheet>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]