<xsl:variable name='geom1type'><xsl:value-of select="@ID"/></xsl:variable>\r
SELECT '<xsl:value-of select="$fnname" /><xsl:text> </xsl:text><xsl:value-of select="@ID" /> : Start Testing <xsl:value-of select="$geom1type" /> against other types';\r
<xsl:for-each select="document('')//pgis:gardens/pgis:gset">\r
- <xsl:choose>\r
+ <xsl:choose>\r
<xsl:when test="contains($fndef, 'geography ')">\r
SELECT 'Geography <xsl:value-of select="$fnname" /><xsl:text> </xsl:text><xsl:value-of select="@ID" />: Start Testing <xsl:value-of select="$geom1type" />, <xsl:value-of select="@GeometryType" />';\r
BEGIN;\r
COMMIT;\r
</xsl:when>\r
<xsl:otherwise>\r
+ SELECT 'Geometry <xsl:value-of select="$fnname" /><xsl:text> </xsl:text><xsl:value-of select="@ID" />: Start Testing <xsl:value-of select="$geom1type" />, <xsl:value-of select="@GeometryType" />';\r
+ BEGIN;\r
+ SELECT foo1.the_geom <xsl:value-of select="$fnname" /> foo2.the_geom\r
+ FROM (<xsl:value-of select="$from1" />) As foo1 CROSS JOIN (<xsl:value-of select="." />) As foo2\r
+ ;\r
+ COMMIT;\r
</xsl:otherwise>\r
+ </xsl:choose>\r
</xsl:for-each>\r
SELECT '<xsl:value-of select="$fnname" /><xsl:text> </xsl:text><xsl:value-of select="@ID" />: End Testing <xsl:value-of select="@GeometryType" /> against other types';\r
</xsl:for-each>\r