Project

Profile

Help

Maintenance. Planio will be undergoing a scheduled maintenance this weekend. Between Saturday, July 24 at 9:00 UTC and Sunday, July 25, 22:00 UTC your account might observe occasional downtimes which may last up to several minutes in some cases.

Revision 1ac7b55e

Added by Michael Kay about 1 year ago

Fix bug #4576

View differences:

latest10/hej/net/sf/saxon/Controller.java
583 583
            }
584 584
            if (contextItem instanceof NodeInfo) {
585 585
                // In XSLT, apply strip-space and strip-type-annotations options
586
                contextItem = prepareInputTree((NodeInfo) contextItem);
586
                NodeInfo node = (NodeInfo) contextItem;
587
                contextItem = prepareInputTree(node);
588
                if (node.getNodeKind() == Type.DOCUMENT && node.getSystemId() != null) {
589
                    getDocumentPool().add(node.getTreeInfo(), node.getSystemId());
590
                }
587 591
            }
588 592
        }
589
        if (globalContextItem instanceof NodeInfo) {
590
            NodeInfo startNode = (NodeInfo) globalContextItem;
593
        if (contextItem instanceof NodeInfo) {
594
            NodeInfo startNode = (NodeInfo) contextItem;
591 595
            if (startNode.getConfiguration() == null) {
592 596
                // must be a non-standard document implementation
593 597
                throw new XPathException("The supplied source document must be associated with a Configuration");

Also available in: Unified diff