You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2003/05/19 02:13:10 UTC
cvs commit: maven/src/plugins-build/docbook/src/plugin-resources docbook2document.xsl
dion 2003/05/18 17:13:10
Modified: src/plugins-build/docbook/src/plugin-resources
docbook2document.xsl
Log:
Apply patch from arno schumacher fixing subsection coloring.
Revision Changes Path
1.2 +7 -14 maven/src/plugins-build/docbook/src/plugin-resources/docbook2document.xsl
Index: docbook2document.xsl
===================================================================
RCS file: /home/cvs/maven/src/plugins-build/docbook/src/plugin-resources/docbook2document.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- docbook2document.xsl 24 Jan 2003 03:45:09 -0000 1.1
+++ docbook2document.xsl 19 May 2003 00:13:10 -0000 1.2
@@ -7,12 +7,11 @@
Version: $Id$
FIXME: - Doesn't handle attributes of informaltable and other docbook
elements
- - currently doesn't process all docbook-simple elements
- - still has some docbook leftovers
+ - currently doesn't process all docbook elements
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <!-- used for cross ref links (xref) -->
+ <!-- used for cross ref links (xref) -->
<xsl:key name="id" match="*" use="@id"/>
<xsl:template match="/">
@@ -126,7 +125,7 @@
<xsl:template match="section">
<xsl:call-template name="section-common">
- <xsl:with-param name="level" select="1"/>
+ <xsl:with-param name="level" select="count(ancestor::section)+1"/>
</xsl:call-template>
</xsl:template>
@@ -138,25 +137,19 @@
<xsl:when test="number($level)=1">
<xsl:if test="@id"><a name="{@id}"> </a></xsl:if>
<section name="{title}">
- <xsl:apply-templates>
- <xsl:with-param name="level" select="number($level)+1"/>
- </xsl:apply-templates>
+ <xsl:apply-templates/>
</section>
</xsl:when>
<xsl:when test="number($level)=2">
<xsl:if test="@id"><a name="{@id}"> </a></xsl:if>
<subsection name="{title}">
- <xsl:apply-templates>
- <xsl:with-param name="level" select="number($level)+1"/>
- </xsl:apply-templates>
+ <xsl:apply-templates/>
</subsection>
</xsl:when>
<xsl:otherwise>
<xsl:if test="@id"><a name="{@id}"> </a></xsl:if>
<p><a name="{@name}"><strong><xsl:value-of select="title"/></strong></a><br />
- <xsl:apply-templates>
- <xsl:with-param name="level" select="number($level)+1"/>
- </xsl:apply-templates>
+ <xsl:apply-templates/>
</p>
</xsl:otherwise>
</xsl:choose>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org