]> granicus.if.org Git - postgis/commitdiff
change to xsl 1.0 plus minor indent change
authorRegina Obe <lr@pcorp.us>
Mon, 22 Sep 2008 17:55:30 +0000 (17:55 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 22 Sep 2008 17:55:30 +0000 (17:55 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2989 b70326c6-7e19-0410-871a-916f4a2858ee

doc/xsl/postgis_comments.sql.xsl

index b459a1375e2729a7644727e5a3e24e7411124734..b7a138a25d21675e14ee640e323e185c3342a017 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>\r
-<xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>\r
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\r
        <xsl:output method="text" />\r
        <xsl:template match='/chapter'>\r
                <xsl:variable name="ap"><xsl:text>'</xsl:text></xsl:variable>\r
@@ -24,45 +24,43 @@ COMMENT ON <xsl:choose><xsl:when test="contains(paramdef/type,'geometry set')">A
                </xsl:for-each>\r
        </xsl:template>\r
        \r
-<xsl:template name="globalReplace">\r
-  <xsl:param name="outputString"/>\r
-  <xsl:param name="target"/>\r
-  <xsl:param name="replacement"/>\r
-  <xsl:choose>\r
-    <xsl:when test="contains($outputString,$target)">\r
-      <xsl:value-of select=\r
-        "concat(substring-before($outputString,$target),\r
-               $replacement)"/>\r
-      <xsl:call-template name="globalReplace">\r
-        <xsl:with-param name="outputString" \r
-             select="substring-after($outputString,$target)"/>\r
-        <xsl:with-param name="target" select="$target"/>\r
-        <xsl:with-param name="replacement" \r
-             select="$replacement"/>\r
-      </xsl:call-template>\r
-    </xsl:when>\r
-    <xsl:otherwise>\r
-      <xsl:value-of select="$outputString"/>\r
-    </xsl:otherwise>\r
-  </xsl:choose>\r
-</xsl:template>\r
-\r
-<xsl:template name="listparams">\r
-       <xsl:param name="func" />\r
-       <xsl:for-each select="$func">\r
-               <xsl:if test="count(paramdef/parameter) &gt; 0">args: </xsl:if>\r
-               <xsl:for-each select="paramdef">\r
-                       <xsl:choose>\r
-                               <xsl:when test="count(parameter) &gt; 0"> \r
-                                       <xsl:value-of select="parameter" />\r
-                               </xsl:when>\r
-                       </xsl:choose>\r
-                       <xsl:if test="position()&lt;last()"><xsl:text>, </xsl:text></xsl:if>\r
-               </xsl:for-each>\r
-               <xsl:if test="count(paramdef/parameter) &gt; 0"> - </xsl:if>\r
-       </xsl:for-each> \r
-</xsl:template>\r
+       <xsl:template name="globalReplace">\r
+         <xsl:param name="outputString"/>\r
+         <xsl:param name="target"/>\r
+         <xsl:param name="replacement"/>\r
+         <xsl:choose>\r
+               <xsl:when test="contains($outputString,$target)">\r
+                 <xsl:value-of select=\r
+                       "concat(substring-before($outputString,$target),\r
+                                  $replacement)"/>\r
+                 <xsl:call-template name="globalReplace">\r
+                       <xsl:with-param name="outputString" \r
+                                select="substring-after($outputString,$target)"/>\r
+                       <xsl:with-param name="target" select="$target"/>\r
+                       <xsl:with-param name="replacement" \r
+                                select="$replacement"/>\r
+                 </xsl:call-template>\r
+               </xsl:when>\r
+               <xsl:otherwise>\r
+                 <xsl:value-of select="$outputString"/>\r
+               </xsl:otherwise>\r
+         </xsl:choose>\r
+       </xsl:template>\r
 \r
+       <xsl:template name="listparams">\r
+               <xsl:param name="func" />\r
+               <xsl:for-each select="$func">\r
+                       <xsl:if test="count(paramdef/parameter) &gt; 0">args: </xsl:if>\r
+                       <xsl:for-each select="paramdef">\r
+                               <xsl:choose>\r
+                                       <xsl:when test="count(parameter) &gt; 0"> \r
+                                               <xsl:value-of select="parameter" />\r
+                                       </xsl:when>\r
+                               </xsl:choose>\r
+                               <xsl:if test="position()&lt;last()"><xsl:text>, </xsl:text></xsl:if>\r
+                       </xsl:for-each>\r
+                       <xsl:if test="count(paramdef/parameter) &gt; 0"> - </xsl:if>\r
+               </xsl:for-each> \r
+       </xsl:template>\r
 \r
 </xsl:stylesheet>\r
-\r