xsl/docbook.xsl: Generate section for concepts within library-reference

xsl/caramel/concept2docbook.xsl: Minor warning tweak


[SVN r21178]
This commit is contained in:
Douglas Gregor 2003-12-08 01:24:08 +00:00
parent 234f68cdb8
commit 27d486eb6c
2 changed files with 29 additions and 2 deletions

View File

@ -759,7 +759,7 @@ top level of the Caramel distribution. -->
<xsl:template name="concept.link">
<xsl:param name="name" select="text()"/>
<xsl:param name="warn" select="true"/>
<xsl:param name="warn" select="true()"/>
<xsl:param name="text" select="$name"/>
<xsl:variable name="node" select="key('concepts', $name)"/>
@ -767,7 +767,7 @@ top level of the Caramel distribution. -->
<xsl:when test="count($node)=0">
<xsl:if test="$warn">
<xsl:message>
<xsl:text>Cannot find concept '</xsl:text>
<xsl:text>warning: cannot find concept '</xsl:text>
<xsl:value-of select="$name"/>
<xsl:text>'</xsl:text>
</xsl:message>

View File

@ -42,6 +42,33 @@
<xsl:text>Reference</xsl:text>
</title>
</xsl:if>
<xsl:if test="concept">
<section>
<title>Concepts</title>
<xsl:if test="ancestor::library/attribute::id">
<xsl:attribute name="id">
<xsl:value-of select="ancestor::library/attribute::id"/>
<xsl:text>.concepts</xsl:text>
</xsl:attribute>
</xsl:if>
<itemizedlist>
<xsl:for-each select="concept">
<listitem>
<xsl:call-template name="internal-link">
<xsl:with-param name="to">
<xsl:call-template name="generate.id"/>
</xsl:with-param>
<xsl:with-param name="text" select="@name"/>
</xsl:call-template>
</listitem>
</xsl:for-each>
</itemizedlist>
</section>
</xsl:if>
<xsl:apply-templates/>
</section>
</xsl:otherwise>