Mention xml2txt.py instead of d3dtrace-txt.xsl.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 13 Sep 2008 04:49:08 +0000 (13:49 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Sat, 13 Sep 2008 04:49:08 +0000 (13:49 +0900)
README
SConstruct
d3dtrace-txt.xsl [deleted file]

diff --git a/README b/README
index 176d652..f061237 100644 (file)
--- a/README
+++ b/README
@@ -69,6 +69,6 @@ See the scons manpage for more info.
 * Copy d3d8.dll/d3d9.dll, d3dtrace.xsl, d3dtrace.css to the directory with the application you want to trace.
 * Run the application.
 * Open the output XML file with Firefox or Internet Explorer to view the log.
-* For long XML files is better to use the d3dtrace-txt.xsl stylesheet together with a dedicated XSL processor like xsltproc, or msxsl.
+* For long XML files is better to use xml2txt.py script.
 
 
index 9dd3eaf..e70d4f7 100644 (file)
@@ -119,7 +119,7 @@ env.Tool('packaging')
 
 zip = env.Package(
     NAME           = 'd3dtrace',
-    VERSION        = '0.1',
+    VERSION        = '0.2',
     PACKAGEVERSION = 0,
     PACKAGETYPE    = 'zip',
     LICENSE        = 'lgpl',
@@ -133,7 +133,7 @@ zip = env.Package(
         'd3d9.dll',
         'd3dtrace.xsl',
         'd3dtrace.css',
-        'd3dtrace-txt.xsl',
+        'xml2txt.py',
     ],
 )
 
diff --git a/d3dtrace-txt.xsl b/d3dtrace-txt.xsl
deleted file mode 100644 (file)
index e830ece..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0"?>
-
-<!--
-
-Copyright 2008 Tungsten Graphics, Inc.
-
-This program is free software: you can redistribute it and/or modify it
-under the terms of the GNU Lesser General Public License as published
-by the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-!-->
-
-<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
-       <xsl:output method="text" />
-
-       <xsl:strip-space elements="*" />
-
-       <xsl:template match="/trace">
-               <xsl:apply-templates/>
-       </xsl:template>
-
-       <xsl:template match="call">
-               <xsl:value-of select="@name"/>
-               <xsl:text>(</xsl:text>
-               <xsl:apply-templates select="arg"/>
-               <xsl:text>)</xsl:text>
-               <xsl:apply-templates select="ret"/>
-               <xsl:text>&#10;</xsl:text>
-       </xsl:template>
-
-       <xsl:template match="arg|elem">
-               <xsl:value-of select="@name"/>
-               <xsl:text> = </xsl:text>
-               <xsl:call-template name="compound"/>
-               <xsl:if test="position() != last()">
-                       <xsl:text>, </xsl:text>
-               </xsl:if>
-       </xsl:template>
-
-       <xsl:template match="ret">
-               <xsl:text> = </xsl:text>
-               <xsl:call-template name="compound"/>
-       </xsl:template>
-
-       <xsl:template match="ref">
-               <xsl:choose>
-                       <xsl:when test="*">
-                               <xsl:text>&amp;</xsl:text>
-                               <xsl:call-template name="compound"/>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <xsl:value-of select="@addr"/>
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
-
-       <xsl:template name="compound">
-               <xsl:choose>
-                       <xsl:when test="elem">
-                               <xsl:text>{</xsl:text>
-                               <xsl:apply-templates />
-                               <xsl:text>}</xsl:text>
-                       </xsl:when>
-                       <xsl:otherwise>
-                               <xsl:apply-templates />
-                       </xsl:otherwise>
-               </xsl:choose>
-       </xsl:template>
-</xsl:transform>