You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/01/08 21:29:24 UTC
DO NOT REPLY [Bug 5750] New: -
Missing file location information in trace event
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5750>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5750
Missing file location information in trace event
Summary: Missing file location information in trace event
Product: XalanJ2
Version: 2.2.x
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xalan.trace
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: otraub@exceloncorp.com
When using an XSLT stylesheet with some particular combination of match
pattern and mode, the style node passed in a TracerEvent is missing the
appropriate location information (i.e. file URL and line/column numbers). The
stylesheet at the end of this message demonstrates this problem. When run
through the Trace.java sample (with TracerEvents turned on), I get this output:
file:///c:bug.xsl Line #4, Column #25: template match='/'
file:///c:bug.xsl Line #5, Column #46: apply-templates
null Line #0, Column #0: template match='/'
file:///c:bug.xsl Line #0, Column #0: apply-templates
file:///c:bug.xsl Line #8, Column #36: template match='*'
file:///c:bug.xsl Line #9, Column #7: html
file:///c:bug.xsl Line #10, Column #8: h1
As you can see, the third line has missing information.
Here is the stylesheet. It can be run on any XML file:
<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:apply-templates select="." mode="FOO"/>
</xsl:template>
<xsl:template match="*" mode="FOO">
<html>
<h1>Hello</h1>
</html>
</xsl:template>
</xsl:stylesheet>