Project

Profile

Help

Bug #3027

closed

Duplicated starting element in trace

Added by Ben Guillon about 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2016-11-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:

Description

When tracing XSLT i find in the trace file a duplicated root element :

What I do:

saxon9-xslt2 -T -traceout:trace.xml -s:t2.xml -xsl:cover-test.xsl

In the trace.xml file:

<xsl:template match="p[child::u]" line="34" column="35" module="cover-test.xsl">

....

Attached the data to reproduce the bug. Note these data are also for the other next bugs I'll fill.


Files

trace.xml (4.12 KB) trace.xml The output trace file with duplicated root tag Ben Guillon, 2016-11-13 19:52
runtest (78 Bytes) runtest To reproduce the case Ben Guillon, 2016-11-13 19:52
t2.xml (100 Bytes) t2.xml XML test file Ben Guillon, 2016-11-13 19:53
cover-test.xsl (1.35 KB) cover-test.xsl XSL test file Ben Guillon, 2016-11-13 19:53
Actions #1

Updated by Michael Kay about 8 years ago

  • Category set to Diagnostics
  • Status changed from New to In Progress
  • Assignee set to Michael Kay
  • Priority changed from Low to Normal

Thanks for reporting it.

It seems that two of the four overloads of Xslt30Transformer.applyTemplates() are calling initializeController() after calling prime(), which is unnecessary because prime() has already called initializeController().

Actions #2

Updated by Michael Kay about 8 years ago

  • Status changed from In Progress to Resolved
  • Applies to branch 9.8 added
  • Fix Committed on Branch 9.7, 9.8 added

Removed the excess calls on initializeController().

Actions #3

Updated by O'Neil Delpratt about 8 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100
  • Fixed in Maintenance Release 9.7.0.12 added

Bug fix applied in the Saxon 9.7.0.12 maintenance release.

Actions #4

Updated by O'Neil Delpratt over 7 years ago

  • Applies to branch deleted (9.8)
  • Fix Committed on Branch trunk added
  • Fix Committed on Branch deleted (9.8)

Please register to edit this issue

Also available in: Atom PDF