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>Gallium Trace</title>
32 <link rel="stylesheet" type="text/css" href="trace.css"/>
36 <xsl:apply-templates/>
42 <xsl:template match="call">
45 <xsl:value-of select="@class"/>
46 <xsl:text>::</xsl:text>
47 <xsl:value-of select="@method"/>
49 <xsl:text>(</xsl:text>
51 <xsl:apply-templates select="arg"/>
53 <xsl:text>)</xsl:text>
54 <xsl:apply-templates select="ret"/>
58 <xsl:template match="arg|member">
60 <xsl:apply-templates select="@name"/>
61 <xsl:text> = </xsl:text>
62 <xsl:apply-templates />
63 <xsl:if test="position() != last()">
64 <xsl:text>, </xsl:text>
69 <xsl:template match="ret">
70 <xsl:text> = </xsl:text>
71 <xsl:apply-templates />
74 <xsl:template match="bool|int|uint">
76 <xsl:value-of select="text()"/>
80 <xsl:template match="string">
82 <xsl:text>"</xsl:text>
83 <xsl:value-of select="text()"/>
84 <xsl:text>"</xsl:text>
88 <xsl:template match="array|struct">
89 <xsl:text>{</xsl:text>
90 <xsl:apply-templates />
91 <xsl:text>}</xsl:text>
94 <xsl:template match="elem">
96 <xsl:apply-templates />
97 <xsl:if test="position() != last()">
98 <xsl:text>, </xsl:text>
103 <xsl:template match="ptr">
105 <xsl:value-of select="text()"/>
109 <xsl:template match="@name">
111 <xsl:value-of select="."/>