Synthesize a list of subsections in the HV1 documentation for pages without nested inner pages.

This commit is contained in:
Dean Camera 2013-05-24 17:29:05 +02:00
parent ac36abd9f0
commit 085f4d38e8
1 changed files with 15 additions and 0 deletions

View File

@ -102,6 +102,21 @@
<xsl:apply-templates select="detaileddescription"/>
<xsl:if test="not(innerpage) and count(detaileddescription//sect1)">
<para>
<emphasis role="bold">Subsections:</emphasis>
<itemizedlist>
<xsl:for-each select="detaileddescription//sect1">
<listitem>
<link linkend="{@id}">
<xsl:value-of select="title"/>
</link>
</listitem>
</xsl:for-each>
</itemizedlist>
</para>
</xsl:if>
<xsl:for-each select="innerpage">
<xsl:apply-templates select="ancestor::*/compounddef[@kind = 'page' and @id = current()/@refid]"/>
</xsl:for-each>