]> git.cworth.org Git - apitrace/blob - d3dtrace-txt.xsl
Dump flags.
[apitrace] / d3dtrace-txt.xsl
1 <?xml version="1.0"?>
2
3 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5         <xsl:output method="text" />
6
7         <xsl:strip-space elements="*" />
8
9         <xsl:template match="/trace">
10                 <xsl:apply-templates/>
11         </xsl:template>
12
13         <xsl:template match="call">
14                 <xsl:value-of select="@name"/>
15                 <xsl:text>(</xsl:text>
16                 <xsl:apply-templates select="param"/>
17                 <xsl:text>)</xsl:text>
18                 <xsl:apply-templates select="return"/>
19                 <xsl:text>&#10;</xsl:text>
20         </xsl:template>
21
22         <xsl:template match="param">
23                 <xsl:value-of select="@name"/>
24                 <xsl:text> = </xsl:text>
25                 <xsl:value-of select="."/>
26                 <xsl:if test="position() != last()">
27                         <xsl:text>, </xsl:text>
28                 </xsl:if>
29         </xsl:template>
30
31         <xsl:template match="return">
32                 <xsl:text> = </xsl:text>
33                 <xsl:value-of select="."/>
34         </xsl:template>
35
36 </xsl:transform>