Examples of selectParentChild()


Examples of org.exist.dom.NodeSet.selectParentChild()

                    case Constants.DESCENDANT_SELF_AXIS:
                        result = nodeSet.selectAncestorDescendant(contextSequence.toNodeSet(), NodeSet.DESCENDANT,
                            true, contextId, true);
                        break;
                    case Constants.CHILD_AXIS:
                        result = nodeSet.selectParentChild(contextSequence.toNodeSet(), NodeSet.DESCENDANT, contextId);
                        break;
                    default:
                        throw new XPathException(this, "Wrong axis specified");
                }
            } else {
View Full Code Here

Examples of org.exist.dom.NodeSet.selectParentChild()

                    final NodeSet contextSet = seq.toNodeSet();
                    final Sequence outerSequence = contextSet.getParents(getExpressionId());
                    for (final SequenceIterator i = outerSequence.iterate(); i.hasNext(); ) {
                        final NodeValue node = (NodeValue) i.nextItem();
                        final Sequence newContextSeq =
                            contextSet.selectParentChild((NodeSet) node, NodeSet.DESCENDANT,
                            getExpressionId());
                        final Sequence temp = processPredicate(outerSequence, newContextSeq);
                        result.addAll(temp);
                    }
                } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.