摘要 |
A method may include deriving by a computing device, from an initial representation that describes a node set of an XML document, a derived representation of the node set, the initial representation including an ordered sequence of set manipulations of the XML document, the derived representation including: a first set of nodes such that all nodes in the node set are included in or descendants of a node in the first set of nodes, a second set of nodes such that no nodes in the node set are included in or descendants of a node in the second set of nodes, and a set of node tests that characterize the node set, to be applied to those nodes within the first set of nodes but outside the second set of nodes. The method may further include evaluating the derived representation to compute the node set. |