Tamino XML Server Version 9.7
 —  XQuery 4 Reference Guide  —

Syntax Constructs Ordered by Categories


Basic and Primary Expressions

Type Tamino XQuery W3C XQuery Draft Short Description
Basic and Primary Expression Expr Expr, TreatExpr basic XQuery expressions
PrimaryExpr PrimaryExpr basic XQuery primitive
Literals Literal Literal numeric or string literal
NumericLiteral NumericLiteral numeric literal
Parenthesized Expressions ParenthesizedExpr ParenthesizedExpr expression sequence enclosed in parentheses
Function Calls ElementNameOrFunctionCall FunctionCall represent an element or call a function

Top of page

Path Expressions and Sequence Types

Type Tamino XQuery W3C XQuery Draft Short Description
Path Expressions PathExpr PathExpr select nodes on a path
AbsolutePathExpr subsumed in PathExpr select nodes on the absolute path
RelativePathExpr * RelativePathExpr select nodes on the relative path
Steps   StepExpr StepExpr create and possibly filter a sequence of items
with axes AxisStep ForwardStep, ReverseStep create and possibly filter a sequence of nodes
Axis ForwardAxis, ReverseAxis direction of movement on a path
AbbreviatedStep AbbreviatedForwardStep, AbbreviatedReverseStep select context, parent, or attribute node using abbreviated syntax
without axes NoAxisStep create and possibly filter node sequence on current axis
others GeneralStep subsumed in StepExpr create and possibly filter item sequence
StepQualifiers Predicates restrict item sequence to those matching one or more predicates
Sequence Type Syntax SequenceType SequenceType (Draft of October 29, 2004) specify the type of an XQuery value
ItemType ItemType (Draft of October 29, 2004) specify the type of an item
Expressions on Sequence Types TreatExpr TreatExpr (Draft of October 29, 2004) modify static type of operand
Node Tests NodeTest NodeTest check if a node satisfies conditions on the kind or name
NameTest NameTest select nodes by name or wildcard
Wildcard Wildcard select nodes matching the principal node kind
KindTest KindTest check the kind of node
ProcessingInstructionTest ProcessingInstructionTest check for processing instruction nodes
CommentTest CommentTest check for comment nodes
TextTest TextTest check for text nodes
AnyKindTest AnyKindTest check for any kind of node
AttributeTest AttributeTest (Draft of October 29, 2004) check for attribute nodes
ElementTest ElementTest (Draft of October 29, 2004) check for element nodes

Top of page

Sequence Expressions

Type Tamino XQuery W3C XQuery Draft Short Description
Constructing Sequences ExprSequence ExprSequence construct a sequence of expressions
ParenthesizedExpr ParenthesizedExpr expression sequence enclosed in parentheses
RangeExpr RangeExpr construct a sequence of consecutive integers
Combining Sequences UnionExpr UnionExpr combine node sequences
IntersectExceptExpr IntersectExceptExpr combine node sequences

Top of page

Arithmetic, Comparison and Logical Expressions

Type Tamino XQuery W3C XQuery Draft Short Description
Arithmetic Expressions AdditiveExpr AdditiveExpr add or subtract numerical values
MultiplicativeExpr MultiplicativeExpr multiply or divide numerical values
UnaryExpr UnaryExpr negate numerical value of an expression
Comparison Expressions CompExpr ComparisonExpr general comparison expression
GeneralComp GeneralComp compare sequences
ValueComp ValueComp compare single values
NodeComp NodeComp compare two nodes
Logical Expressions OrExpr OrExpr check if one or both of two expressions are true
AndExpr AndExpr check if both of two expressions are true

Top of page

Constructors

