Project

Profile

Help

Changes to TraceListener

Added by Anonymous over 17 years ago

Legacy ID: #4279607 Legacy Poster: gmcgoldrick (gmcgoldrick)

The XSLT TraceListener seems to report a lot less information in 8.8 and 8.9 - see below for the same transform carried out with 8.7.3, 8.8 and 8.9 C:\top\saxon\saxon873>java -jar saxon8.jar -t -T poem.xml poem.xsl > poem.html Saxon 8.7.3J from Saxonica Java version 1.5.0_05 Stylesheet compilation time: 640 milliseconds Processing file:/C:/top/saxon/saxon873/poem.xml Building tree for file:/C:/top/saxon/saxon873/poem.xml using class net.sf.saxon. tinytree.TinyBuilder Tree built in 0 milliseconds Tree size: 59 nodes, 434 characters, 0 attributes <trace saxon-version="8.7.3" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <source node="/poem" line="3" file="poem.xml"> <xsl:template match="poem" line="8" module="poem.xsl"> <LRE name="html" line="11" module="poem.xsl"> <LRE name="head" line="12" module="poem.xsl"> <LRE name="title" line="13" module="poem.xsl"> <xsl:value-of select="title" line="13" module="poem.xsl"> </xsl:value-of> </LRE> </LRE> <LRE name="body" line="15" module="poem.xsl"> <xsl:apply-templates select="title" line="16" module="poem.xsl"> <source node="/poem/title[1]" line="6" file="poem.xml"> <xsl:template match="title" line="26" module="poem.xsl"> <LRE name="div" line="27" module="poem.xsl"> <ATTR name="align" line="27" module="poem.xsl"> </ATTR> <LRE name="h1" line="27" module="poem.xsl"> <xsl:value-of select="." line="27" module="poem.xsl"> </xsl:value-of> </LRE> </LRE> </xsl:template> </source><!-- /poem/title[1] --> </xsl:apply-templates> <xsl:apply-templates select="author" line="17" module="poem.xsl"> <source node="/poem/author[1]" line="4" file="poem.xml"> <xsl:template match="author" line="30" module="poem.xsl"> <LRE name="div" line="31" module="poem.xsl"> <ATTR name="align" line="31" module="poem.xsl"> </ATTR> <LRE name="h2" line="31" module="poem.xsl"> <xsl:value-of select="." line="31" module="poem.xsl"> </xsl:value-of> </LRE> </LRE> </xsl:template> </source><!-- /poem/author[1] --> </xsl:apply-templates> <xsl:apply-templates select="stanza" line="18" module="poem.xsl"> <source node="/poem/stanza[1]" line="7" file="poem.xml"> <xsl:template match="stanza" line="34" module="poem.xsl"> <LRE name="p" line="35" module="poem.xsl"> <xsl:apply-templates select="line" line="35" module="poem.xsl"> <source node="/poem/stanza[1]/line[1]" line="8" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[1]/line[1] --> <source node="/poem/stanza[1]/line[2]" line="9" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[1]/line[2] --> <source node="/poem/stanza[1]/line[3]" line="10" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[1]/line[3] --> <source node="/poem/stanza[1]/line[4]" line="11" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[1]/line[4] --> </xsl:apply-templates> </LRE> </xsl:template> </source><!-- /poem/stanza[1] --> <source node="/poem/stanza[2]" line="13" file="poem.xml"> <xsl:template match="stanza" line="34" module="poem.xsl"> <LRE name="p" line="35" module="poem.xsl"> <xsl:apply-templates select="line" line="35" module="poem.xsl"> <source node="/poem/stanza[2]/line[1]" line="14" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[2]/line[1] --> <source node="/poem/stanza[2]/line[2]" line="15" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[2]/line[2] --> <source node="/poem/stanza[2]/line[3]" line="16" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[2]/line[3] --> <source node="/poem/stanza[2]/line[4]" line="17" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[2]/line[4] --> </xsl:apply-templates> </LRE> </xsl:template> </source><!-- /poem/stanza[2] --> <source node="/poem/stanza[3]" line="19" file="poem.xml"> <xsl:template match="stanza" line="34" module="poem.xsl"> <LRE name="p" line="35" module="poem.xsl"> <xsl:apply-templates select="line" line="35" module="poem.xsl"> <source node="/poem/stanza[3]/line[1]" line="20" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[3]/line[1] --> <source node="/poem/stanza[3]/line[2]" line="21" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[3]/line[2] --> <source node="/poem/stanza[3]/line[3]" line="22" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[3]/line[3] --> <source node="/poem/stanza[3]/line[4]" line="23" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> <xsl:if test="position() mod 2 = 0" line="39" module="poem.xsl"> </xsl:if> <xsl:value-of select="." line="40" module="poem.xsl"> </xsl:value-of> <LRE name="br" line="40" module="poem.xsl"> </LRE> </xsl:template> </source><!-- /poem/stanza[3]/line[4] --> </xsl:apply-templates> </LRE> </xsl:template> </source><!-- /poem/stanza[3] --> </xsl:apply-templates> <xsl:apply-templates select="date" line="19" module="poem.xsl"> <source node="/poem/date[1]" line="5" file="poem.xml"> <xsl:template match="date" line="43" module="poem.xsl"> <LRE name="p" line="44" module="poem.xsl"> <LRE name="i" line="44" module="poem.xsl"> <xsl:value-of select="." line="44" module="poem.xsl"> </xsl:value-of> </LRE> </LRE> </xsl:template> </source><!-- /poem/date[1] --> </xsl:apply-templates> </LRE> </LRE> </xsl:template> </source><!-- /poem --> </trace> Execution time: 282 milliseconds Memory used: 781688 NamePool contents: 31 entries in 30 chains. 7 prefixes, 8 URIs C:\top\saxon\saxon88>java -jar saxon8.jar -t -T poem.xml poem.xsl > poem.html Saxon 8.8J from Saxonica Java version 1.5.0_05 Stylesheet compilation time: 484 milliseconds Processing file:/C:/top/saxon/saxon88/poem.xml Building tree for file:/C:/top/saxon/saxon88/poem.xml using class net.sf.saxon.t inytree.TinyBuilder Tree built in 16 milliseconds Tree size: 59 nodes, 434 characters, 0 attributes <trace saxon-version="8.8" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <source node="/poem" line="3" file="poem.xml"> <source node="/poem/title[1]" line="6" file="poem.xml"> </source><!-- /poem/title[1] --> <source node="/poem/author[1]" line="4" file="poem.xml"> </source><!-- /poem/author[1] --> <source node="/poem/stanza[1]" line="7" file="poem.xml"> <source node="/poem/stanza[1]/line[1]" line="8" file="poem.xml"> </source><!-- /poem/stanza[1]/line[1] --> <source node="/poem/stanza[1]/line[2]" line="9" file="poem.xml"> </source><!-- /poem/stanza[1]/line[2] --> <source node="/poem/stanza[1]/line[3]" line="10" file="poem.xml"> </source><!-- /poem/stanza[1]/line[3] --> <source node="/poem/stanza[1]/line[4]" line="11" file="poem.xml"> </source><!-- /poem/stanza[1]/line[4] --> </source><!-- /poem/stanza[1] --> <source node="/poem/stanza[2]" line="13" file="poem.xml"> <source node="/poem/stanza[2]/line[1]" line="14" file="poem.xml"> </source><!-- /poem/stanza[2]/line[1] --> <source node="/poem/stanza[2]/line[2]" line="15" file="poem.xml"> </source><!-- /poem/stanza[2]/line[2] --> <source node="/poem/stanza[2]/line[3]" line="16" file="poem.xml"> </source><!-- /poem/stanza[2]/line[3] --> <source node="/poem/stanza[2]/line[4]" line="17" file="poem.xml"> </source><!-- /poem/stanza[2]/line[4] --> </source><!-- /poem/stanza[2] --> <source node="/poem/stanza[3]" line="19" file="poem.xml"> <source node="/poem/stanza[3]/line[1]" line="20" file="poem.xml"> </source><!-- /poem/stanza[3]/line[1] --> <source node="/poem/stanza[3]/line[2]" line="21" file="poem.xml"> </source><!-- /poem/stanza[3]/line[2] --> <source node="/poem/stanza[3]/line[3]" line="22" file="poem.xml"> </source><!-- /poem/stanza[3]/line[3] --> <source node="/poem/stanza[3]/line[4]" line="23" file="poem.xml"> </source><!-- /poem/stanza[3]/line[4] --> </source><!-- /poem/stanza[3] --> <source node="/poem/date[1]" line="5" file="poem.xml"> </source><!-- /poem/date[1] --> </source><!-- /poem --> </trace> Execution time: 110 milliseconds Memory used: 597760 NamePool contents: 31 entries in 30 chains. 7 prefixes, 8 URIs C:\top\saxon\saxon89>java -jar saxon8.jar -t -T poem.xml poem.xsl > poem.html Saxon 8.9J from Saxonica Java version 1.5.0_05 Stylesheet compilation time: 469 milliseconds Processing file:/C:/top/saxon/saxon89/poem.xml Building tree for file:/C:/top/saxon/saxon89/poem.xml using class net.sf.saxon.t inytree.TinyBuilder Tree built in 0 milliseconds Tree size: 59 nodes, 434 characters, 0 attributes <trace saxon-version="8.9" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <source node="/poem" line="3" file="poem.xml"> <xsl:template match="poem" line="8" module="poem.xsl"> <source node="/poem/title[1]" line="6" file="poem.xml"> <xsl:template match="title" line="26" module="poem.xsl"> <ATTR name="align" line="27" module="poem.xsl"> </ATTR> </xsl:template> </source><!-- /poem/title[1] --> <source node="/poem/author[1]" line="4" file="poem.xml"> <xsl:template match="author" line="30" module="poem.xsl"> <ATTR name="align" line="31" module="poem.xsl"> </ATTR> </xsl:template> </source><!-- /poem/author[1] --> <source node="/poem/stanza[1]" line="7" file="poem.xml"> <xsl:template match="stanza" line="34" module="poem.xsl"> <source node="/poem/stanza[1]/line[1]" line="8" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[1]/line[1] --> <source node="/poem/stanza[1]/line[2]" line="9" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[1]/line[2] --> <source node="/poem/stanza[1]/line[3]" line="10" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[1]/line[3] --> <source node="/poem/stanza[1]/line[4]" line="11" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[1]/line[4] --> </xsl:template> </source><!-- /poem/stanza[1] --> <source node="/poem/stanza[2]" line="13" file="poem.xml"> <xsl:template match="stanza" line="34" module="poem.xsl"> <source node="/poem/stanza[2]/line[1]" line="14" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[2]/line[1] --> <source node="/poem/stanza[2]/line[2]" line="15" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[2]/line[2] --> <source node="/poem/stanza[2]/line[3]" line="16" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[2]/line[3] --> <source node="/poem/stanza[2]/line[4]" line="17" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[2]/line[4] --> </xsl:template> </source><!-- /poem/stanza[2] --> <source node="/poem/stanza[3]" line="19" file="poem.xml"> <xsl:template match="stanza" line="34" module="poem.xsl"> <source node="/poem/stanza[3]/line[1]" line="20" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[3]/line[1] --> <source node="/poem/stanza[3]/line[2]" line="21" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[3]/line[2] --> <source node="/poem/stanza[3]/line[3]" line="22" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[3]/line[3] --> <source node="/poem/stanza[3]/line[4]" line="23" file="poem.xml"> <xsl:template match="line" line="38" module="poem.xsl"> </xsl:template> </source><!-- /poem/stanza[3]/line[4] --> </xsl:template> </source><!-- /poem/stanza[3] --> <source node="/poem/date[1]" line="5" file="poem.xml"> <xsl:template match="date" line="43" module="poem.xsl"> </xsl:template> </source><!-- /poem/date[1] --> </xsl:template> </source><!-- /poem --> </trace> Execution time: 109 milliseconds Memory used: 696368 NamePool contents: 31 entries in 30 chains. 6 prefixes, 7 URIs


Replies (4)

Please register to reply

RE: Changes to TraceListener - Added by Anonymous over 17 years ago

Legacy ID: #4279706 Legacy Poster: Michael Kay (mhkay)

This is a known bug, it is fixed in 8.9.0.3. Sorry about the inconvenience. Michael Kay http://www.saxonica.com/

RE: Changes to TraceListener - Added by Anonymous over 17 years ago

Legacy ID: #4279716 Legacy Poster: gmcgoldrick (gmcgoldrick)

I believe it was 8.9.0.3 I tested? - I downloaded the release yesterday

RE: Changes to TraceListener - Added by Anonymous over 17 years ago

Legacy ID: #4279722 Legacy Poster: Michael Kay (mhkay)

If you were using 8.9.0.3 then you would see <trace saxon-version="8.9.0.3"... not <trace saxon-version="8.9"

RE: Changes to TraceListener - Added by Anonymous over 17 years ago

Legacy ID: #4279749 Legacy Poster: gmcgoldrick (gmcgoldrick)

You are right of course - I had downloaded both 8.9 and 8.9.0.3 but only installed 8.9 Thanks.

    (1-4/4)

    Please register to reply