File: postgis_reference.xml.xsl

package info (click to toggle)
postgis 3.3.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 87,748 kB
  • sloc: ansic: 158,671; sql: 91,546; xml: 54,004; cpp: 12,339; sh: 5,187; perl: 5,100; makefile: 3,085; python: 1,205; yacc: 447; lex: 151; javascript: 6
file content (43 lines) | stat: -rw-r--r-- 1,502 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- ********************************************************************
	 ********************************************************************
	 Copyright 2010, Regina Obe
	 License: BSD
	 Purpose: This is an xsl transform that concatenates 
	      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:template match="*">
	<xsl:copy>
	<xsl:copy-of select="@*"/>
	<xsl:apply-templates/>
	</xsl:copy>
	</xsl:template>
	
	<!-- just grab link and title -->
	 <xsl:template match="ulink">
	 	<xsl:value-of select="@url" /><xsl:text> </xsl:text><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>