Bug #3365
closed
Context is lost if a trace listener is added
Applies to branch:
9.7, 9.8
Fix Committed on Branch:
9.7, 9.8
Fixed in Maintenance Release:
Description
[copied from #3364 which raised 2 separate issues]
I’ve been trying the latest Saxon 9.8.0.2 .Net Nuget and I’ve come across a couple of bugs. The attached files re-produce the errors.
The first one [this bug] is an issue that causes the context to be lost if a trace listener is added.
The second [see bug 3364] is a validation issue that occurs when the sample xsl file is imported multiple times (previously this raised a warning and then ran OK, now it causes an internal error).
Both these tests worked on older versions of the saxon libs.
To see the issues build the Visual Studio solution in the zip attached to bug 3364 and then run the RunTests.bat (some comments in the batch file explain the errors).
- Category set to .NET API
- Assignee changed from Michael Kay to O'Neil Delpratt
- Priority changed from Low to Normal
- Status changed from New to In Progress
- Applies to branch 9.8 added
I have managed to reproduce the error of the context being lost when the trace listener is added. This happens only on .NET. Still investigating
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
- Applies to branch 9.7 added
- Fix Committed on Branch 9.7, 9.8 added
The issue is we are not setting the initial context item early enough on the controller, therefore, the TraceExpression does not know about the context node. I have added some logic in the InitialContextNode property on the XsltTransformer to ensure the controller know about the initial context item.
Bug fixed and committed to subversion.
- Fixed in Maintenance Release 9.8.0.4 added
Bug fix applied in the Saxon 9.8.0.4 maintenance release. Leaving bug marked as resolved until applied in the next 9.7 maintenance release
- Fixed in Maintenance Release 9.8.0.5 added
- Fixed in Maintenance Release deleted (
9.8.0.4)
Bug fix applied in the Saxon 9.8.0.5 maintenance release. Leave open until the bug fix is applied in 9.7 branch.
- Status changed from Resolved to Closed
Bug fix applied in the Saxon 9.8.0.5 maintenance release. Leave open until fix applied in the 9.7 release
- Status changed from Closed to Resolved
Bug fix applied in the Saxon 9.8.0.5 maintenance release. Leave open until fix applied in the 9.7 release
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.7.0.21 added
Bug fix applied in the Saxon 9.7.0.21 maintenance release.
Please register to edit this issue
Also available in: Atom
PDF