Bug #4768
closedfn:transform(): source-node and global context item
100%
Description
The specification of fn:transform() states:
When source-node is supplied then the global-context-item (the context item for evaluating global variables) is the root of the tree containing the supplied node.
Test case fn-transform-82b in QT3 is failing; it appears that the global context item is set to the supplied value of source-node
, not to the root of the containing tree.
Updated by Michael Kay about 4 years ago
Test fn-transform-82e is failing for the same reason (though it's not clear we should be running this test since it requires an XSLT 2.0 processor).
Updated by Michael Kay about 4 years ago
For transform-82e I think the results we produce should be allowed.
The test requests xslt-version:2.0, but the spec says:
If a processor that implements the requested XSLT version is available, then it is used.
Otherwise, if a processor that implements a version later than the requested version is available, then it is used.
So we're allowed to use an XSLT 3.0 processor; and if we do, then the global-context-item option will not be ignored as the test appears to expect.
However, if we make this change to the test, then Saxon/J 10.2 fails it.
Updated by Debbie Lockett over 3 years ago
- Status changed from New to Resolved
- Fix Committed on JS Branch 2 added
Marking resolved, as the tests are no longer failing.
Updated by Norm Tovey-Walsh over 3 years ago
- Status changed from Resolved to Closed
This issue has been resolved in the Saxon 2.2 maintenance release.
Updated by Debbie Lockett over 3 years ago
- % Done changed from 0 to 100
- Fixed in JS Release set to Saxon-JS 2.2
Please register to edit this issue
Also available in: Atom PDF Tracking page