<doc:pi name="dbcmdlist" xmlns="">
<refpurpose>Generates a hyperlinked list of commands</refpurpose>
<refdescription>
- <para>Use the <tag class="xmlpi">dbcmdlist</tag> PI as the child of a
- <tag>refsynopsisdiv</tag> containing multiple
+ <para>Use the <tag class="xmlpi">dbcmdlist</tag> PI as the child of any
+ element (for example, <tag>refsynopsisdiv</tag>) containing multiple
<tag>cmdsynopsis</tag> instances; a hyperlinked navigational
- “command list” will be generated at the top of the
- <tag>refsynopsisdiv</tag>, enabling users to quickly jump
- to to each command synopsis.</para>
+ “command list” will be generated at the top of output for that
+ element, enabling users to quickly jump
+ to each command synopsis.</para>
</refdescription>
<refsynopsisdiv>
<synopsis><tag class="xmlpi">dbcmdlist</tag></synopsis>
<doc:pi name="dbfunclist" xmlns="">
<refpurpose>Generates a hyperlinked list of functions</refpurpose>
<refdescription>
- <para>Use the <tag class="xmlpi">dbfunclist</tag> PI as the child of a
- <tag>refsynopsisdiv</tag> containing multiple
+ <para>Use the <tag class="xmlpi">dbfunclist</tag> PI as the child of any
+ element (for example, <tag>refsynopsisdiv</tag>) containing multiple
<tag>funcsynopsis</tag> instances; a hyperlinked
navigational “function list” will be generated at the top of
- the <tag>refsynopsisdiv</tag>, enabling users to quickly
+ output for that element, enabling users to quickly
jump to to each function synopsis.</para>
</refdescription>
<refsynopsisdiv>
<div>
<xsl:apply-templates select="." mode="class.attribute"/>
<p>
- <xsl:call-template name="anchor">
- <xsl:with-param name="conditional" select="0"/>
- </xsl:call-template>
+ <xsl:if test="..//processing-instruction('dbcmdlist')">
+ <!-- * Placing a dbcmdlist PI as a child of a particular element -->
+ <!-- * creates a hyperlinked list of all cmdsynopsis instances -->
+ <!-- * that are descendants of that element; so for any -->
+ <!-- * cmdsynopsis that is a descendant of an element containing -->
+ <!-- * a dbcmdlist PI, we need to output an a@id instance so that -->
+ <!-- * we will have something to link to -->
+ <xsl:call-template name="anchor">
+ <xsl:with-param name="conditional" select="0"/>
+ </xsl:call-template>
+ </xsl:if>
<xsl:apply-templates/>
</p>
</div>
</xsl:template>
<xsl:template match="funcsynopsis">
+ <xsl:if test="..//processing-instruction('dbfunclist')">
+ <!-- * Placing a dbfunclist PI as a child of a particular element -->
+ <!-- * creates a hyperlinked list of all funcsynopsis instances that -->
+ <!-- * are descendants of that element; so for any funcsynopsis that is -->
+ <!-- * a descendant of an element containing a dbfunclist PI, we need -->
+ <!-- * to output an a@id instance so that we will have something to -->
+ <!-- * link to -->
+ <xsl:call-template name="anchor">
+ <xsl:with-param name="conditional" select="0"/>
+ </xsl:call-template>
+ </xsl:if>
<xsl:call-template name="informal.object"/>
</xsl:template>