30.08.2014 Views

url - Universität zu Lübeck

url - Universität zu Lübeck

url - Universität zu Lübeck

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.3. XML QUERY LANGUAGES 25<br />

Parent-Axis:<br />

XPath: parent::<br />

Short: ..<br />

The counterpart of the child-axis is the parent-axis<br />

that contains the parent node of the context-node, if<br />

there is one<br />

Ancestor-Axis:<br />

XPath: ancestor::<br />

Short: NA<br />

The ancestor-axis contains the ancestors of the contextnode;<br />

the ancestors of the context-node consist of the<br />

parent of the context-node and the parent’s parent and<br />

so on; thus, the ancestor-axis will always include the<br />

root-node, unless the context-node is the root-node.<br />

Preceding-Axis:<br />

XPath: preceding::<br />

Short: NA<br />

The preceding-axis contains all nodes that appear<br />

before the context-node in document order, excluding<br />

any ancestors and excluding any attribute nodes.<br />

Following-Axis:<br />

XPath: following::<br />

Short: NA<br />

Similar to the preceding-axis the following-axis contains<br />

all nodes appearing after the context-node in<br />

document order, excluding any descendants and excluding<br />

attribute nodes.<br />

In addition to these axes there are some more that consist of the union of two<br />

axes like descendant-or-self or ancestor-or-self.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!