5.7.1 New XPath Steps

The StandOff axis steps, similar in behavior to the standard XPath steps (e.g. child::*, descendant::*) have been added to MonetDB/XQuery to make querying concurrent such region really easy.

  • /select-narrow::
  • /select-wide::
  • /reject-narrow::
  • /reject-wide::
  • Axis steps will always be 'local' e.g. will only yield matches from the same document (fragment).
  • Each node is only returned once (no duplicates) and in document order.

5.7.2 context/select-narrow::nodename

From the set of nodes with nodename `nodename', say: {n1, n2...}, return only the nodes contained in the context nodes (e.g. return n if there is a context node for which holds: context_start <= n_start and n_end <= context_end)

5.7.2.1 context/select-wide::nodename

From the set of nodes with nodename `nodename', say: {n1, n2...}, return only the nodes overlapping with the context nodes (e.g. return n if there is a context node for which holds: context_start <= n_end and n_start <= context_end)

5.7.2.2 context/reject-narrow::nodename

From the set of nodes with nodename `nodename', say: {n1, n2...}, return all BUT the nodes contained in the context nodes (e.g. return n if there is NO context node for which holds: context_start <= n_start and n_end <= context_end)

5.7.2.3 context/reject-wide::nodename

From the set of nodes with nodename `nodename', say: {n1, n2...}, return all BUT the nodes overlapping with the context nodes (e.g. return n if there is NO context node for which holds: context_start <= n_end and n_start <= context_end)