aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/priv/xsl/db_html.xsl
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2018-03-28 13:16:28 +0200
committerHans Nilsson <[email protected]>2018-03-28 15:09:10 +0200
commit9c74f13b4d6476fecf80a0fc37e266997c7f3c44 (patch)
tree5986d763b1d93ba4fc1b4f6690291b59ae5bec8d /lib/erl_docgen/priv/xsl/db_html.xsl
parent6e13704cf55ca1a13713ddd3ba68e19db44473c1 (diff)
downloadotp-9c74f13b4d6476fecf80a0fc37e266997c7f3c44.tar.gz
otp-9c74f13b4d6476fecf80a0fc37e266997c7f3c44.tar.bz2
otp-9c74f13b4d6476fecf80a0fc37e266997c7f3c44.zip
erl_docgen: Add datatype-title tag to datatype tag
Diffstat (limited to 'lib/erl_docgen/priv/xsl/db_html.xsl')
-rw-r--r--lib/erl_docgen/priv/xsl/db_html.xsl18
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl
index 5b7eae4f73..f9f3a356be 100644
--- a/lib/erl_docgen/priv/xsl/db_html.xsl
+++ b/lib/erl_docgen/priv/xsl/db_html.xsl
@@ -406,15 +406,23 @@
<h3>
<a name="data-types" href="#data-types"><xsl:text>Data Types</xsl:text></a>
</h3>
- <div class="data-types-body">
- <xsl:apply-templates/>
- </div>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <!-- Datatype Title-->
+ <xsl:template match="datatype_title">
+ <xsl:variable name="title" select="."/>
+ <h4>
+ <a name="{$title}" href="#{$title}"><xsl:apply-templates/></a>
+ </h4>
</xsl:template>
<!-- Datatype -->
<xsl:template match="datatype">
- <div class="data-type-name"><xsl:apply-templates select="name"/></div>
- <div class="data-type-desc"><xsl:apply-templates select="desc"/></div>
+ <div class="data-types-body">
+ <div class="data-type-name"><xsl:apply-templates select="name"/></div>
+ <div class="data-type-desc"><xsl:apply-templates select="desc"/></div>
+ </div>
</xsl:template>
<!-- The "mode" attribute of apply has been used to separate the case