Project

Profile

Help

Bug #3432

closed

Error running fn:transform() when TimingTraceListener is set

Added by Mark Dunn about 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XPath conformance
Sprint/Milestone:
-
Start date:
2017-09-07
Due date:
% Done:

100%

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

Description

When running the attached stylesheet test-XPDY0002-error.xsl I get the following error:

Error in xsl:if/@test on line 18 column 31 of test-fn-transform.xsl:
XPDY0002: Finding root of tree: the context item is absent

But ONLY if TimingTraceListener is set.

The stylesheet uses a package, which in turn uses fn:transform to run a stylesheet test-fn-transform.xsl

test-fn-transform.xsl has a root-level variable set using an XPath from the document root.

Among the set of files attached are a batch file and an Ant build file.

Removing -TP:test-xslt-trace-profile.html from the batch file also removes the error

Removing

and from the Ant XSLT task also removes the error.

I'm using Saxon HE 9.8.0.4


Files

test-fn-transform.zip (3.98 KB) test-fn-transform.zip Mark Dunn, 2017-09-07 16:27

Please register to edit this issue

Also available in: Atom PDF