[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-1051-g47d8e9ee7

git at osgeo.org git at osgeo.org
Wed Jun 28 13:59:56 PDT 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  47d8e9ee7c9eeb79e4e6b139e8417d48257bf564 (commit)
       via  ae9b113fc92844b0deba8a9dfade797eafe5d884 (commit)
      from  f46028160a4a7ccdcd354084abd38b277328d6e6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 47d8e9ee7c9eeb79e4e6b139e8417d48257bf564
Author: Sandro Santilli <strk at kbt.io>
Date:   Wed Jun 28 22:55:00 2023 +0200

    It's XSL, not XLS (sorry)

diff --git a/.gitignore b/.gitignore
index 47d8108e7..577e36542 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,7 +31,7 @@ doc/html/*.html
 doc/html/docbook.css
 doc/Makefile
 doc/Makefile.comments
-doc/**.xls.xml
+doc/**.xsl.xml
 doc/po/*/*.xml
 doc/po/*/html
 doc/po/*/Makefile
diff --git a/doc/Makefile.in b/doc/Makefile.in
index 6b952803f..764d7c58f 100644
--- a/doc/Makefile.in
+++ b/doc/Makefile.in
@@ -179,17 +179,17 @@ XML_SOURCES = \
 	using_raster_dataman.xml
 
 XSL_GENERATED_SOURCES = \
-	list_3d_functions.xls.xml \
-	list_aggregates.xls.xml \
-	list_box_functions.xls.xml \
-	list_curved_geometry_functions.xls.xml \
-	list_dump_functions.xls.xml \
-	list_geography_functions.xls.xml \
-	list_new_functions.xls.xml \
-	list_raster_functions.xls.xml \
-	list_sqlmm_functions.xls.xml \
-	list_window_functions.xls.xml \
-	table_body_function_support_matrix.xls.xml
+	list_3d_functions.xsl.xml \
+	list_aggregates.xsl.xml \
+	list_box_functions.xsl.xml \
+	list_curved_geometry_functions.xsl.xml \
+	list_dump_functions.xsl.xml \
+	list_geography_functions.xsl.xml \
+	list_new_functions.xsl.xml \
+	list_raster_functions.xsl.xml \
+	list_sqlmm_functions.xsl.xml \
+	list_window_functions.xsl.xml \
+	table_body_function_support_matrix.xsl.xml
 
 XML_GENERATED_SOURCES = \
 	$(XSL_GENERATED_SOURCES) \
@@ -261,7 +261,7 @@ endif
 ifeq ($(XSLTPROC),)
 $(XSL_GENERATED_SOURCES): requirements_not_met_xsltproc
 else
-$(XSL_GENERATED_SOURCES): %.xls.xml: xsl/%.xml.xls postgis-out.xml
+$(XSL_GENERATED_SOURCES): %.xsl.xml: xsl/%.xml.xsl postgis-out.xml
 	grep -v '\&postgis_special;' postgis-out.xml | $(XSLTPROC) --novalid $(XSLTPROC_PATH_OPT) -o $@ $< -
 endif
 
diff --git a/doc/ent/postgis_special.ent b/doc/ent/postgis_special.ent
index ff86a5d91..ae281e661 100644
--- a/doc/ent/postgis_special.ent
+++ b/doc/ent/postgis_special.ent
@@ -2,15 +2,15 @@
 
 <!ENTITY postgis_special SYSTEM "postgis_special.xml">
 
-<!ENTITY list_3d_functions SYSTEM "list_3d_functions.xls.xml">
-<!ENTITY list_aggregates SYSTEM "list_aggregates.xls.xml">
-<!ENTITY list_box_functions SYSTEM "list_box_functions.xls.xml">
-<!ENTITY list_curved_geometry_functions SYSTEM "list_curved_geometry_functions.xls.xml">
-<!ENTITY list_dump_functions SYSTEM "list_dump_functions.xls.xml">
-<!ENTITY list_geography_functions SYSTEM "list_geography_functions.xls.xml">
-<!ENTITY list_new_functions SYSTEM "list_new_functions.xls.xml">
-<!ENTITY list_polyhedral_geometry_functions SYSTEM "list_curved_geometry_functions.xls.xml">
-<!ENTITY list_raster_functions SYSTEM "list_raster_functions.xls.xml">
-<!ENTITY list_sqlmm_functions SYSTEM "list_sqlmm_functions.xls.xml">
-<!ENTITY list_window_functions SYSTEM "list_window_functions.xls.xml">
-<!ENTITY table_body_function_support_matrix SYSTEM "table_body_function_support_matrix.xls.xml">
+<!ENTITY list_3d_functions SYSTEM "list_3d_functions.xsl.xml">
+<!ENTITY list_aggregates SYSTEM "list_aggregates.xsl.xml">
+<!ENTITY list_box_functions SYSTEM "list_box_functions.xsl.xml">
+<!ENTITY list_curved_geometry_functions SYSTEM "list_curved_geometry_functions.xsl.xml">
+<!ENTITY list_dump_functions SYSTEM "list_dump_functions.xsl.xml">
+<!ENTITY list_geography_functions SYSTEM "list_geography_functions.xsl.xml">
+<!ENTITY list_new_functions SYSTEM "list_new_functions.xsl.xml">
+<!ENTITY list_polyhedral_geometry_functions SYSTEM "list_curved_geometry_functions.xsl.xml">
+<!ENTITY list_raster_functions SYSTEM "list_raster_functions.xsl.xml">
+<!ENTITY list_sqlmm_functions SYSTEM "list_sqlmm_functions.xsl.xml">
+<!ENTITY list_window_functions SYSTEM "list_window_functions.xsl.xml">
+<!ENTITY table_body_function_support_matrix SYSTEM "table_body_function_support_matrix.xsl.xml">
diff --git a/doc/xsl/list_3d_functions.xml.xls b/doc/xsl/list_3d_functions.xml.xsl
similarity index 98%
rename from doc/xsl/list_3d_functions.xml.xls
rename to doc/xsl/list_3d_functions.xml.xsl
index 1e0735405..f55f4535e 100644
--- a/doc/xsl/list_3d_functions.xml.xls
+++ b/doc/xsl/list_3d_functions.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-	 Purpose: This is an xsl transform that generates file list_3d_functions.xml.xls which
+	 Purpose: This is an xsl transform that generates file list_3d_functions.xml.xsl which
 	 includes index listing of functions supporting Z
 	 It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
diff --git a/doc/xsl/list_aggregates.xml.xls b/doc/xsl/list_aggregates.xml.xsl
similarity index 98%
rename from doc/xsl/list_aggregates.xml.xls
rename to doc/xsl/list_aggregates.xml.xsl
index be5cf699a..16c08a622 100644
--- a/doc/xsl/list_aggregates.xml.xls
+++ b/doc/xsl/list_aggregates.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-	 Purpose: This is an xsl transform that generates file list_aggregates.xml.xls which
+	 Purpose: This is an xsl transform that generates file list_aggregates.xml.xsl which
 	 includes index listing of aggregate functions.
 	 It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
diff --git a/doc/xsl/list_box_functions.xml.xls b/doc/xsl/list_box_functions.xml.xsl
similarity index 98%
rename from doc/xsl/list_box_functions.xml.xls
rename to doc/xsl/list_box_functions.xml.xsl
index eca0cc127..f156d6432 100644
--- a/doc/xsl/list_box_functions.xml.xls
+++ b/doc/xsl/list_box_functions.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-	 Purpose: This is an xsl transform that generates file list_box_functions.xml.xls which
+	 Purpose: This is an xsl transform that generates file list_box_functions.xml.xsl which
 	 includes index listing of functions taking or returning a BOX.
 	 It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
diff --git a/doc/xsl/list_curved_geometry_functions.xml.xls b/doc/xsl/list_curved_geometry_functions.xml.xsl
similarity index 98%
rename from doc/xsl/list_curved_geometry_functions.xml.xls
rename to doc/xsl/list_curved_geometry_functions.xml.xsl
index 8e85b93f5..96040059c 100644
--- a/doc/xsl/list_curved_geometry_functions.xml.xls
+++ b/doc/xsl/list_curved_geometry_functions.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-   Purpose: This is an xsl transform that generates file list_curved_geometry_functions.xml.xls which
+   Purpose: This is an xsl transform that generates file list_curved_geometry_functions.xml.xsl which
    includes index listing of functions supporting curved geometries.
    It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
diff --git a/doc/xsl/list_dump_functions.xml.xls b/doc/xsl/list_dump_functions.xml.xsl
similarity index 98%
rename from doc/xsl/list_dump_functions.xml.xls
rename to doc/xsl/list_dump_functions.xml.xsl
index 1535d9df2..33a5e24bd 100644
--- a/doc/xsl/list_dump_functions.xml.xls
+++ b/doc/xsl/list_dump_functions.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-   Purpose: This is an xsl transform that generates file list_dump_functions.xml.xls which
+   Purpose: This is an xsl transform that generates file list_dump_functions.xml.xsl which
    includes index listing of functions returning geometry dumps.
    It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
diff --git a/doc/xsl/list_geography_functions.xml.xls b/doc/xsl/list_geography_functions.xml.xsl
similarity index 98%
rename from doc/xsl/list_geography_functions.xml.xls
rename to doc/xsl/list_geography_functions.xml.xsl
index 4b539496b..81fb7858e 100644
--- a/doc/xsl/list_geography_functions.xml.xls
+++ b/doc/xsl/list_geography_functions.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-   Purpose: This is an xsl transform that generates file list_geography_functions.xml.xls which
+   Purpose: This is an xsl transform that generates file list_geography_functions.xml.xsl which
    includes index listing of functions accepting or returning geography.
    It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
diff --git a/doc/xsl/list_new_functions.xml.xls b/doc/xsl/list_new_functions.xml.xsl
similarity index 100%
rename from doc/xsl/list_new_functions.xml.xls
rename to doc/xsl/list_new_functions.xml.xsl
diff --git a/doc/xsl/list_raster_functions.xml.xls b/doc/xsl/list_raster_functions.xml.xsl
similarity index 98%
rename from doc/xsl/list_raster_functions.xml.xls
rename to doc/xsl/list_raster_functions.xml.xsl
index 62c841eed..f02961e6d 100644
--- a/doc/xsl/list_raster_functions.xml.xls
+++ b/doc/xsl/list_raster_functions.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-   Purpose: This is an xsl transform that generates file list_raster_functions.xml.xls which
+   Purpose: This is an xsl transform that generates file list_raster_functions.xml.xsl which
    includes index listing of functions accepting or returning raster.
    It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
diff --git a/doc/xsl/list_sqlmm_functions.xml.xls b/doc/xsl/list_sqlmm_functions.xml.xsl
similarity index 98%
rename from doc/xsl/list_sqlmm_functions.xml.xls
rename to doc/xsl/list_sqlmm_functions.xml.xsl
index acba59e1f..a7e825fe3 100644
--- a/doc/xsl/list_sqlmm_functions.xml.xls
+++ b/doc/xsl/list_sqlmm_functions.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-   Purpose: This is an xsl transform that generates file list_sqlmm_functions.xml.xls which
+   Purpose: This is an xsl transform that generates file list_sqlmm_functions.xml.xsl which
    includes index listing of functions implementing SQL/MM standard.
    It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
diff --git a/doc/xsl/list_window_functions.xml.xls b/doc/xsl/list_window_functions.xml.xsl
similarity index 98%
rename from doc/xsl/list_window_functions.xml.xls
rename to doc/xsl/list_window_functions.xml.xsl
index a196f4106..1f9422ab2 100644
--- a/doc/xsl/list_window_functions.xml.xls
+++ b/doc/xsl/list_window_functions.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-   Purpose: This is an xsl transform that generates file list_window_functions.xml.xls which
+   Purpose: This is an xsl transform that generates file list_window_functions.xml.xsl which
    includes index listing of window functions.
    It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
diff --git a/doc/xsl/table_body_function_support_matrix.xml.xls b/doc/xsl/table_body_function_support_matrix.xml.xsl
similarity index 99%
rename from doc/xsl/table_body_function_support_matrix.xml.xls
rename to doc/xsl/table_body_function_support_matrix.xml.xsl
index 6a539c59c..07fe5479c 100644
--- a/doc/xsl/table_body_function_support_matrix.xml.xls
+++ b/doc/xsl/table_body_function_support_matrix.xml.xsl
@@ -3,7 +3,7 @@
 	 ********************************************************************
 	 Copyright 2010-2022, Regina Obe
 	 License: BSD
-   Purpose: This is an xsl transform that generates file table_body_function_support_matrix.xml.xls which
+   Purpose: This is an xsl transform that generates file table_body_function_support_matrix.xml.xsl which
    includes table body of functions support matrix.
    It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->

commit ae9b113fc92844b0deba8a9dfade797eafe5d884
Author: Sandro Santilli <strk at kbt.io>
Date:   Wed Jun 28 22:50:20 2023 +0200

    Further simplify list_new_functions XSL by using another loop
    
    For tags, this time

diff --git a/doc/xsl/list_new_functions.xml.xls b/doc/xsl/list_new_functions.xml.xls
index cfaa9d584..f492a1594 100644
--- a/doc/xsl/list_new_functions.xml.xls
+++ b/doc/xsl/list_new_functions.xml.xls
@@ -5,27 +5,35 @@
 	 License: BSD
 	 Purpose: This is an xsl transform that generates file list_new_functions.xml which
 	 includes what is new in each release
-   It uses xml reference sections from reference.xml to then be processed by docbook
+	 It uses xml reference sections from reference.xml to then be processed by docbook
 	 ******************************************************************** -->
 	<xsl:output method="xml" indent="yes" encoding="utf-8" />
 
-  <!-- TODO: extract this from inspection of Availability/Changed/Enhanced comments -->
-  <xsl:variable name="postgis-versions">
-    <v>3.4</v>
-    <v>3.3</v>
-    <v>3.2</v>
-    <v>3.1</v>
-    <v>3.0</v>
-    <v>2.5</v>
-    <v>2.4</v>
-    <v>2.3</v>
-    <v>2.2</v>
-    <v>2.1</v>
-    <v>2.0</v>
-    <v>1.5</v>
-    <v>1.4</v>
-    <v>1.3</v>
-  </xsl:variable>
+	<!-- TODO: extract this from inspection of Availability/Changed/Enhanced comments -->
+	<xsl:variable name="postgis-versions">
+		<v>3.4</v>
+		<v>3.3</v>
+		<v>3.2</v>
+		<v>3.1</v>
+		<v>3.0</v>
+		<v>2.5</v>
+		<v>2.4</v>
+		<v>2.3</v>
+		<v>2.2</v>
+		<v>2.1</v>
+		<v>2.0</v>
+		<v>1.5</v>
+		<v>1.4</v>
+		<v>1.3</v>
+	</xsl:variable>
+
+	<!-- TODO: read from a localized .xml, togheter with paragraphs to
+			be translated, see #5414 -->
+	<xsl:variable name="supported-tags">
+		<v>Availability</v>
+		<v>Enhanced</v>
+		<v>Changed</v>
+	</xsl:variable>
 
 
 	<!-- We deal only with the reference chapter -->
@@ -35,138 +43,87 @@
 
 	<xsl:template match="//chapter">
 
-    <xsl:variable name="chap" select="." />
-
-    <!-- for each postgis-version { -->
-    <xsl:for-each select="document('')/*/xsl:variable[@name='postgis-versions']/*">
-
-      <xsl:variable name='ver'>
-        <xsl:value-of select="." />
-      </xsl:variable>
-
-      <xsl:variable name='ver_id'>
-        <xsl:value-of select="translate($ver,'.','_')" />
-      </xsl:variable>
-
-      <sect2 id="NewFunctions_{$ver_id}">
-        <title>PostGIS Functions new or enhanced in <xsl:value-of select="$ver" /></title>
-        <para>The functions given below are PostGIS functions that were added or enhanced.</para>
-
-        <!-- { -->
-        <xsl:if test="contains($chap, concat('Availability: ', $ver))">
-        <para>Functions new in PostGIS <xsl:value-of select="$ver" /></para>
-        <itemizedlist>
-        <!-- Pull out the purpose section for each ref entry and strip whitespace and put in a variable to be tagged unto each function comment  -->
-          <xsl:for-each select="$chap//refentry">
-            <xsl:sort select="refnamediv/refname"/>
-            <xsl:variable name='comment'>
-              <xsl:value-of select="normalize-space(translate(translate(refnamediv/refpurpose,'&#x0d;&#x0a;', ' '), '	', ' '))"/>
-            </xsl:variable>
-            <xsl:variable name="refid">
-              <xsl:value-of select="@id" />
-            </xsl:variable>
-
-            <xsl:variable name="refname">
-              <xsl:value-of select="refnamediv/refname" />
-            </xsl:variable>
-
-            <!-- For each section if there is note about availability in this version -->
-            <xsl:for-each select="refsection">
-              <xsl:for-each select="para | */para">
-                <xsl:choose>
-                  <xsl:when test="contains(., concat('Availability: ', $ver))">
-                    <listitem>
-                      <simpara>
-                        <link linkend="{$refid}"><xsl:value-of select="$refname" /></link> - <xsl:value-of select="." /><xsl:text> </xsl:text> <xsl:value-of select="$comment" />
-                      </simpara>
-                    </listitem>
-                  </xsl:when>
-                </xsl:choose>
-              </xsl:for-each>
-            </xsl:for-each>
-          </xsl:for-each>
-        </itemizedlist>
-        </xsl:if>
-        <!-- } -->
-
-      <!-- { -->
-      <xsl:if test="contains($chap, concat('Enhanced: ', $ver))">
-        <para>Functions enhanced in PostGIS <xsl:value-of select="$ver" /></para>
-        <itemizedlist>
-        <!-- Pull out the purpose section for each ref entry and strip whitespace and put in a variable to be tagged unto each function comment  -->
-        <xsl:for-each select="$chap//refentry">
-          <xsl:sort select="refnamediv/refname"/>
-          <xsl:variable name='comment'>
-            <xsl:value-of select="normalize-space(translate(translate(refnamediv/refpurpose,'&#x0d;&#x0a;', ' '), '	', ' '))"/>
-          </xsl:variable>
-          <xsl:variable name="refid">
-            <xsl:value-of select="@id" />
-          </xsl:variable>
-
-          <xsl:variable name="refname">
-            <xsl:value-of select="refnamediv/refname" />
-          </xsl:variable>
-
-
-          <!-- For each section if there is note about availability in this version -->
-          <xsl:for-each select="refsection">
-            <xsl:for-each select="para | */para">
-              <xsl:choose>
-                <xsl:when test="contains(., concat('Enhanced: ', $ver))">
-                  <listitem>
-                    <simpara>
-                      <link linkend="{$refid}"><xsl:value-of select="$refname" /></link> - <xsl:value-of select="." /><xsl:text> </xsl:text> <xsl:value-of select="$comment" />
-                    </simpara>
-                  </listitem>
-                </xsl:when>
-              </xsl:choose>
-            </xsl:for-each>
-          </xsl:for-each>
-        </xsl:for-each>
-        </itemizedlist>
-      </xsl:if> <!-- } -->
-
-      <!-- { -->
-      <xsl:if test="contains($chap, concat('Changed: ', $ver))">
-        <para>Functions changed in PostGIS <xsl:value-of select="$ver" /></para>
-        <itemizedlist>
-        <!-- Pull out the purpose section for each ref entry and strip whitespace and put in a variable to be tagged unto each function comment  -->
-        <xsl:for-each select="$chap//refentry">
-          <xsl:sort select="refnamediv/refname"/>
-          <xsl:variable name='comment'>
-            <xsl:value-of select="normalize-space(translate(translate(refnamediv/refpurpose,'&#x0d;&#x0a;', ' '), '	', ' '))"/>
-          </xsl:variable>
-          <xsl:variable name="refid">
-            <xsl:value-of select="@id" />
-          </xsl:variable>
-
-          <xsl:variable name="refname">
-            <xsl:value-of select="refnamediv/refname" />
-          </xsl:variable>
-
-
-      <!-- For each section if there is note about availability in this version -->
-            <xsl:for-each select="refsection">
-              <xsl:for-each select="para | */para">
-                <xsl:choose>
-                  <xsl:when test="contains(., concat('Changed: ', $ver))">
-                    <listitem>
-                      <simpara>
-                        <link linkend="{$refid}"><xsl:value-of select="$refname" /></link> - <xsl:value-of select="." /><xsl:text> </xsl:text> <xsl:value-of select="$comment" />
-                      </simpara>
-                    </listitem>
-                  </xsl:when>
-                </xsl:choose>
-              </xsl:for-each>
-            </xsl:for-each>
-        </xsl:for-each>
-      </itemizedlist>
-      </xsl:if> <!-- } -->
-
-      </sect2>
-
-    </xsl:for-each>
-    <!-- each postgis-version } -->
+		<xsl:variable name="chap" select="." />
+
+		<!-- for each postgis-version { -->
+		<xsl:for-each select="document('')/*/xsl:variable[@name='postgis-versions']/*">
+
+			<xsl:variable name='ver'>
+				<xsl:value-of select="." />
+			</xsl:variable>
+
+			<xsl:variable name='ver_id'>
+				<xsl:value-of select="translate($ver,'.','_')" />
+			</xsl:variable>
+
+			<sect2 id="NewFunctions_{$ver_id}">
+
+				<!-- TODO: make title and parameter translatable -->
+				<title>PostGIS Functions new or enhanced in <xsl:value-of select="$ver" /></title>
+				<para>The functions given below are PostGIS functions that were added or enhanced.</para>
+
+				<!-- for each supported-tag { -->
+				<xsl:for-each select="document('')/*/xsl:variable[@name='supported-tags']/*">
+
+				<xsl:variable name='tag'>
+					<xsl:value-of select="." />
+				</xsl:variable>
+
+				<xsl:variable name='tag_verb'>
+					<xsl:choose>
+						<xsl:when test="$tag = 'Availability'">new</xsl:when>
+						<xsl:when test="$tag = 'Enhanced'">enhanced</xsl:when>
+						<xsl:when test="$tag = 'Changed'">changed</xsl:when>
+					</xsl:choose>
+				</xsl:variable>
+
+
+				<!-- { -->
+				<xsl:if test="$chap//para[contains(., concat(concat($tag, ': '), $ver))]">
+				<!-- TODO: make next parameter translatable -->
+				<para>Functions <xsl:value-of select="$tag_verb" /> in PostGIS <xsl:value-of select="$ver" /></para>
+				<itemizedlist>
+				<!-- Pull out the purpose section for each ref entry and strip whitespace and put in
+						 a variable to be tagged unto each function comment	-->
+					<xsl:for-each select="$chap//refentry">
+						<xsl:sort select="refnamediv/refname"/>
+						<xsl:variable name='comment'>
+							<xsl:value-of select="normalize-space(translate(translate(refnamediv/refpurpose,'&#x0d;&#x0a;', ' '), '	', ' '))"/>
+						</xsl:variable>
+						<xsl:variable name="refid">
+							<xsl:value-of select="@id" />
+						</xsl:variable>
+
+						<xsl:variable name="refname">
+							<xsl:value-of select="refnamediv/refname" />
+						</xsl:variable>
+
+						<!-- For each section if there is note about availability in this version -->
+						<xsl:for-each select="refsection">
+							<xsl:for-each select=".//para">
+								<xsl:choose>
+									<xsl:when test="contains(., concat(concat($tag, ': '), $ver))">
+										<listitem>
+											<simpara>
+												<link linkend="{$refid}"><xsl:value-of select="$refname" /></link> - <xsl:value-of select="." /><xsl:text> </xsl:text> <xsl:value-of select="$comment" />
+											</simpara>
+										</listitem>
+									</xsl:when>
+								</xsl:choose>
+							</xsl:for-each>
+						</xsl:for-each>
+					</xsl:for-each>
+				</itemizedlist>
+				</xsl:if>
+				<!-- } -->
+
+				</xsl:for-each>
+				<!-- each supporte-tag } -->
+
+			</sect2>
+
+		</xsl:for-each>
+		<!-- each postgis-version } -->
 
 	</xsl:template>
 

-----------------------------------------------------------------------

Summary of changes:
 .gitignore                                         |   2 +-
 doc/Makefile.in                                    |  24 +--
 doc/ent/postgis_special.ent                        |  24 +--
 ...functions.xml.xls => list_3d_functions.xml.xsl} |   2 +-
 ..._aggregates.xml.xls => list_aggregates.xml.xsl} |   2 +-
 ...unctions.xml.xls => list_box_functions.xml.xsl} |   2 +-
 ....xls => list_curved_geometry_functions.xml.xsl} |   2 +-
 ...nctions.xml.xls => list_dump_functions.xml.xsl} |   2 +-
 ...ns.xml.xls => list_geography_functions.xml.xsl} |   2 +-
 doc/xsl/list_new_functions.xml.xls                 | 173 ---------------------
 doc/xsl/list_new_functions.xml.xsl                 | 130 ++++++++++++++++
 ...tions.xml.xls => list_raster_functions.xml.xsl} |   2 +-
 ...ctions.xml.xls => list_sqlmm_functions.xml.xsl} |   2 +-
 ...tions.xml.xls => list_window_functions.xml.xsl} |   2 +-
 ... => table_body_function_support_matrix.xml.xsl} |   2 +-
 15 files changed, 165 insertions(+), 208 deletions(-)
 rename doc/xsl/{list_3d_functions.xml.xls => list_3d_functions.xml.xsl} (98%)
 rename doc/xsl/{list_aggregates.xml.xls => list_aggregates.xml.xsl} (98%)
 rename doc/xsl/{list_box_functions.xml.xls => list_box_functions.xml.xsl} (98%)
 rename doc/xsl/{list_curved_geometry_functions.xml.xls => list_curved_geometry_functions.xml.xsl} (98%)
 rename doc/xsl/{list_dump_functions.xml.xls => list_dump_functions.xml.xsl} (98%)
 rename doc/xsl/{list_geography_functions.xml.xls => list_geography_functions.xml.xsl} (98%)
 delete mode 100644 doc/xsl/list_new_functions.xml.xls
 create mode 100644 doc/xsl/list_new_functions.xml.xsl
 rename doc/xsl/{list_raster_functions.xml.xls => list_raster_functions.xml.xsl} (98%)
 rename doc/xsl/{list_sqlmm_functions.xml.xls => list_sqlmm_functions.xml.xsl} (98%)
 rename doc/xsl/{list_window_functions.xml.xls => list_window_functions.xml.xsl} (98%)
 rename doc/xsl/{table_body_function_support_matrix.xml.xls => table_body_function_support_matrix.xml.xsl} (99%)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list