]> granicus.if.org Git - postgis/commitdiff
hyperlink function names to section in online manual
authorRegina Obe <lr@pcorp.us>
Fri, 6 Apr 2012 12:38:36 +0000 (12:38 +0000)
committerRegina Obe <lr@pcorp.us>
Fri, 6 Apr 2012 12:38:36 +0000 (12:38 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9617 b70326c6-7e19-0410-871a-916f4a2858ee

doc/xsl/postgis_cheatsheet.html.xsl
doc/xsl/raster_cheatsheet.html.xsl
doc/xsl/topology_cheatsheet.html.xsl

index 5a3d77b2030ae22b1e44144b92aa61b03d811fed..ce661b2eca13eebe44a06fa77e211228bad29848 100644 (file)
@@ -14,6 +14,7 @@
        <xsl:variable name='enhanced_tag'>Enhanced: <xsl:value-of select="$postgis_version" /></xsl:variable>\r
        <xsl:variable name='include_examples'>false</xsl:variable>\r
        <xsl:variable name='output_purpose'>true</xsl:variable>\r
+       <xsl:variable name='linkstub'>http://www.postgis.org/documentation/manual-svn/</xsl:variable>\r
 <xsl:template match="/">\r
        <xsl:text><![CDATA[<html><head><title>PostGIS Cheat Sheet</title>\r
        <style type="text/css">\r
@@ -145,7 +146,8 @@ code {font-size: 8pt}
                                <xsl:text><![CDATA[</th></tr>]]></xsl:text>\r
                        <xsl:for-each select="refentry">\r
                                <!-- add row for each function and alternate colors of rows -->\r
-                               <![CDATA[<tr]]> class="<xsl:choose><xsl:when test="position() mod 2 = 0">evenrow</xsl:when><xsl:otherwise>oddrow</xsl:otherwise></xsl:choose>" <![CDATA[><td colspan='2'><span class='func'>]]><xsl:value-of select="refnamediv/refname" /><![CDATA[</span>]]><xsl:if test="contains(.,$new_tag)"><![CDATA[<sup>1</sup> ]]></xsl:if> \r
+                               <!-- , hyperlink to online manual -->\r
+                               <![CDATA[<tr]]> class="<xsl:choose><xsl:when test="position() mod 2 = 0">evenrow</xsl:when><xsl:otherwise>oddrow</xsl:otherwise></xsl:choose>" <![CDATA[><td colspan='2'><span class='func'>]]><xsl:text><![CDATA[<a href="]]></xsl:text><xsl:value-of select="$linkstub" /><xsl:value-of select="@id" />.html<xsl:text><![CDATA[" target="_blank">]]></xsl:text><xsl:value-of select="refnamediv/refname" /><xsl:text><![CDATA[</a>]]></xsl:text><![CDATA[</span>]]><xsl:if test="contains(.,$new_tag)"><![CDATA[<sup>1</sup> ]]></xsl:if> \r
                                <!-- enhanced tag -->\r
                                <xsl:if test="contains(.,$enhanced_tag)"><![CDATA[<sup>2</sup> ]]></xsl:if>\r
                                <xsl:if test="contains(.,'implements the SQL/MM')"><![CDATA[<sup>mm</sup> ]]></xsl:if>\r
index 582b3ec12455f15696817f480f5cc537b1ef1ca8..31d6b256eafca097744bece8fb3c7f0ae08ebb01 100644 (file)
@@ -14,6 +14,7 @@
        <xsl:variable name='enhanced_tag'>Enhanced: <xsl:value-of select="$postgis_version" /></xsl:variable>\r
        <xsl:variable name='include_examples'>false</xsl:variable>\r
        <xsl:variable name='output_purpose'>true</xsl:variable>\r
+       <xsl:variable name='linkstub'>http://www.postgis.org/documentation/manual-svn/</xsl:variable>\r
 <xsl:template match="/">\r
        <xsl:text><![CDATA[<html><head><title>PostGIS Raster Cheat Sheet</title>\r
        <style type="text/css">\r
@@ -121,7 +122,8 @@ code {font-size: 8pt}
                                <xsl:text><![CDATA[</th></tr>]]></xsl:text>\r
                        <xsl:for-each select="refentry">\r
                                <!-- add row for each function and alternate colors of rows -->\r
-                               <![CDATA[<tr]]> class="<xsl:choose><xsl:when test="position() mod 2 = 0">evenrow</xsl:when><xsl:otherwise>oddrow</xsl:otherwise></xsl:choose>" <![CDATA[><td colspan='2'><span class='func'>]]><xsl:value-of select="refnamediv/refname" /><![CDATA[</span>]]><xsl:if test="contains(.,$new_tag)"><![CDATA[<sup>1</sup> ]]></xsl:if> \r
+                               <!-- , hyperlink to online manual -->\r
+                               <![CDATA[<tr]]> class="<xsl:choose><xsl:when test="position() mod 2 = 0">evenrow</xsl:when><xsl:otherwise>oddrow</xsl:otherwise></xsl:choose>" <![CDATA[><td colspan='2'><span class='func'>]]><xsl:text><![CDATA[<a href="]]></xsl:text><xsl:value-of select="$linkstub" /><xsl:value-of select="@id" />.html<xsl:text><![CDATA[" target="_blank">]]></xsl:text><xsl:value-of select="refnamediv/refname" /><xsl:text><![CDATA[</a>]]></xsl:text><![CDATA[</span>]]><xsl:if test="contains(.,$new_tag)"><![CDATA[<sup>1</sup> ]]></xsl:if> \r
                                <!-- enhanced tag -->\r
                                <xsl:if test="contains(.,$enhanced_tag)"><![CDATA[<sup>2</sup> ]]></xsl:if>\r
                                <xsl:if test="contains(.,'implements the SQL/MM')"><![CDATA[<sup>mm</sup> ]]></xsl:if>\r
index b7fd9c21aea175d64b8e9eb45c330beea008ec07..6cd4fdbeaa08a9a0a4f953c7f5318c8065c97af2 100644 (file)
@@ -14,6 +14,7 @@
        <xsl:variable name='enhanced_tag'>Enhanced: <xsl:value-of select="$postgis_version" /></xsl:variable>\r
        <xsl:variable name='include_examples'>false</xsl:variable>\r
        <xsl:variable name='output_purpose'>true</xsl:variable>\r
+       <xsl:variable name='linkstub'>http://www.postgis.org/documentation/manual-svn/</xsl:variable>\r
 <xsl:template match="/">\r
        <xsl:text><![CDATA[<html><head><title>PostGIS Topology Cheat Sheet</title>\r
        <style type="text/css">\r
@@ -105,7 +106,8 @@ h1 {
                                <xsl:text><![CDATA[</th></tr>]]></xsl:text>\r
                        <xsl:for-each select="refentry">\r
                                <!-- add row for each function and alternate colors of rows -->\r
-                               <![CDATA[<tr]]> class="<xsl:choose><xsl:when test="position() mod 2 = 0">evenrow</xsl:when><xsl:otherwise>oddrow</xsl:otherwise></xsl:choose>" <![CDATA[><td colspan='2'><span class='func'>]]><xsl:value-of select="refnamediv/refname" /><![CDATA[</span>]]><xsl:if test="contains(.,$new_tag)"><![CDATA[<sup>1</sup> ]]></xsl:if> \r
+                               <!-- , hyperlink to online manual -->\r
+                               <![CDATA[<tr]]> class="<xsl:choose><xsl:when test="position() mod 2 = 0">evenrow</xsl:when><xsl:otherwise>oddrow</xsl:otherwise></xsl:choose>" <![CDATA[><td colspan='2'><span class='func'>]]><xsl:text><![CDATA[<a href="]]></xsl:text><xsl:value-of select="$linkstub" /><xsl:value-of select="@id" />.html<xsl:text><![CDATA[" target="_blank">]]></xsl:text><xsl:value-of select="refnamediv/refname" /><xsl:text><![CDATA[</a>]]></xsl:text><![CDATA[</span>]]><xsl:if test="contains(.,$new_tag)"><![CDATA[<sup>1</sup> ]]></xsl:if> \r
                                <!-- enhanced tag -->\r
                                <xsl:if test="contains(.,$enhanced_tag)"><![CDATA[<sup>2</sup> ]]></xsl:if>\r
                                <xsl:if test="contains(.,'implements the SQL/MM')"><![CDATA[<sup>mm</sup> ]]></xsl:if>\r