<xsl:output method="text" />\r
<!--Exclude this from testing - it crashes with geometry collection -->\r
<xsl:variable name='fnexclude'>ST_CurveToLine</xsl:variable>\r
+ <xsl:variable name='var_integer'>4269</xsl:variable>\r
+ <xsl:variable name='var_float1'>0.5</xsl:variable>\r
+ <xsl:variable name='var_float2'>0.75</xsl:variable>\r
+ <xsl:variable name='var_version'>2</xsl:variable>\r
<pgis:gardens>\r
<pgis:gset ID='PointSet' GeometryType='POINT'>(SELECT ST_SetSRID(ST_Point(i,j),4326) As the_geom \r
FROM generate_series(-10,50,15) As i \r
CROSS JOIN generate_series(50,70, 20) As j\r
CROSS JOIN generate_series(1,2) As m\r
GROUP BY m)</pgis:gset>\r
+ \r
+ <pgis:gset ID='CurvePolySet' GeometryType='CURVEPOLYGON'>(SELECT ST_LineToCurve(ST_Buffer(ST_SetSRID(ST_Point(i,j),4326), j)) As the_geom \r
+ FROM generate_series(-10,50,10) As i \r
+ CROSS JOIN generate_series(40,70, 20) As j)</pgis:gset>\r
</pgis:gardens>\r
\r
<xsl:template match='/chapter'>\r
</xsl:for-each>\r
</xsl:for-each>\r
</xsl:template>\r
+ \r
+ <!--macro to replace func args with dummy var args -->\r
+ <xsl:template name="replaceparams">\r
+ <xsl:param name="func" />\r
+ <xsl:for-each select="$func">\r
+ <xsl:for-each select="paramdef">\r
+ <xsl:choose>\r
+ <xsl:when test="count(parameter) > 0"> \r
+ <xsl:value-of select="parameter" />\r
+ </xsl:when>\r
+ </xsl:choose>\r
+ <xsl:if test="position()<last()"><xsl:text>, </xsl:text></xsl:if>\r
+ </xsl:for-each>\r
+ </xsl:for-each> \r
+ </xsl:template>\r
</xsl:stylesheet>\r