fn:transform(): source-node and global context item
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 3 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.
Please register to edit this issue