doc: Add support for xref to command and function elements
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 22 Jul 2019 12:04:48 +0000 (14:04 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 26 Jul 2019 08:39:13 +0000 (10:39 +0200)
Discussion: https://www.postgresql.org/message-id/517abe28-8a93-5b7a-ff40-b1fd61d33b26%402ndquadrant.com

doc/src/sgml/stylesheet-common.xsl

index 6d26e7e5c9174787a397f4623ebef9ae79a8df5f..e148c9057f8814aa825fa24e53ce7d119e486eaf 100644 (file)
   <xsl:text>?</xsl:text>
 </xsl:template>
 
+
+<!-- Support for generating xref link text to additional elements -->
+
+<xsl:template match="command" mode="xref-to">
+  <xsl:apply-templates select="." mode="xref"/>
+</xsl:template>
+
+<xsl:template match="function" mode="xref-to">
+  <xsl:apply-templates select="." mode="xref"/>
+</xsl:template>
+
 </xsl:stylesheet>