QueryList | ::= | Module ("%%%" Module) |
AbbreviatedStep | ::= | (".." | ("@" NodeTest) | SimpleNodeTest) |
AbsolutePathExpr | ::= | (("/" RelativePathExpr) | ("//" RelativePathExpr)) |
AdditiveExpr | ::= | MultiplicativeExpr (("+" | "-") MultiplicativeExpr) |
AllowingEmpty | ::= | "allowing" "empty" |
AndExpr | ::= | ComparisonExpr ("and" ComparisonExpr) |
Annotation | ::= | "%" EQName ("(" Constant ")") |
AnyArrayType | ::= | "array" "(" "*" ")" |
AnyFunctionType | ::= | ("function" | "fn") "(" "*" ")" |
AnyItemTest | ::= | "item" "(" ")" |
AnyMapType | ::= | "map" "(" "*" ")" |
AnyNodeKindTest | ::= | "node" "(" ")" |
AposAttrContentChar | ::= | Char |
AposAttrValueContent | ::= | (AposAttrContentChar | CommonContent) |
AposStringLiteral | ::= | ("'" (PredefinedEntityRef | CharRef | EscapeApos | ['&]) "'") |
Argument | ::= | (ExprSingle | ArgumentPlaceholder) |
ArgumentList | ::= | "(" ((PositionalArguments ("," KeywordArguments)) | KeywordArguments) ")" |
ArgumentPlaceholder | ::= | "?" |
ArrayConstructor | ::= | (SquareArrayConstructor | CurlyArrayConstructor) |
ArrayType | ::= | (AnyArrayType | TypedArrayType) |
ArrowExpr | ::= | UnaryExpr (SequenceArrowTarget | MappingArrowTarget) |
ArrowTarget | ::= | (FunctionCall | RestrictedDynamicCall) |
AttributeName | ::= | EQName |
AttributeTest | ::= | "attribute" "(" (NameTestUnion ("," TypeName)) ")" |
Axis | ::= | ("ancestor" | "ancestor-or-self" | "attribute" | "child" | "descendant" | "descendant-or-self" | "following" | "following-or-self" | "following-sibling" | "following-sibling-or-self" | "parent" | "preceding" | "preceding-or-self" | "preceding-sibling" | "preceding-sibling-or-self" | "self") "::" |
AxisStep | ::= | (AbbreviatedStep | FullStep) Predicate |
BaseChar | ::= | [AA–ZZ aa–zz ÀÀ–ÖÖ ØØ–öö øø–ÿÿ ĀĀ–ıı ĴĴ–ľľ ŁŁ–ňň ŊŊ–žž ƀƀ–ǃǃ ǍǍ–ǰǰ ǴǴ–ǵǵ ǺǺ–ȗȗ ɐɐ–ʨʨ ʻʻ–ˁˁ ΆΆ ΈΈ–ΊΊ ΌΌ ΎΎ–ΡΡ ΣΣ–ώώ ϐϐ–ϖϖ ϚϚ ϜϜ ϞϞ ϠϠ ϢϢ–ϳϳ ЁЁ–ЌЌ ЎЎ–яя ёё–ќќ ўў–ҁҁ ҐҐ–ӄӄ ӇӇ–ӈӈ ӋӋ–ӌӌ ӐӐ–ӫӫ ӮӮ–ӵӵ ӸӸ–ӹӹ ԱԱ–ՖՖ ՙՙ աա–ֆֆ אא–תת װװ–ײײ ءء–غغ فف–يي ٱٱ–ڷڷ ںں–ھھ ۀۀ–ێێ ېې–ۓۓ ەە ۥۥ–ۦۦ अअ–हह ऽऽ क़क़–ॡॡ অঅ–ঌঌ এএ–ঐঐ ওও–নন পপ–রর লল শশ–হহ ড়ড়–ঢ়ঢ় য়য়–ৡৡ ৰৰ–ৱৱ ਅਅ–ਊਊ ਏਏ–ਐਐ ਓਓ–ਨਨ ਪਪ–ਰਰ ਲਲ–ਲ਼ਲ਼ ਵਵ–ਸ਼ਸ਼ ਸਸ–ਹਹ ਖ਼ਖ਼–ੜੜ ਫ਼ਫ਼ ੲੲ–ੴੴ અઅ–ઋઋ ઍઍ એએ–ઑઑ ઓઓ–નન પપ–રર લલ–ળળ વવ–હહ ઽઽ ૠૠ ଅଅ–ଌଌ ଏଏ–ଐଐ ଓଓ–ନନ ପପ–ରର ଲଲ–ଳଳ ଶଶ–ହହ ଽଽ ଡ଼ଡ଼–ଢ଼ଢ଼ ୟୟ–ୡୡ அஅ–ஊஊ எஎ–ஐஐ ஒஒ–கக ஙங–சச ஜஜ ஞஞ–டட ணண–தத நந–பப மம–வவ ஷஷ–ஹஹ అఅ–ఌఌ ఎఎ–ఐఐ ఒఒ–నన పప–ళళ వవ–హహ ౠౠ–ౡౡ ಅಅ–ಌಌ ಎಎ–ಐಐ ಒಒ–ನನ ಪಪ–ಳಳ ವವ–ಹಹ ೞೞ ೠೠ–ೡೡ അഅ–ഌഌ എഎ–ഐഐ ഒഒ–നന പപ–ഹഹ ൠൠ–ൡൡ กก–ฮฮ ะะ าา–ำำ เเ–ๅๅ ກກ–ຂຂ ຄຄ ງງ–ຈຈ ຊຊ ຍຍ ດດ–ທທ ນນ–ຟຟ ມມ–ຣຣ ລລ ວວ ສສ–ຫຫ ອອ–ຮຮ ະະ າາ–ຳຳ ຽຽ ເເ–ໄໄ ཀཀ–ཇཇ ཉཉ–ཀྵཀྵ ႠႠ–ჅჅ აა–ჶჶ ᄀᄀ ᄂᄂ–ᄃᄃ ᄅᄅ–ᄇᄇ ᄉᄉ ᄋᄋ–ᄌᄌ ᄎᄎ–ᄒᄒ ᄼᄼ ᄾᄾ ᅀᅀ ᅌᅌ ᅎᅎ ᅐᅐ ᅔᅔ–ᅕᅕ ᅙᅙ ᅟᅟ–ᅡᅡ ᅣᅣ ᅥᅥ ᅧᅧ ᅩᅩ ᅭᅭ–ᅮᅮ ᅲᅲ–ᅳᅳ ᅵᅵ ᆞᆞ ᆨᆨ ᆫᆫ ᆮᆮ–ᆯᆯ ᆷᆷ–ᆸᆸ ᆺᆺ ᆼᆼ–ᇂᇂ ᇫᇫ ᇰᇰ ᇹᇹ ḀḀ–ẛẛ ẠẠ–ỹỹ ἀἀ–ἕἕ ἘἘ–ἝἝ ἠἠ–ὅὅ ὈὈ–ὍὍ ὐὐ–ὗὗ ὙὙ ὛὛ ὝὝ ὟὟ–ώώ ᾀᾀ–ᾴᾴ ᾶᾶ–ᾼᾼ ιι ῂῂ–ῄῄ ῆῆ–ῌῌ ῐῐ–ΐΐ ῖῖ–ΊΊ ῠῠ–ῬῬ ῲῲ–ῴῴ ῶῶ–ῼῼ ΩΩ KK–ÅÅ ℮℮ ↀↀ–ↂↂ ぁぁ–ゔゔ ァァ–ヺヺ ㄅㄅ–ㄬㄬ 가가–힣힣 ] |
BaseURIDecl | ::= | "declare" "base-uri" URILiteral |
BinaryDigit | ::= | [01] |
BinaryDigits | ::= | (BinaryDigit ((BinaryDigit | "_") BinaryDigit)) |
BinaryIntegerLiteral | ::= | ("0b" BinaryDigits) |
BoundarySpaceDecl | ::= | "declare" "boundary-space" ("preserve" | "strip") |
BracedAction | ::= | EnclosedExpr |
BracedSwitchCases | ::= | "{" SwitchCases "}" |
BracedTypeswitchCases | ::= | "{" TypeswitchCases "}" |
BracedURILiteral | ::= | "Q" "{" (PredefinedEntityRef | CharRef | [&{}]) "}" |
CaseClause | ::= | "case" (VarName "as") SequenceTypeUnion "return" ExprSingle |
CastableExpr | ::= | CastExpr ("castable" "as" CastTarget "?") |
CastExpr | ::= | PipelineExpr ("cast" "as" CastTarget "?") |
CastTarget | ::= | (TypeName | ChoiceItemType | EnumerationType) |
CatchClause | ::= | "catch" NameTestUnion EnclosedExpr |
CDataSection | ::= | "<![CDATA[" CDataSectionContents "]]>" |
CDataSectionContents | ::= | Char |
Char | ::= | [	 


  –� ] |
CharRef | ::= | "&#" (Digits | ("x" HexDigits)) ";" |
ChoiceItemType | ::= | "(" ItemType ")" |
CloseApos | ::= | "'" |
CloseQuot | ::= | """ |
CombiningChar | ::= | [̀–ͅ ͠–͡ ҃–҆ ֑–֡ ֣–ֹ ֻ–ֽ ֿ ׁ–ׂ ׄ ً–ْ ٰ ۖ–ۜ ۝–۟ ۠–ۤ ۧ–ۨ ۪–ۭ ँ–ः ़ ा–ौ ् ॑–॔ ॢ–ॣ ঁ–ঃ ় া ি ী–ৄ ে–ৈ ো–্ ৗ ৢ–ৣ ਂ ਼ ਾ ਿ ੀ–ੂ ੇ–ੈ ੋ–੍ ੰ–ੱ ઁ–ઃ ઼ ા–ૅ ે–ૉ ો–્ ଁ–ଃ ଼ ା–ୃ େ–ୈ ୋ–୍ ୖ–ୗ ஂ–ஃ ா–ூ ெ–ை ொ–் ௗ ఁ–ః ా–ౄ ె–ై ొ–్ ౕ–ౖ ಂ–ಃ ಾ–ೄ ೆ–ೈ ೊ–್ ೕ–ೖ ം–ഃ ാ–ൃ െ–ൈ ൊ–് ൗ ั ิ–ฺ ็–๎ ັ ິ–ູ ົ–ຼ ່–ໍ ༘–༙ ༵ ༷ ༹ ༾ ༿ ཱ–྄ ྆–ྋ ྐ–ྕ ྗ ྙ–ྭ ྱ–ྷ ྐྵ ⃐–⃜ ⃡ 〪–〯 ゙ ゚ ] |
| ::= | CommentStart (CommentContents | Comment) CommentEnd |
| ::= | Char |
| ::= | CommentContent |
| ::= | ":)" |
| ::= | "(:" |
| ::= | "comment" "(" ")" |
CommonContent | ::= | (PredefinedEntityRef | CharRef | LCurlyBraceEscape | RCurlyBraceEscape | EnclosedExpr) |
ComparisonExpr | ::= | OtherwiseExpr ((ValueComp | GeneralComp | NodeComp) OtherwiseExpr) |
CompAttrConstructor | ::= | "attribute" CompNodeName EnclosedExpr |
| ::= | "comment" EnclosedExpr |
CompDocConstructor | ::= | "document" EnclosedExpr |
CompElemConstructor | ::= | "element" CompNodeName EnclosedContentExpr |
CompNamespaceConstructor | ::= | "namespace" CompNodeNCName EnclosedExpr |
CompNodeName | ::= | (QNameLiteral | UnreservedName | ("{" Expr "}")) |
CompNodeNCName | ::= | (MarkedNCName | UnreservedNCName | ("{" Expr "}")) |
CompPIConstructor | ::= | "processing-instruction" CompNodeNCName EnclosedExpr |
CompTextConstructor | ::= | "text" EnclosedExpr |
ComputedConstructor | ::= | (CompDocConstructor | CompElemConstructor | CompAttrConstructor | CompNamespaceConstructor | CompTextConstructor | CompCommentConstructor | CompPIConstructor) |
Constant | ::= | (StringLiteral | ("-" NumericLiteral) | QNameLiteral | ("true" "(" ")") | ("false" "(" ")")) |
ConstructionDecl | ::= | "declare" "construction" ("strip" | "preserve") |
ContextValueDecl | ::= | "declare" "context" (("value" ("as" SequenceType)) | ("item" ("as" ItemType))) ((":=" VarValue) | ("external" (":=" VarDefaultValue))) |
ContextValueRef | ::= | "." |
CopyNamespacesDecl | ::= | "declare" "copy-namespaces" PreserveMode "," InheritMode |
CountClause | ::= | "count" VarName |
CurlyArrayConstructor | ::= | "array" EnclosedExpr |
CurrentVar | ::= | VarName |
DecDigit | ::= | [0–9] |
DecimalFormatDecl | ::= | "declare" (("decimal-format" EQName) | ("default" "decimal-format")) (DFPropertyName "=" StringLiteral) |
DecimalLiteral | ::= | (("." Digits) | (Digits "." Digits)) |
DefaultCollationDecl | ::= | "declare" "default" "collation" URILiteral |
DefaultNamespaceDecl | ::= | "declare" "fixed" "default" ("element" | "function") "namespace" URILiteral |
DFPropertyName | ::= | ("decimal-separator" | "grouping-separator" | "infinity" | "minus-sign" | "NaN" | "percent" | "per-mille" | "zero-digit" | "digit" | "pattern-separator" | "exponent-separator") |
Digit | ::= | [00–99 ٠٠–٩٩ ۰۰–۹۹ ००–९९ ০০–৯৯ ੦੦–੯੯ ૦૦–૯૯ ୦୦–୯୯ ௧௧–௯௯ ౦౦–౯౯ ೦೦–೯೯ ൦൦–൯൯ ๐๐–๙๙ ໐໐–໙໙ ༠༠–༩༩ ] |
Digits | ::= | (DecDigit ((DecDigit | "_") DecDigit)) |
DirAttributeList | ::= | (S (QName S "=" S DirAttributeValue)) |
DirAttributeValue | ::= | ((OpenQuot (EscapeQuot | QuotAttrValueContent) CloseQuot) | (OpenApos (EscapeApos | AposAttrValueContent) CloseApos)) |
| ::= | "<!--" DirCommentContents "-->" |
| ::= | - - |
| ::= | (Char | (- Char)) |
DirectConstructor | ::= | (DirElemConstructor | DirCommentConstructor | DirPIConstructor) |
DirElemConstructor | ::= | "<" QName DirAttributeList ("/>" | (">" DirElemContent "</" QName S ">")) |
DirElemContent | ::= | (DirectConstructor | CDataSection | CommonContent | ElementContentChar) |
DirPIConstructor | ::= | "<?" PITarget (S DirPIContents) "?>" |
DirPIContents | ::= | Char |
DocumentTest | ::= | "document-node" "(" (ElementTest | SchemaElementTest | NameTestUnion) ")" |
DoubleLiteral | ::= | (("." Digits) | (Digits ("." Digits))) [eE] [+-] Digits |
DynamicFunctionCall | ::= | PostfixExpr PositionalArgumentList |
ElementContentChar | ::= | Char |
ElementName | ::= | EQName |
ElementTest | ::= | "element" "(" (NameTestUnion ("," TypeName "?")) ")" |
EmptyOrderDecl | ::= | "declare" "default" "order" "empty" ("greatest" | "least") |
EnclosedContentExpr | ::= | EnclosedExpr |
EnclosedExpr | ::= | "{" Expr "}" |
EnumerationType | ::= | "enum" "(" StringLiteral ")" |
EQName | ::= | (QName | URIQualifiedName) |
EscapeApos | ::= | "''" |
EscapeQuot | ::= | """" |
Expr | ::= | ExprSingle |
ExprSingle | ::= | (FLWORExpr | QuantifiedExpr | SwitchExpr | TypeswitchExpr | IfExpr | TryCatchExpr | OrExpr) |
ExtendedFieldDeclaration | ::= | FieldDeclaration (":=" ExprSingle) |
Extender | ::= | [·· ːː ˑˑ ·· ــ ๆๆ ໆໆ 々々 〱〱–〵〵 ゝゝ–ゞゞ ーー–ヾヾ ] |
ExtensionExpr | ::= | Pragma "{" Expr "}" |
FieldDeclaration | ::= | FieldName "?" ("as" SequenceType) |
FieldName | ::= | (NCName | StringLiteral) |
FilterExpr | ::= | PostfixExpr Predicate |
FilterExprAM | ::= | PostfixExpr "?[" Expr "]" |
FinallyClause | ::= | "finally" EnclosedExpr |
FLWORExpr | ::= | InitialClause IntermediateClause ReturnClause |
ForBinding | ::= | (ForItemBinding | ForMemberBinding | ForEntryBinding) |
ForClause | ::= | "for" ForBinding |
ForEntryBinding | ::= | ((ForEntryKeyBinding ForEntryValueBinding) | ForEntryValueBinding) PositionalVar "in" ExprSingle |
ForEntryKeyBinding | ::= | "key" VarNameAndType |
ForEntryValueBinding | ::= | "value" VarNameAndType |
ForItemBinding | ::= | VarNameAndType AllowingEmpty PositionalVar "in" ExprSingle |
ForMemberBinding | ::= | "member" VarNameAndType PositionalVar "in" ExprSingle |
FullStep | ::= | Axis NodeTest |
FunctionBody | ::= | EnclosedExpr |
FunctionCall | ::= | EQName ArgumentList |
FunctionDecl | ::= | "declare" Annotation "function" EQName "(" ParamListWithDefaults ")" TypeDeclaration (FunctionBody | "external") |
FunctionItemExpr | ::= | (NamedFunctionRef | InlineFunctionExpr) |
FunctionSignature | ::= | "(" ParamList ")" TypeDeclaration |
FunctionType | ::= | Annotation (AnyFunctionType | TypedFunctionType) |
GeneralComp | ::= | ("=" | "!=" | "<" | "<=" | ">" | ">=") |
GNodeType | ::= | "gnode" "(" ")" |
GroupByClause | ::= | "group" "by" GroupingSpec |
GroupingSpec | ::= | VarName (TypeDeclaration ":=" ExprSingle) ("collation" URILiteral) |
HexDigit | ::= | [0–9a–fA–F] |
HexDigits | ::= | (HexDigit ((HexDigit | "_") HexDigit)) |
HexIntegerLiteral | ::= | ("0x" HexDigits) |
Ideographic | ::= | [一一–龥龥 〇〇 〡〡–〩〩 ] |
IfExpr | ::= | "if" "(" Expr ")" (UnbracedActions | BracedAction) |
ImplicitlyAllowedWhitespace | ::= | WhitespaceChar |
Import | ::= | (SchemaImport | ModuleImport) |
InheritMode | ::= | ("inherit" | "no-inherit") |
InitialClause | ::= | (ForClause | LetClause | WindowClause) |
InlineFunctionExpr | ::= | Annotation ("function" | "fn") FunctionSignature FunctionBody |
InstanceofExpr | ::= | TreatExpr ("instance" "of" SequenceType) |
IntegerLiteral | ::= | Digits |
IntermediateClause | ::= | (InitialClause | WhereClause | WhileClause | GroupByClause | OrderByClause | CountClause) |
IntersectExceptExpr | ::= | InstanceofExpr (("intersect" | "except") InstanceofExpr) |
ItemType | ::= | (RegularItemType | FunctionType | TypeName | ChoiceItemType) |
ItemTypeDecl | ::= | "declare" Annotation "type" EQName "as" ItemType |
JNodeType | ::= | "jnode" "(" (("*" | NCName | Constant) ("," ("*" | SequenceType))) ")" |
KeySpecifier | ::= | (NCName | Literal | ContextValueRef | VarRef | ParenthesizedExpr | LookupWildcard) |
KeywordArgument | ::= | EQName ":=" Argument |
KeywordArguments | ::= | KeywordArgument |
LCurlyBraceEscape | ::= | "{{" |
LetArrayBinding | ::= | "$" "[" VarNameAndType "]" TypeDeclaration ":=" ExprSingle |
LetBinding | ::= | (LetValueBinding | LetSequenceBinding | LetArrayBinding | LetMapBinding) |
LetClause | ::= | "let" LetBinding |
LetMapBinding | ::= | "$" "{" VarNameAndType "}" TypeDeclaration ":=" ExprSingle |
LetSequenceBinding | ::= | "$" "(" VarNameAndType ")" TypeDeclaration ":=" ExprSingle |
Letter | ::= | (BaseChar | Ideographic) |
LetValueBinding | ::= | VarNameAndType ":=" ExprSingle |
LibraryModule | ::= | ModuleDecl Prolog |
Literal | ::= | (NumericLiteral | StringLiteral | QNameLiteral) |
LocalPart | ::= | NCNameToken |
Lookup | ::= | "?" KeySpecifier |
LookupExpr | ::= | PostfixExpr Lookup |
LookupWildcard | ::= | "*" |
MainModule | ::= | Prolog QueryBody |
MapConstructor | ::= | "map" "{" MapConstructorEntry "}" |
MapConstructorEntry | ::= | ExprSingle (":" ExprSingle) |
MappingArrowTarget | ::= | "=!>" ArrowTarget |
MapType | ::= | (AnyMapType | TypedMapType) |
MarkedNCName | ::= | "#" NCName |
MethodCall | ::= | PostfixExpr "=?>" NCName PositionalArgumentList |
Module | ::= | VersionDecl (LibraryModule | MainModule) |
ModuleDecl | ::= | "module" "namespace" NCName "=" URILiteral Separator |
ModuleImport | ::= | "import" "module" ("namespace" NCName "=") URILiteral ("at" URILiteral) |
MultiplicativeExpr | ::= | UnionExpr (("*" | "×" | "div" | "÷" | "idiv" | "mod") UnionExpr) |
NamedFunctionRef | ::= | EQName "#" IntegerLiteral |
NamedRecordTypeDecl | ::= | "declare" Annotation "record" EQName "(" ExtendedFieldDeclaration ")" |
NamespaceDecl | ::= | "declare" "namespace" NCName "=" URILiteral |
NamespaceNodeTest | ::= | "namespace-node" "(" ")" |
NameTest | ::= | (EQName | Wildcard) |
NameTestUnion | ::= | NameTest |
NCName | ::= | QName |
NCNameColonStar | ::= | NCNameToken ":*" |
NCNameToken | ::= | Nmstart Nmchar |
NextVar | ::= | "next" VarName |
Nmchar | ::= | (Letter | CombiningChar | Extender | Digit | "." | "-" | "_") |
Nmstart | ::= | (Letter | "_") |
NodeComp | ::= | ("is" | "is-not" | NodePrecedes | NodeFollows | "precedes-or-is" | "follows-or-is") |
NodeConstructor | ::= | (DirectConstructor | ComputedConstructor) |
NodeFollows | ::= | (">>" | "follows") |
NodeKindTest | ::= | (DocumentTest | ElementTest | AttributeTest | SchemaElementTest | SchemaAttributeTest | PITest | CommentTest | TextTest | NamespaceNodeTest | AnyNodeKindTest) |
NodePrecedes | ::= | ("<<" | "precedes") |
NodeTest | ::= | (UnionNodeTest | SimpleNodeTest) |
NumericLiteral | ::= | (IntegerLiteral | HexIntegerLiteral | BinaryIntegerLiteral | DecimalLiteral | DoubleLiteral) |
OccurrenceIndicator | ::= | ("?" | "*" | "+") |
OpenApos | ::= | "'" |
OpenQuot | ::= | """ |
OptionDecl | ::= | "declare" "option" EQName StringLiteral |
OrderByClause | ::= | "stable" "order" "by" OrderSpec |
OrderedExpr | ::= | "ordered" EnclosedExpr |
OrderingModeDecl | ::= | "declare" "ordering" ("ordered" | "unordered") |
OrderModifier | ::= | ("ascending" | "descending") ("empty" ("greatest" | "least")) ("collation" URILiteral) |
OrderSpec | ::= | ExprSingle OrderModifier |
OrExpr | ::= | AndExpr ("or" AndExpr) |
OtherwiseExpr | ::= | StringConcatExpr ("otherwise" StringConcatExpr) |
ParamList | ::= | VarNameAndType |
ParamListWithDefaults | ::= | ParamWithDefault |
ParamWithDefault | ::= | VarNameAndType (":=" ExprSingle) |
ParenthesizedExpr | ::= | "(" Expr ")" |
PathExpr | ::= | (AbsolutePathExpr | RelativePathExpr) |
PipelineExpr | ::= | ArrowExpr ("->" ArrowExpr) |
PITarget | ::= | NCNameToken |
PITest | ::= | "processing-instruction" "(" (NCName | StringLiteral) ")" |
PositionalArgumentList | ::= | "(" PositionalArguments ")" |
PositionalArguments | ::= | Argument |
PositionalVar | ::= | "at" VarName |
PostfixExpr | ::= | (PrimaryExpr | FilterExpr | DynamicFunctionCall | LookupExpr | MethodCall | FilterExprAM) |
Pragma | ::= | "(#" S EQName (S PragmaContents) "#)" |
PragmaContents | ::= | Char |
PredefinedEntityRef | ::= | "&" ("lt" | "gt" | "amp" | "quot" | "apos") ";" |
Predicate | ::= | "[" Expr "]" |
PreserveMode | ::= | ("preserve" | "no-preserve") |
PreviousVar | ::= | "previous" VarName |
PrimaryExpr | ::= | (Literal | VarRef | ParenthesizedExpr | ContextValueRef | FunctionCall | OrderedExpr | UnorderedExpr | NodeConstructor | FunctionItemExpr | MapConstructor | ArrayConstructor | StringTemplate | StringConstructor | UnaryLookup) |
Prolog | ::= | ((DefaultNamespaceDecl | Setter | NamespaceDecl | Import) Separator) ((ContextValueDecl | VarDecl | FunctionDecl | ItemTypeDecl | NamedRecordTypeDecl | OptionDecl) Separator) |
QName | ::= | (NCNameToken ":") LocalPart |
QNameLiteral | ::= | "#" EQName |
QuantifiedExpr | ::= | ("some" | "every") QuantifierBinding "satisfies" ExprSingle |
QuantifierBinding | ::= | VarNameAndType "in" ExprSingle |
QueryBody | ::= | Expr |
QuotAttrContentChar | ::= | Char |
QuotAttrValueContent | ::= | (QuotAttrContentChar | CommonContent) |
QuotStringLiteral | ::= | (""" (PredefinedEntityRef | CharRef | EscapeQuot | ["&]) """) |
RangeExpr | ::= | AdditiveExpr ("to" AdditiveExpr) |
RCurlyBraceEscape | ::= | "}}" |
RecordType | ::= | "record" "(" FieldDeclaration ")" |
RegularItemType | ::= | (AnyItemTest | NodeKindTest | GNodeType | JNodeType | MapType | ArrayType | RecordType | EnumerationType) |
RelativePathExpr | ::= | StepExpr (("/" | "//") StepExpr) |
RestrictedDynamicCall | ::= | (VarRef | ParenthesizedExpr | FunctionItemExpr | MapConstructor | ArrayConstructor) PositionalArgumentList |
ReturnClause | ::= | "return" ExprSingle |
S | ::= | WhitespaceChar |
SchemaAttributeTest | ::= | "schema-attribute" "(" AttributeName ")" |
SchemaElementTest | ::= | "schema-element" "(" ElementName ")" |
SchemaImport | ::= | "import" "schema" SchemaPrefix URILiteral ("at" URILiteral) |
SchemaPrefix | ::= | (("namespace" NCName "=") | ("fixed" "default" "element" "namespace")) |
Selector | ::= | (EQName | Wildcard | ("get" "(" ExprSingle ")")) |
Separator | ::= | ";" |
SequenceArrowTarget | ::= | "=>" ArrowTarget |
SequenceType | ::= | (("empty-sequence" "(" ")") | (ItemType OccurrenceIndicator)) |
SequenceTypeUnion | ::= | SequenceType ("|" SequenceType) |
Setter | ::= | (BoundarySpaceDecl | DefaultCollationDecl | BaseURIDecl | ConstructionDecl | OrderingModeDecl | EmptyOrderDecl | CopyNamespacesDecl | DecimalFormatDecl) |
SimpleMapExpr | ::= | PathExpr ("!" PathExpr) |
SimpleNodeTest | ::= | (TypeTest | Selector) |
SlidingWindowClause | ::= | "sliding" "window" VarNameAndType "in" ExprSingle WindowStartCondition WindowEndCondition |
SquareArrayConstructor | ::= | "[" ExprSingle "]" |
StarColonNCName | ::= | "*:" NCNameToken |
StepExpr | ::= | (PostfixExpr | AxisStep) |
StringConcatExpr | ::= | RangeExpr ("||" RangeExpr) |
StringConstructor | ::= | "``[" StringConstructorContent "]``" |
StringConstructorChars | ::= | Char |
StringConstructorContent | ::= | StringConstructorChars (StringInterpolation StringConstructorChars) |
StringInterpolation | ::= | "`{" Expr "}`" |
StringLiteral | ::= | (AposStringLiteral | QuotStringLiteral) |
StringTemplate | ::= | "`" (StringTemplateFixedPart | StringTemplateVariablePart) "`" |
StringTemplateFixedPart | ::= | (Char | "{{" | "}}" | "``") |
StringTemplateVariablePart | ::= | EnclosedExpr |
SwitchCaseClause | ::= | ("case" SwitchCaseOperand) "return" ExprSingle |
SwitchCaseOperand | ::= | Expr |
SwitchCases | ::= | SwitchCaseClause "default" "return" ExprSingle |
SwitchComparand | ::= | "(" Expr ")" |
SwitchExpr | ::= | "switch" SwitchComparand (SwitchCases | BracedSwitchCases) |
TextTest | ::= | "text" "(" ")" |
TreatExpr | ::= | CastableExpr ("treat" "as" SequenceType) |
TryCatchExpr | ::= | TryClause ((CatchClause FinallyClause) | FinallyClause) |
TryClause | ::= | "try" EnclosedExpr |
TumblingWindowClause | ::= | "tumbling" "window" VarNameAndType "in" ExprSingle WindowStartCondition WindowEndCondition |
TypedArrayType | ::= | "array" "(" SequenceType ")" |
TypeDeclaration | ::= | "as" SequenceType |
TypedFunctionParam | ::= | ("$" EQName "as") SequenceType |
TypedFunctionType | ::= | ("function" | "fn") "(" TypedFunctionParam ")" "as" SequenceType |
TypedMapType | ::= | "map" "(" ItemType "," SequenceType ")" |
TypeName | ::= | EQName |
TypeswitchCases | ::= | CaseClause "default" VarName "return" ExprSingle |
TypeswitchExpr | ::= | "typeswitch" "(" Expr ")" (TypeswitchCases | BracedTypeswitchCases) |
TypeTest | ::= | (NodeKindTest | JNodeType) |
UnaryExpr | ::= | ("-" | "+") ValueExpr |
UnaryLookup | ::= | Lookup |
UnbracedActions | ::= | "then" ExprSingle "else" ExprSingle |
UnionExpr | ::= | IntersectExceptExpr (("union" | "|") IntersectExceptExpr) |
UnionNodeTest | ::= | "(" SimpleNodeTest ")" |
UnorderedExpr | ::= | "unordered" EnclosedExpr |
UnreservedName | ::= | EQName |
UnreservedNCName | ::= | NCName |
URILiteral | ::= | StringLiteral |
URIQualifiedName | ::= | BracedURILiteral (NCNameToken ":") NCNameToken |
URIQualifiedStar | ::= | BracedURILiteral "*" |
ValidateExpr | ::= | "validate" (ValidationMode | ("type" TypeName)) "{" Expr "}" |
ValidationMode | ::= | ("lax" | "strict") |
ValueComp | ::= | ("eq" | "ne" | "lt" | "le" | "gt" | "ge") |
ValueExpr | ::= | (ValidateExpr | ExtensionExpr | SimpleMapExpr) |
VarDecl | ::= | "declare" (Annotation) "variable" VarNameAndType ((":=" VarValue) | ("external" (":=" VarDefaultValue))) |
VarDefaultValue | ::= | ExprSingle |
VarName | ::= | "$" EQName |
VarNameAndType | ::= | "$" EQName TypeDeclaration |
VarRef | ::= | "$" EQName |
VarValue | ::= | ExprSingle |
VersionDecl | ::= | "xquery" (("encoding" StringLiteral) | ("version" StringLiteral ("encoding" StringLiteral))) Separator |
WhereClause | ::= | "where" ExprSingle |
WhileClause | ::= | "while" ExprSingle |
WhitespaceChar | ::= | [	 


  ] |
Wildcard | ::= | ("*" | NCNameColonStar | StarColonNCName | URIQualifiedStar) |
WindowClause | ::= | "for" (TumblingWindowClause | SlidingWindowClause) |
WindowEndCondition | ::= | "only" "end" WindowVars ("when" ExprSingle) |
WindowStartCondition | ::= | "start" WindowVars ("when" ExprSingle) |
WindowVars | ::= | CurrentVar PositionalVar PreviousVar NextVar |