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

@ -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>