--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>\r
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\r
+<!-- ********************************************************************\r
+ * $Id: 0.1 postgis_gardentest.sql.xsl 3377 2008-12-11 15:56:18Z robe $\r
+ ********************************************************************\r
+ Copyright 2008, Regina Obe\r
+ License: BSD\r
+ Purpose: This is an xsl transform that generates an sql test script from xml docs to test all the functions we have documented\r
+ using a garden variety of geometries. Its intent is to flag major crashes.\r
+ ******************************************************************** -->\r
+ <xsl:output method="text" />\r
+ <xsl:template match='/chapter'>\r
+<!-- Pull out the purpose section for each ref entry and strip whitespace and put in a variable to be tagged unto each function comment -->\r
+ <xsl:for-each select='sect1/refentry'>\r
+<!-- For each function prototype generate a test sql statement\r
+ Test functions that take no arguments -->\r
+ <xsl:for-each select="refsynopsisdiv/funcsynopsis/funcprototype">\r
+<xsl:if test="count(paramdef/parameter) = 0">SELECT <xsl:value-of select="funcdef/function" />();\r
+</xsl:if>\r
+ </xsl:for-each>\r
+ </xsl:for-each>\r
+ </xsl:template>\r
+</xsl:stylesheet>\r