Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

AbbreviatedStep

Select context, parent, or attribute node using abbreviated syntax.


Syntax

AbbreviatedStep

graphics/AbbreviatedStep.png

NameTest StepQualifiers

Top of page

Description

An AbbreviatedStep selects the context node, its parent node or some attribute node by using abbreviated syntax. The symbol .. is short for parent::node(). The symbol . is short for self::node() if it is prepended by a path expression, otherwise it is short for the context item. Similarly, @ refers to the attribute axis and is the abbreviation for attribute::. It is followed by a name test and zero or more predicate expressions, since the corresponding rule (StepQualifiers) allows an empty predicate. The child axis is the default axis, so that you can simply omit the axis name in front of the element name

Top of page

Examples

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:

This construct is also related to the following construct(s):

NameTest StepQualifiers

Top of page