diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-24 17:29:05 +0200 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-24 17:29:05 +0200 |
commit | 085f4d38e85079cf4111c768a7a73e711207100a (patch) | |
tree | cb81a49557dd95254dbd4e43ab4f5996a0469256 | |
parent | ac36abd9f03612adea082b45aa9596d39871de88 (diff) | |
download | lufa-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.
-rw-r--r-- | LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt | 15 |
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> |