File: extractfunctions.xslt

package info (click to toggle)
libspe2 2.2.80-95-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 940 kB
  • ctags: 1,214
  • sloc: ansic: 9,316; makefile: 551; ada: 448; sh: 24
file content (31 lines) | stat: -rw-r--r-- 739 bytes parent folder | download
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
<!-- 
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="text" version="1.0" indent="yes" standalone="yes" />

<xsl:template match="/">
	<xsl:apply-templates select="//sectiondef"/>
</xsl:template>

<xsl:template match="sectiondef">
	<xsl:if test="@kind='func'">
		<xsl:text>
</xsl:text>
		<xsl:value-of select="../compoundname/text()"/> 
  		<xsl:apply-templates/>
	</xsl:if>
</xsl:template>

<xsl:template match="memberdef">
	<xsl:if test="@kind='function'">
  		<xsl:apply-templates select="definition" />
  	     	<xsl:apply-templates select="argsstring" />
		<xsl:text>;
</xsl:text>
	</xsl:if>
</xsl:template>

<xsl:template match="compoundname | includes "/>

</xsl:stylesheet>