]> granicus.if.org Git - postgis/commitdiff
revise to correctly comment functions with OUT parameters
authorRegina Obe <lr@pcorp.us>
Tue, 17 May 2011 06:34:52 +0000 (06:34 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 17 May 2011 06:34:52 +0000 (06:34 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7166 b70326c6-7e19-0410-871a-916f4a2858ee

doc/xsl/raster_comments.sql.xsl

index 0e10d9d8b7901fecc8ea0708a7f1b453bad6734e..8a2478b13c8f41974550cf863c7b07dfe0727396 100644 (file)
                        </xsl:call-template>\r
                </xsl:variable>\r
 <!-- For each function prototype generate the DDL comment statement\r
-       If its input is a geometry set - we know it is an aggregate function rather than a regular function -->\r
+       If its input is a geometry set - we know it is an aggregate function rather than a regular function.\r
+       Do not output OUT params since they define output rathe than act as input -->\r
                <xsl:for-each select="refsynopsisdiv/funcsynopsis/funcprototype">\r
 COMMENT ON <xsl:choose><xsl:when test="contains(paramdef/type,'geometry set')">AGGREGATE</xsl:when><xsl:otherwise>FUNCTION</xsl:otherwise></xsl:choose><xsl:text> </xsl:text> <xsl:value-of select="funcdef/function" />(<xsl:for-each select="paramdef"><xsl:choose><xsl:when test="count(parameter) &gt; 0"> \r
-<xsl:choose><xsl:when test="contains(type,'geometry set')">geometry</xsl:when><xsl:otherwise><xsl:value-of select="type" /></xsl:otherwise></xsl:choose><xsl:if test="position()&lt;last()"><xsl:text>, </xsl:text></xsl:if></xsl:when>\r
+<xsl:choose><xsl:when test="contains(parameter,'OUT')"></xsl:when><xsl:when test="contains(type,'geometry set')">geometry</xsl:when><xsl:otherwise><xsl:value-of select="type" /></xsl:otherwise></xsl:choose><xsl:if test="position()&lt;last() and not(contains(parameter,'OUT'))"><xsl:text>, </xsl:text></xsl:if></xsl:when>\r
 </xsl:choose></xsl:for-each>) IS '<xsl:call-template name="listparams"><xsl:with-param name="func" select="." /></xsl:call-template> <xsl:value-of select='$comment' />';\r
                        </xsl:for-each>\r
                </xsl:for-each>\r