Project

Profile

Help

Revision 7559a5ce

Added by Michael Kay over 1 year ago

Fix bug #4769

View differences:

latest10/hej/net/sf/saxon/functions/TransformFn.java
680 680
                    break;
681 681
                }
682 682
                case "global-context-item":
683
                    if (useXslt30Processor) {
684
                        if (!allowTypedNodes && head instanceof NodeInfo && ((NodeInfo) head).getTreeInfo().isTyped()) {
685
                            throw new XPathException("Schema-validated nodes cannot be passed to fn:transform() when it runs under a different Saxon Configuration", "FOXT0002");
686
                        }
687
                        globalContextItem = (XdmItem) XdmValue.wrap(head);
683
                    if (!allowTypedNodes && head instanceof NodeInfo && ((NodeInfo) head).getTreeInfo().isTyped()) {
684
                        throw new XPathException("Schema-validated nodes cannot be passed to fn:transform() when it runs under a different Saxon Configuration", "FOXT0002");
688 685
                    }
686
                    globalContextItem = (XdmItem) XdmValue.wrap(head);
689 687
                    break;
690 688
                case "template-params": {
691 689
                    MapItem params = (MapItem) head;

Also available in: Unified diff