Commit 120c9a10 authored by Bastien Nocera's avatar Bastien Nocera Committed by Daniel Drake
Browse files

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.
parent 3cd0a7ae
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment