5 Copyright 2008-2009 VMware, Inc.
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28 <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
30 <xsl:output method="html" />
32 <xsl:strip-space elements="*" />
34 <xsl:template match="/trace">
37 <title>D3D Trace</title>
41 font-family: verdana, sans-serif;
115 <xsl:apply-templates/>
121 <xsl:template match="call">
124 <xsl:value-of select="@name"/>
126 <xsl:text>(</xsl:text>
128 <xsl:apply-templates select="arg"/>
130 <xsl:text>)</xsl:text>
131 <xsl:apply-templates select="ret"/>
135 <xsl:template match="arg|elem">
137 <xsl:apply-templates select="@type"/>
138 <xsl:apply-templates select="@name"/>
139 <xsl:text> = </xsl:text>
140 <xsl:call-template name="compound"/>
141 <xsl:if test="position() != last()">
142 <xsl:text>, </xsl:text>
147 <xsl:template match="@type">
148 <xsl:attribute name="title">
149 <xsl:value-of select="."/>
153 <xsl:template match="@name">
155 <xsl:value-of select="."/>
159 <xsl:template match="ret">
160 <xsl:text> = </xsl:text>
161 <xsl:call-template name="compound"/>
164 <xsl:template match="ref">
166 <xsl:when test="elem">
168 <xsl:apply-templates select="@addr"/>
170 <xsl:call-template name="compound"/>
175 <xsl:text>&</xsl:text>
176 <xsl:apply-templates />
179 <xsl:apply-templates select="@addr"/>
184 <xsl:template match="@addr">
186 <xsl:value-of select="."/>
190 <xsl:template match="text()">
192 <xsl:call-template name="break">
193 <xsl:with-param name="text" select="."/>
198 <xsl:template name="compound">
200 <xsl:when test="elem">
201 <xsl:text>{</xsl:text>
203 <xsl:apply-templates />
205 <xsl:text>}</xsl:text>
208 <xsl:apply-templates />
213 <xsl:template name="break">
214 <xsl:param name="text" select="."/>
216 <xsl:when test="contains($text, '
')">
217 <xsl:value-of select="substring-before($text, '
')"/>
219 <xsl:call-template name="break">
220 <xsl:with-param name="text" select="substring-after($text, '
')"/>
224 <xsl:value-of select="$text"/>