Extended the hack in docbook.xsl for dealing with nested <part> elements.

It now handles the case of <appendix> children of <part>.


[SVN r40554]
This commit is contained in:
Frank Mori Hess 2007-10-29 15:08:46 +00:00
parent d2d2c4b90a
commit ba2b0af02c

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2002 Douglas Gregor <doug.gregor -at- gmail.com>
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
@ -53,7 +53,7 @@
<xsl:if test="not(title)">
<title>
<xsl:text>Reference</xsl:text>
</title>
</title>
</xsl:if>
<xsl:if test="concept">
@ -74,7 +74,7 @@
</xsl:choose>
<title>Concepts</title>
<itemizedlist>
<xsl:for-each select="concept">
<listitem>
@ -117,7 +117,7 @@
</title>
<xsl:apply-templates select="para|section" mode="annotation"/>
<xsl:if test="macro">
<xsl:call-template name="synopsis">
<xsl:with-param name="text">
@ -134,7 +134,7 @@
|descendant::typedef">
<xsl:call-template name="synopsis">
<xsl:with-param name="text">
<xsl:apply-templates mode="synopsis"
<xsl:apply-templates mode="synopsis"
select="namespace|class|struct|union
|function|free-function-group
|overloaded-function|enum
@ -263,7 +263,7 @@
</xsl:if>
<xsl:if test="not($highlight)">
<xsl:value-of select="$text"/>
</xsl:if>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:message>
@ -340,7 +340,7 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
<xsl:for-each select="./@*">
<xsl:choose>
<xsl:when test="local-name(.)='last-revision'">
<xsl:attribute
<xsl:attribute
name="rev:last-revision"
namespace="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision">
<xsl:value-of select="."/>
@ -386,7 +386,7 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
</xsl:attribute>
<xsl:if test="@last-revision">
<xsl:attribute
<xsl:attribute
name="rev:last-revision"
namespace="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision">
<xsl:value-of select="@last-revision"/>
@ -444,7 +444,7 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
<xsl:template match="*" mode="namespace-reference">
<xsl:apply-templates select="." mode="reference"/>
</xsl:template>
<!-- Make the various blocks immediately below a "part" be
"chapter"-s. Must also take into account turning
chapters within chpaters into sections. -->
@ -461,7 +461,7 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
<xsl:template match="part/part/partinfo|part/article/articleinfo">
<chapterinfo><xsl:apply-templates/></chapterinfo>
</xsl:template>
<xsl:template match="part/part/chapter">
<xsl:template match="part/part/chapter|part/part/appendix">
<section>
<xsl:for-each select="./@*">
<xsl:attribute name="{name(.)}">
@ -471,7 +471,7 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
<xsl:apply-templates/>
</section>
</xsl:template>
<xsl:template match="part/part/chapter/chapterinfo">
<xsl:template match="part/part/chapter/chapterinfo|part/part/appendix/appendixinfo">
<sectioninfo><xsl:apply-templates/></sectioninfo>
</xsl:template>
</xsl:stylesheet>