Apply patch from arno schumacher fixing subsection coloring.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113428 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
8d324776be
commit
52ffc1f5a6
1 file changed
+7
-14
@@ -4,15 +4,14 @@
|
||||
Author: Berin Loritsch (bloritsch@infoplanning.com)
|
||||
Author: Peter Donald (donaldp@apache.org)
|
||||
Author: dIon Gillard (trongus@yahoo.com)
|
||||
Version: $Id: docbook2document.xsl,v 1.1 2003/01/24 03:45:09 jvanzyl Exp $
|
||||
Version: $Id: docbook2document.xsl,v 1.2 2003/05/19 00:13:10 dion Exp $
|
||||
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>
|
||||
|
||||
Reference in new issue
Block a user