2011-03-19 20:14:07 +00:00
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
|
|
<xsl:output method="text" standalone="yes" />
|
|
|
|
<xsl:template match="/">
|
|
|
|
<xsl:apply-templates select="//sectiondef[@kind='public-func']/memberdef[@kind='function']" />
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="memberdef">
|
|
|
|
<!-- xsl:text>
=== </xsl:text><xsl:value-of select="definition"/> <xsl:value-of select="argsstring"/><xsl:text> ===
</xsl:text -->
|
2011-04-01 04:47:01 +00:00
|
|
|
<xsl:text>
=== </xsl:text><xsl:value-of select="name"/><xsl:text> ===

</xsl:text>
|
2011-03-19 20:14:07 +00:00
|
|
|
<xsl:apply-templates select="briefdescription"/>
|
|
|
|
<xsl:if test="count(detaileddescription/para[not(./*)]) < 1"><xsl:text>
</xsl:text></xsl:if>
|
|
|
|
<xsl:apply-templates select="detaileddescription"/>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="briefdescription/para">''<xsl:value-of select="."/>'' </xsl:template>
|
|
|
|
<xsl:template match="detaileddescription/para/parameterlist">
|
|
|
|
Parameters:
|
2011-04-01 04:47:01 +00:00
|
|
|
|
2011-03-19 20:14:07 +00:00
|
|
|
<xsl:apply-templates select="parameteritem"/>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="parameteritem">* ''<xsl:value-of select="parameternamelist/parametername"/>'': <xsl:value-of select="parameterdescription/para"/><xsl:text>
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="detaileddescription/para[not(./*)]">
|
|
|
|
<xsl:value-of select="."/><xsl:text>
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="detaileddescription/para/simplesect[@kind='return']/para">
|
|
|
|
Returns:
|
2011-04-01 04:47:01 +00:00
|
|
|
|
2011-03-19 20:14:07 +00:00
|
|
|
* <xsl:value-of select="."/><xsl:text>
</xsl:text>
|
|
|
|
</xsl:template>
|
2011-04-01 04:47:01 +00:00
|
|
|
<xsl:template match="detaileddescription/para/simplesect[@kind='warning']/para">
|
|
|
|
Warning: <xsl:value-of select="."/><xsl:text>
</xsl:text>
|
2011-03-19 20:14:07 +00:00
|
|
|
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="detaileddescription/para/programlisting">
|
|
|
|
<xsl:text>
<pre>
</xsl:text><xsl:apply-templates select="codeline"/><xsl:text></pre>
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="codeline">
|
|
|
|
<xsl:value-of select="."/><xsl:text>
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="text()"/>
|
|
|
|
</xsl:stylesheet>
|
|
|
|
|