5 Copyright 2009 VMware, Inc.
6 Copyright 2008 Tungsten Graphics, Inc.
8 This program is free software: you can redistribute it and/or modify it
9 under the terms of the GNU Lesser General Public License as published
10 by the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
23 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
25 <xsl:output method="html" />
27 <xsl:strip-space elements="*" />
29 <xsl:template match="/trace">
32 <title>D3D Trace</title>
36 font-family: verdana, sans-serif;
110 <xsl:apply-templates/>
116 <xsl:template match="call">
119 <xsl:value-of select="@name"/>
121 <xsl:text>(</xsl:text>
123 <xsl:apply-templates select="arg"/>
125 <xsl:text>)</xsl:text>
126 <xsl:apply-templates select="ret"/>
130 <xsl:template match="arg|elem">
132 <xsl:apply-templates select="@type"/>
133 <xsl:apply-templates select="@name"/>
134 <xsl:text> = </xsl:text>
135 <xsl:call-template name="compound"/>
136 <xsl:if test="position() != last()">
137 <xsl:text>, </xsl:text>
142 <xsl:template match="@type">
143 <xsl:attribute name="title">
144 <xsl:value-of select="."/>
148 <xsl:template match="@name">
150 <xsl:value-of select="."/>
154 <xsl:template match="ret">
155 <xsl:text> = </xsl:text>
156 <xsl:call-template name="compound"/>
159 <xsl:template match="ref">
161 <xsl:when test="elem">
163 <xsl:apply-templates select="@addr"/>
165 <xsl:call-template name="compound"/>
170 <xsl:text>&</xsl:text>
171 <xsl:apply-templates />
174 <xsl:apply-templates select="@addr"/>
179 <xsl:template match="@addr">
181 <xsl:value-of select="."/>
185 <xsl:template match="text()">
187 <xsl:value-of select="."/>
191 <xsl:template name="compound">
193 <xsl:when test="elem">
194 <xsl:text>{</xsl:text>
196 <xsl:apply-templates />
198 <xsl:text>}</xsl:text>
201 <xsl:apply-templates />