]> granicus.if.org Git - postgis/commitdiff
Put in What is new in 2.0 section to trap new 2.0 enhancements
authorRegina Obe <lr@pcorp.us>
Thu, 25 Feb 2010 14:23:29 +0000 (14:23 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 25 Feb 2010 14:23:29 +0000 (14:23 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5342 b70326c6-7e19-0410-871a-916f4a2858ee

doc/xsl/postgis_aggs_mm.xml.xsl

index e566440106f4c6f2f583a7100f7fb40cf3a753bd..9efe0f809232fbe9fd2af70bd9591835576359de 100644 (file)
 \r
                <sect1 id="NewFunctions">\r
                        <title>New PostGIS Functions</title>\r
+                       <sect2 id="NewFunctions_2_0">\r
+                               <title>PostGIS Functions new, behavior changed, or enhanced in 2.0</title>\r
+                               <para>The functions given below are PostGIS functions that were introduced or enhanced in 2.0 releases.</para>\r
+                               <itemizedlist>\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
+                                               <xsl:sort select="@id"/>\r
+                                               <xsl:variable name='comment'>\r
+                                                       <xsl:value-of select="normalize-space(translate(translate(refnamediv/refpurpose,'&#x0d;&#x0a;', ' '), '&#09;', ' '))"/>\r
+                                               </xsl:variable>\r
+                                               <xsl:variable name="refid">\r
+                                                       <xsl:value-of select="@id" />\r
+                                               </xsl:variable>\r
+                                               \r
+                                               <xsl:variable name="refname">\r
+                                                       <xsl:value-of select="refnamediv/refname" />\r
+                                               </xsl:variable>\r
+\r
+\r
+                               <!-- For each section if there is note about availability in this version -->\r
+                                                       <xsl:for-each select="refsection">\r
+                                                               <xsl:for-each select="para">\r
+                                                                       <xsl:choose>\r
+                                                                               <xsl:when test="contains(.,'Availability: 2.0')">\r
+                                                                                       <listitem><link linkend="{$refid}"><xsl:value-of select="$refname" /></link> - <xsl:value-of select="." /><xsl:text> </xsl:text> <xsl:value-of select="$comment" /> </listitem>\r
+                                                                               </xsl:when>\r
+                                                                       </xsl:choose>\r
+                                                               </xsl:for-each>\r
+                                                       </xsl:for-each>\r
+                                       </xsl:for-each>\r
+                               </itemizedlist>\r
+                       </sect2>\r
                        <sect2 id="NewFunctions_1_5">\r
                                <title>PostGIS Functions new, behavior changed, or enhanced in 1.5</title>\r
-                               <para>The functions given below are PostGIS functions that were introduced or enhanced in this major release.</para>\r
+                               <para>The functions given below are PostGIS functions that were introduced or enhanced in this minor release.</para>\r
                                <itemizedlist>\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