diff options
author | Bill Spitzak <spitzak@gmail.com> | 2015-11-06 08:27:27 -0800 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-02-19 19:26:37 -0800 |
commit | cde251a124d41977b447098cc530fcad2834a45f (patch) | |
tree | 316d8b93c7f89f6c13d59daab474b63a495bd1b8 /doc/publican | |
parent | 3a2553ff013a3661ec044917ccde4a74fe152dc9 (diff) |
doc: Use enum argument type to make links in protocol documentation
Reviewed-by: Auke Booij <auke@tulcod.com>
Diffstat (limited to 'doc/publican')
-rw-r--r-- | doc/publican/protocol-to-docbook.xsl | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/doc/publican/protocol-to-docbook.xsl b/doc/publican/protocol-to-docbook.xsl index fad207a..5344442 100644 --- a/doc/publican/protocol-to-docbook.xsl +++ b/doc/publican/protocol-to-docbook.xsl @@ -102,12 +102,6 @@ <term><xsl:value-of select="@name"/></term> <listitem> <simpara> - <xsl:if test="@enum"> - <link linkend="protocol-spec-{../../@name}-enum-{@enum}"> - <xsl:value-of select="@enum"/> - </link> - <xsl:text> </xsl:text> - </xsl:if> <xsl:value-of select="@type"/> <xsl:if test="@summary" > - <xsl:value-of select="@summary"/> @@ -152,6 +146,24 @@ </varlistentry> </xsl:template> +<!-- enum and bitfield arguemnts --> +<xsl:template match="arg[@enum]"> + <varlistentry> + <term><xsl:value-of select="@name"/></term> + <listitem> + <simpara> + <link linkend="protocol-spec-{../../@name}-enum-{@enum}"> + <xsl:value-of select="../../@name"/>::<xsl:value-of select="@enum"/> + </link> + (<xsl:value-of select="@type"/>) + <xsl:if test="@summary" > + - <xsl:value-of select="@summary"/> + </xsl:if> + </simpara> + </listitem> + </varlistentry> +</xsl:template> + <!-- Request/event list --> <xsl:template match="request|event"> <section id="protocol-spec-{../@name}-{name()}-{@name}"> @@ -174,7 +186,7 @@ <!-- Enumeration --> <xsl:template match="enum"> - <section id="protocol-spec-{../@name}-{name()}-{@name}"> + <section id="protocol-spec-{../@name}-enum-{@name}"> <title> <xsl:value-of select="../@name"/>::<xsl:value-of select="@name" /> <xsl:if test="@bitfield"> |