|
Boost-Commit : |
From: fmhess_at_[hidden]
Date: 2007-10-29 11:08:47
Author: fmhess
Date: 2007-10-29 11:08:46 EDT (Mon, 29 Oct 2007)
New Revision: 40554
URL: http://svn.boost.org/trac/boost/changeset/40554
Log:
Extended the hack in docbook.xsl for dealing with nested <part> elements.
It now handles the case of <appendix> children of <part>.
Text files modified:
trunk/tools/boostbook/xsl/docbook.xsl | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
Modified: trunk/tools/boostbook/xsl/docbook.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/docbook.xsl (original)
+++ trunk/tools/boostbook/xsl/docbook.xsl 2007-10-29 11:08:46 EDT (Mon, 29 Oct 2007)
@@ -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 @@
<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 @@
</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 @@
<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 @@
<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 @@
<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>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk