File: common_comments.xsl

package info (click to toggle)
postgis 3.5.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 69,528 kB
  • sloc: ansic: 162,229; sql: 93,970; xml: 53,139; cpp: 12,646; perl: 5,658; sh: 5,369; makefile: 3,435; python: 1,205; yacc: 447; lex: 151; pascal: 58
file content (28 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (4)
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
<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:db="http://docbook.org/ns/docbook"
	exclude-result-prefixes="db"
>

<!--macro to pull out function parameter names so we can provide a pretty arg list prefix for each function.  -->
<xsl:template name="listparams">
	<xsl:param name="func" />
	<xsl:for-each select="$func">
		<xsl:if test="count(db:paramdef/db:parameter) &gt; 0">args: </xsl:if>
		<xsl:for-each select="db:paramdef">
			<xsl:choose>
				<xsl:when test="count(db:parameter) &gt; 0">
					<xsl:call-template name="escapesinglequotes">
						<xsl:with-param name="arg1" select="db:parameter"/>
					</xsl:call-template>
				</xsl:when>
			</xsl:choose>
			<xsl:if test="position()&lt;last()"><xsl:text>, </xsl:text></xsl:if>
		</xsl:for-each>
		<xsl:if test="count(db:paramdef/db:parameter) &gt; 0"> - </xsl:if>
	</xsl:for-each>
</xsl:template>

</xsl:stylesheet>