[postgis-commits] svn - r2989 - trunk/doc/xsl
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Mon Sep 22 10:55:30 PDT 2008
Author: robe
Date: 2008-09-22 10:55:30 -0700 (Mon, 22 Sep 2008)
New Revision: 2989
Modified:
trunk/doc/xsl/postgis_comments.sql.xsl
Log:
change to xsl 1.0 plus minor indent change
Modified: trunk/doc/xsl/postgis_comments.sql.xsl
===================================================================
--- trunk/doc/xsl/postgis_comments.sql.xsl 2008-09-22 12:28:57 UTC (rev 2988)
+++ trunk/doc/xsl/postgis_comments.sql.xsl 2008-09-22 17:55:30 UTC (rev 2989)
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<xsl:stylesheet version='2.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />
<xsl:template match='/chapter'>
<xsl:variable name="ap"><xsl:text>'</xsl:text></xsl:variable>
@@ -24,45 +24,43 @@
</xsl:for-each>
</xsl:template>
-<xsl:template name="globalReplace">
- <xsl:param name="outputString"/>
- <xsl:param name="target"/>
- <xsl:param name="replacement"/>
- <xsl:choose>
- <xsl:when test="contains($outputString,$target)">
- <xsl:value-of select=
- "concat(substring-before($outputString,$target),
- $replacement)"/>
- <xsl:call-template name="globalReplace">
- <xsl:with-param name="outputString"
- select="substring-after($outputString,$target)"/>
- <xsl:with-param name="target" select="$target"/>
- <xsl:with-param name="replacement"
- select="$replacement"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="$outputString"/>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
+ <xsl:template name="globalReplace">
+ <xsl:param name="outputString"/>
+ <xsl:param name="target"/>
+ <xsl:param name="replacement"/>
+ <xsl:choose>
+ <xsl:when test="contains($outputString,$target)">
+ <xsl:value-of select=
+ "concat(substring-before($outputString,$target),
+ $replacement)"/>
+ <xsl:call-template name="globalReplace">
+ <xsl:with-param name="outputString"
+ select="substring-after($outputString,$target)"/>
+ <xsl:with-param name="target" select="$target"/>
+ <xsl:with-param name="replacement"
+ select="$replacement"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$outputString"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
-<xsl:template name="listparams">
- <xsl:param name="func" />
- <xsl:for-each select="$func">
- <xsl:if test="count(paramdef/parameter) > 0">args: </xsl:if>
- <xsl:for-each select="paramdef">
- <xsl:choose>
- <xsl:when test="count(parameter) > 0">
- <xsl:value-of select="parameter" />
- </xsl:when>
- </xsl:choose>
- <xsl:if test="position()<last()"><xsl:text>, </xsl:text></xsl:if>
- </xsl:for-each>
- <xsl:if test="count(paramdef/parameter) > 0"> - </xsl:if>
- </xsl:for-each>
-</xsl:template>
+ <xsl:template name="listparams">
+ <xsl:param name="func" />
+ <xsl:for-each select="$func">
+ <xsl:if test="count(paramdef/parameter) > 0">args: </xsl:if>
+ <xsl:for-each select="paramdef">
+ <xsl:choose>
+ <xsl:when test="count(parameter) > 0">
+ <xsl:value-of select="parameter" />
+ </xsl:when>
+ </xsl:choose>
+ <xsl:if test="position()<last()"><xsl:text>, </xsl:text></xsl:if>
+ </xsl:for-each>
+ <xsl:if test="count(paramdef/parameter) > 0"> - </xsl:if>
+ </xsl:for-each>
+ </xsl:template>
-
</xsl:stylesheet>
-
More information about the postgis-commits
mailing list