Type Tamino XQuery W3C XQuery Draft Short Description
Generic Constructor Constructor constructor expression
Direct Constructors ElementConstructor ElementConstructor construct an XML element
ElementContent ElementContent define content of an element in construction
AttributeList AttributeList create a list of attributes
AttributeValue AttributeValue define value of an attribute in construction
AttributeValueContent AttributeValueContent define value content of an attribute in construction
EnclosedExpr EnclosedExpr evaluate a sequence of expressions
DirectCommentConstructor DirCommentConstructor (Draft of October 29, 2004) construct an XML comment
XmlProcessingInstruction DirPIConstructor (Draft of October 29, 2004) construct an XML processing instruction
Computed Constructors ComputedElementConstructor ComputedElementConstructor construct an element by computing an expression
ComputedAttributeConstructor ComputedAttributeConstructor construct an attribute by computing an expression
ComputedDocumentConstructor CompDocConstructor construct a document by computing an expression
CompTextConstructor CompTextConstructor (Draft of October 29, 2004) construct a text node by computing an expression
CompCommentConstructor CompCommentConstructor (Draft of October 29, 2004) construct an XML comment by computing an expression
CompPIConstructor CompPIConstructor (Draft of October 29, 2004) construct a processing instruction by computing an expression
FLWOR Expressions FLWORExpr FLWORExpr iterate over a sequence of items
ForClause ForClause bind variables by evaluating expression
LetClause LetClause bind variables by evaluating expression
WhereClause WhereClause filter intermediate results
OrderByClause OrderByClause (Draft of October 29, 2004) order intermediate results

Top of page

Conditional Expressions

Type Tamino XQuery W3C XQuery Draft Short Description
Conditional Expression IfExpr IfExpr (Draft of October 29, 2004) conditional expression based on if, then, and else

Top of page

Order-Related Expressions

Type Tamino XQuery W3C XQuery Draft Short Description
Sort Expressions SortExpr SortExpr sort sequence of items
SortSpecList SortSpecList, SortModifier define ordering expression and sort direction

Top of page

Modules, Prologs and Pragmas

Most of the following syntax constructs implement concepts added only recently to the XQuery specification draft. If not otherwise noted they follow the specification of October 29, 2004.

Type Tamino XQuery W3C XQuery Draft Short Description
Modules XQueryModule Module top-level XQuery syntax construct
MainModule MainModule obligatory XQuery module with query body
LibraryModule LibraryModule provide XQuery fragment to other modules
ModuleDecl ModuleDecl identify library module
Prologs Prolog Prolog create environment for query processing
DefaultCollationDecl DefaultCollationDecl (Draft of November 12, 2003) declare a default collation
ModuleImport ModuleImport import one or more library modules
NamespaceDecl NamespaceDecl (Draft of November 12, 2003) declare a namespace
DefaultNamespaceDecl DefaultNamespaceDecl (Draft of November 12, 2003) declare a default (function) namespace
VarDecl VarDecl declare a variable in query prolog
FunctionDecl FunctionDecl declare a user-defined function
UpdatingFunctionDecl declaration of an updating function
Pragmas Pragma Pragma query processor directive
SerializationSpec XSLT 2.0 and XQuery 1.0 Serialization Specification (Draft of November 12, 2003) specify serialization of query output
TaminoQPIExecution determine parameters of query execution
TaminoQPIExplain retrieve query execution plan
TaminoQPIInline use default inlining strategy for user-defined functions
TaminoQPIOptimization choose query optimization strategy

Top of page

Update Expressions

Type Tamino XQuery W3C XQuery Draft Short Description
FLWU Expression FLWUExpr perform one or more update operations
Updating Sequences UpdateSequence sequence of basic update expressions
UpdateExpr update expression
UpdateIfExpr conditional update expression
UpdatingFunction updating function invocation
InsertClause insert a node sequence at update position
DeleteClause delete node sequence
RenameClause rename the nodes of a node sequence
ReplaceClause replace a node

Top of page

Version Declaration

Tamino XQuery W3C XQuery Draft Short Description
VersionDecl specifies the version of the XQuery language — reserved for future use

Top of page