[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0rc1-142-g9114db6

git at osgeo.org git at osgeo.org
Thu Apr 15 21:39:32 PDT 2021


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  9114db6bf3fdbc2b8050460cf1eaca2c68f8b321 (commit)
      from  49e381b6b5fb76770ff30af2fedfec766ececd11 (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 9114db6bf3fdbc2b8050460cf1eaca2c68f8b321
Author: Regina Obe <lr at pcorp.us>
Date:   Fri Apr 16 00:39:24 2021 -0400

    Add a What's new in 3.2 section

diff --git a/doc/xsl/postgis_aggs_mm.xml.xsl b/doc/xsl/postgis_aggs_mm.xml.xsl
index 150dbc9..27273ee 100644
--- a/doc/xsl/postgis_aggs_mm.xml.xsl
+++ b/doc/xsl/postgis_aggs_mm.xml.xsl
@@ -1,9 +1,11 @@
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <!-- ********************************************************************
 	 ********************************************************************
-	 Copyright 2010, Regina Obe
+	 Copyright 2010-2021, Regina Obe
 	 License: BSD
-	 Purpose: This is an xsl transform that generates index listing of aggregate functions and mm /sql compliant functions xml section from reference_new.xml to then
+	 Purpose: This is an xsl transform that generates file postgis_aggs_mm.xml which
+	 includes index listing of aggregate functions and mm /sql compliant functions as well as what is new in each release
+	 It uses xml reference sections from reference.xml to then
 	 be processed by doc book
 	 ******************************************************************** -->
 	<xsl:output method="xml" indent="yes" encoding="utf-8" />
@@ -483,6 +485,106 @@
 
 	   <sect1 id="NewFunctions">
 			<title>New, Enhanced or changed PostGIS Functions</title>
+			<sect2 id="NewFunctions_3_2">
+				<title>PostGIS Functions new or enhanced in 3.2</title>
+				<para>The functions given below are PostGIS functions that were added or enhanced.</para>
+        <xsl:if test="//para[contains(text(),'Availability: 3.2')]">
+				<para>Functions new in PostGIS 3.2</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='//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(.,'Availability: 3.2')">
+											<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="//para[contains(text(),'Enhanced: 3.2')]">
+				<para>Functions enhanced in PostGIS 3.2</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='//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(.,'Enhanced: 3.2')">
+											<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>
+
+			<para>Functions changed in PostGIS 3.2</para>
+				<xsl:if test="//para[contains(text(),'Changed: 3.2')]">
+				<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='//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(.,'Changed: 3.2')">
+											<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>
+
 			<sect2 id="NewFunctions_3_1">
 				<title>PostGIS Functions new or enhanced in 3.1</title>
 				<para>The functions given below are PostGIS functions that were added or enhanced.</para>
@@ -583,7 +685,7 @@
 				</itemizedlist>
 				</xsl:if>
 			</sect2>
-						
+
 			<sect2 id="NewFunctions_3_0">
 				<title>PostGIS Functions new or enhanced in 3.0</title>
 				<para>The functions given below are PostGIS functions that were added or enhanced.</para>

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

Summary of changes:
 doc/xsl/postgis_aggs_mm.xml.xsl | 108 ++++++++++++++++++++++++++++++++++++++--
 1 file changed, 105 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list