</xsl:call-template>\r
</xsl:variable>\r
<xsl:choose>\r
-<!-- If this is a postgis type grab the ref entry summary and refname to make type comment -->\r
-<xsl:when test="parent::sect1[@id='PostGIS_Types']">\r
+<!-- If this is a raster type grab the ref entry summary and refname to make type comment -->\r
+<xsl:when test="parent::sect1[@id='RT_Types']">\r
COMMENT ON TYPE <xsl:value-of select="refnamediv/refname" /> IS 'postgis type: <xsl:value-of select='$comment' />';\r
</xsl:when>\r
</xsl:choose>\r