</xsl:when>\r
<!--Start Test aggregate and unary functions -->\r
<!--Garden Aggregator/Unary function with input gsets test -->\r
- <xsl:when test="count(paramdef[position() > -1]/type[contains(text(), 'geometry')]) = 0 and not(contains($fnexclude,@id))" >\r
+ <xsl:when test="(contains(paramdef[1]/type,'geometry set') or (count(paramdef/parameter) = 1 and contains(paramdef[1]/type, 'geometry')) and not(contains($fnexclude,@id)))" >\r
<xsl:for-each select="document('')//pgis:gardens/pgis:gset">\r
SELECT '<xsl:value-of select="$fnname" /><xsl:text> </xsl:text><xsl:value-of select="@ID" />: Start Testing Multi/<xsl:value-of select="@GeometryType" />'; \r
BEGIN; <!-- If output is geometry show ewkt rep -->\r