]> granicus.if.org Git - postgis/commitdiff
revise script hallie uses so strips out tags such as ulink, xref, command leaving...
authorRegina Obe <lr@pcorp.us>
Sat, 27 Oct 2012 05:31:55 +0000 (05:31 +0000)
committerRegina Obe <lr@pcorp.us>
Sat, 27 Oct 2012 05:31:55 +0000 (05:31 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10574 b70326c6-7e19-0410-871a-916f4a2858ee

doc/xsl/postgis_reference.xml.xsl

index 4845b460ba3c33c797c22ae00b9e300035260030..5f98aecfce83867d6f4661184c3f3b7d4b9a106b 100644 (file)
@@ -5,7 +5,8 @@
         Copyright 2010, Regina Obe
         License: BSD
         Purpose: This is an xsl transform that concatenates 
-             all the sections defined in postgis.xml
+             all the sections defined in postgis.xml and strips all tags
+             for suitable import by expert bot 
         To use: xsltproc -o postgis_full.xml postgis_reference.xml.xsl postgis.xml
         ******************************************************************** -->
        <xsl:output method="xml" indent="yes" encoding="utf-8" />
        <xsl:apply-templates/>
        </xsl:copy>
        </xsl:template>
+       
+       <!-- just grab link and title -->
+        <xsl:template match="ulink">
+               <xsl:value-of select="@url" /> <xsl:value-of select="." />
+        </xsl:template>
+
+       <!--just grab name of file --> 
+        <xsl:template match="filename">
+               <xsl:value-of select="." />
+        </xsl:template>
+        
+        <!--strip varname tag and leave just the name --> 
+        <xsl:template match="varname">
+               <xsl:value-of select="." />
+        </xsl:template>
+        
+        <!--strip xref tag and just leave reference section --> 
+        <xsl:template match="xref">
+               <xsl:value-of select="@linkend" />
+        </xsl:template>
+        
+        <!--strip comman tag and just leave inner body --> 
+        <xsl:template match="command">
+               command: <xsl:value-of select="." />
+        </xsl:template>
 </xsl:stylesheet>