aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/StudioIntegration/HV1
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-05-24 17:29:05 +0200
committerDean Camera <dean@fourwalledcubicle.com>2013-05-24 17:29:05 +0200
commit085f4d38e85079cf4111c768a7a73e711207100a (patch)
treecb81a49557dd95254dbd4e43ab4f5996a0469256 /LUFA/StudioIntegration/HV1
parentac36abd9f03612adea082b45aa9596d39871de88 (diff)
downloadlufa-085f4d38e85079cf4111c768a7a73e711207100a.tar.gz
lufa-085f4d38e85079cf4111c768a7a73e711207100a.tar.bz2
lufa-085f4d38e85079cf4111c768a7a73e711207100a.zip
Synthesize a list of subsections in the HV1 documentation for pages without nested inner pages.
Diffstat (limited to 'LUFA/StudioIntegration/HV1')
-rw-r--r--LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt15
1 files changed, 15 insertions, 0 deletions
diff --git a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
index 24a5dfab5..71150aac0 100644
--- a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
+++ b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
@@ -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>