5 Copyright 2008 Tungsten Graphics, Inc.
7 This program is free software: you can redistribute it and/or modify it
8 under the terms of the GNU Lesser General Public License as published
9 by the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
17 You should have received a copy of the GNU Lesser General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
24 <xsl:output method="html" />
26 <xsl:strip-space elements="*" />
28 <xsl:template match="/trace">
31 <title>D3D Trace</title>
32 <link rel="stylesheet" type="text/css" href="apitrace.css"/>
36 <xsl:apply-templates/>
42 <xsl:template match="call">
45 <xsl:value-of select="@name"/>
47 <xsl:text>(</xsl:text>
49 <xsl:apply-templates select="arg"/>
51 <xsl:text>)</xsl:text>
52 <xsl:apply-templates select="ret"/>
56 <xsl:template match="arg|elem">
58 <xsl:apply-templates select="@type"/>
59 <xsl:apply-templates select="@name"/>
60 <xsl:text> = </xsl:text>
61 <xsl:call-template name="compound"/>
62 <xsl:if test="position() != last()">
63 <xsl:text>, </xsl:text>
68 <xsl:template match="@type">
69 <xsl:attribute name="title">
70 <xsl:value-of select="."/>
74 <xsl:template match="@name">
76 <xsl:value-of select="."/>
80 <xsl:template match="ret">
81 <xsl:text> = </xsl:text>
82 <xsl:call-template name="compound"/>
85 <xsl:template match="ref">
87 <xsl:when test="elem">
89 <xsl:apply-templates select="@addr"/>
91 <xsl:call-template name="compound"/>
96 <xsl:text>&</xsl:text>
97 <xsl:apply-templates />
100 <xsl:apply-templates select="@addr"/>
105 <xsl:template match="@addr">
107 <xsl:value-of select="."/>
111 <xsl:template match="text()">
113 <xsl:value-of select="."/>
117 <xsl:template name="compound">
119 <xsl:when test="elem">
120 <xsl:text>{</xsl:text>
122 <xsl:apply-templates />
124 <xsl:text>}</xsl:text>
127 <xsl:apply-templates />