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) > 0">args: </xsl:if>
<xsl:for-each select="db:paramdef">
<xsl:choose>
<xsl:when test="count(db:parameter) > 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()<last()"><xsl:text>, </xsl:text></xsl:if>
</xsl:for-each>
<xsl:if test="count(db:paramdef/db:parameter) > 0"> - </xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
|