Some changes to our docbook XSLT script

Add <doc:title> for use in the top-level description, and
a description link type, to link to those sub-paragraphs.
This commit is contained in:
Bastien Nocera
2008-11-21 15:07:25 +00:00
committed by Daniel Drake
parent 3cd0a7aeaf
commit 120c9a1099

View File

@ -268,6 +268,10 @@
</para>
</xsl:template>
<xsl:template match="doc:title">
<refsect2><title role="title.description"><anchor role="description"><xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute></anchor><xsl:value-of select="."/></title></refsect2>
</xsl:template>
<xsl:template match="doc:description">
<xsl:apply-templates />
</xsl:template>
@ -357,6 +361,9 @@ See also:
<xsl:when test="contains($type,'interface')">
<link><xsl:attribute name="linkend"><xsl:value-of select="$to"/></xsl:attribute><xsl:value-of select="$val"/></link>
</xsl:when>
<xsl:when test="contains($type,'description')">
<link><xsl:attribute name="linkend"><xsl:value-of select="$to"/></xsl:attribute><xsl:value-of select="$val"/></link>
</xsl:when>
</xsl:choose>
</xsl:template>