| 1 |
<?xml version="1.0"?> |
| 2 |
<!-- edited with XMLSPY v2004 rel. 3 U (http://www.xmlspy.com) by Scott Boag (XSL WG) --> |
| 3 |
<!-- <!DOCTYPE g:grammar SYSTEM "grammar.dtd"> --> |
| 4 |
<!-- |
| 5 |
Copyright (c) 2002 W3C(r) (http://www.w3.org/) (MIT (http://www.lcs.mit.edu/), |
| 6 |
INRIA (http://www.inria.fr/), Keio (http://www.keio.ac.jp/)), |
| 7 |
All Rights Reserved. |
| 8 |
See http://www.w3.org/Consortium/Legal/ipr-notice-20000612#Copyright. |
| 9 |
W3C liability |
| 10 |
(http://www.w3.org/Consortium/Legal/ipr-notice-20000612#Legal_Disclaimer), |
| 11 |
trademark |
| 12 |
(http://www.w3.org/Consortium/Legal/ipr-notice-20000612#W3C_Trademarks), |
| 13 |
document use |
| 14 |
(http://www.w3.org/Consortium/Legal/copyright-documents-19990405), |
| 15 |
and software licensing rules |
| 16 |
(http://www.w3.org/Consortium/Legal/copyright-software-19980720) |
| 17 |
apply. |
| 18 |
--> |
| 19 |
<g:grammar xmlns:g="http://www.w3.org/2001/03/XPath/grammar" > |
| 20 |
<!-- ====================== Meta Information ==================== --> |
| 21 |
<g:language id="xpath" display-name="XPath 2.0" if="xpath"/> |
| 22 |
<g:language id="pathx1" display-name="XPath 1.0" if="pathx1"/> |
| 23 |
<g:language id="xquery" display-name="XQuery 1.0" if="xquery"/> |
| 24 |
<g:language id="core" display-name="XML Processing Formal Semantics Core Language 1.0" if="core"/> |
| 25 |
<g:language id="xslt1-patterns" display-name="XSLT 1.0 Match Patterns" if="pathx1"/> |
| 26 |
<g:language id="xslt-patterns" display-name="XSLT 2.0 Match Patterns" if="xslt-patterns"/> |
| 27 |
<g:language id="update" display-name="XQuery Update Proposal" if="xquery"/> |
| 28 |
<!-- ====================== Entry Point Information ==================== --> |
| 29 |
<g:start name="ExprSingle" state="DEFAULT" if="pathx1"/> |
| 30 |
<g:start name="XPath" state="DEFAULT" if="xpath"/> |
| 31 |
<g:start name="QueryList" state="DEFAULT" if="core"/> |
| 32 |
<g:start name="QueryList" state="DEFAULT" if="xquery"/> |
| 33 |
<g:start name="Pattern" state="DEFAULT" if="xslt-patterns"/> |
| 34 |
<!-- ====================== Lexical Specifications ==================== --> |
| 35 |
<g:token name="IntegerLiteral" inline="false" value-type="number" type="literal"> |
| 36 |
<g:ref name="Digits"/> |
| 37 |
</g:token> |
| 38 |
<g:token name="DecimalLiteral" inline="false" value-type="number" type="literal" whitespace-spec="explicit"> |
| 39 |
<g:choice name="DecimalString"> |
| 40 |
<g:sequence> |
| 41 |
<g:string>.</g:string> |
| 42 |
<g:ref name="Digits"/> |
| 43 |
</g:sequence> |
| 44 |
<g:sequence> |
| 45 |
<g:ref name="Digits"/> |
| 46 |
<g:string>.</g:string> |
| 47 |
<g:zeroOrMore name="DecimalFractionPart"> |
| 48 |
<g:charClass> |
| 49 |
<g:charRange minChar="0" maxChar="9"/> |
| 50 |
</g:charClass> |
| 51 |
</g:zeroOrMore> |
| 52 |
</g:sequence> |
| 53 |
</g:choice> |
| 54 |
</g:token> |
| 55 |
<g:token name="DoubleLiteral" inline="false" value-type="number" type="literal" whitespace-spec="explicit"> |
| 56 |
<g:choice name="DoubleString"> |
| 57 |
<g:sequence> |
| 58 |
<g:string>.</g:string> |
| 59 |
<g:ref name="Digits"/> |
| 60 |
</g:sequence> |
| 61 |
<g:sequence> |
| 62 |
<g:ref name="Digits"/> |
| 63 |
<g:optional name="DoubleOptionFractionPart"> |
| 64 |
<g:string>.</g:string> |
| 65 |
<g:zeroOrMore name="DoubleFractionPart"> |
| 66 |
<g:charClass> |
| 67 |
<g:charRange minChar="0" maxChar="9"/> |
| 68 |
</g:charClass> |
| 69 |
</g:zeroOrMore> |
| 70 |
</g:optional> |
| 71 |
</g:sequence> |
| 72 |
</g:choice> |
| 73 |
<g:charClass> |
| 74 |
<g:char>e</g:char> |
| 75 |
<g:char>E</g:char> |
| 76 |
</g:charClass> |
| 77 |
<g:optional name="DoubleNegOrPos"> |
| 78 |
<g:charClass> |
| 79 |
<g:char>+</g:char> |
| 80 |
<g:char>-</g:char> |
| 81 |
</g:charClass> |
| 82 |
</g:optional> |
| 83 |
<g:ref name="Digits"/> |
| 84 |
</g:token> |
| 85 |
<g:token name="StringLiteral" inline="false" value-type="string" type="literal" whitespace-spec="explicit"> |
| 86 |
<g:choice name="StringDilimitType"> |
| 87 |
<g:sequence> |
| 88 |
<g:string>"</g:string> |
| 89 |
<g:zeroOrMore name="CharsInQuote"> |
| 90 |
<g:choice name="QuoteTypeChar"> |
| 91 |
<g:ref name="PredefinedEntityRef" if="xquery"/> |
| 92 |
<g:ref name="CharRef" if="xquery"/> |
| 93 |
<g:sequence> |
| 94 |
<g:char>"</g:char> |
| 95 |
<g:char>"</g:char> |
| 96 |
</g:sequence> |
| 97 |
<g:complement> |
| 98 |
<g:charClass> |
| 99 |
<g:char>"</g:char> |
| 100 |
<g:char if="xquery">&</g:char> |
| 101 |
</g:charClass> |
| 102 |
</g:complement> |
| 103 |
</g:choice> |
| 104 |
</g:zeroOrMore> |
| 105 |
<g:string>"</g:string> |
| 106 |
</g:sequence> |
| 107 |
<g:sequence> |
| 108 |
<g:string>'</g:string> |
| 109 |
<g:zeroOrMore name="CharsInApos"> |
| 110 |
<g:choice name="AposTypeChar"> |
| 111 |
<g:ref name="PredefinedEntityRef" if="xquery"/> |
| 112 |
<g:ref name="CharRef" if="xquery"/> |
| 113 |
<g:sequence> |
| 114 |
<g:char>'</g:char> |
| 115 |
<g:char>'</g:char> |
| 116 |
</g:sequence> |
| 117 |
<g:complement> |
| 118 |
<g:charClass> |
| 119 |
<g:char>'</g:char> |
| 120 |
<g:char if="xquery">&</g:char> |
| 121 |
</g:charClass> |
| 122 |
</g:complement> |
| 123 |
</g:choice> |
| 124 |
</g:zeroOrMore> |
| 125 |
<g:string>'</g:string> |
| 126 |
</g:sequence> |
| 127 |
</g:choice> |
| 128 |
</g:token> |
| 129 |
<g:token name="StringLiteralForKindTest" alias-for="StringLiteral"/> |
| 130 |
<g:token name="XQueryVersion" if="xquery core"> |
| 131 |
<g:string>xquery</g:string> |
| 132 |
<g:optionalSkip/> |
| 133 |
<g:string>version</g:string> |
| 134 |
</g:token> |
| 135 |
<g:token name="StringLiteralForVersion" alias-for="StringLiteral" if="xquery core"/> |
| 136 |
<g:token name="XQueryEncoding" if="xquery core"> |
| 137 |
<g:string>encoding</g:string> |
| 138 |
</g:token> |
| 139 |
<g:token name="AtStringLiteral" if="xquery core"> |
| 140 |
<g:string>at</g:string> |
| 141 |
<g:optionalSkip/> |
| 142 |
<g:ref name="URLLiteral"/> |
| 143 |
</g:token> |
| 144 |
<g:token name="URLLiteral" alias-for="StringLiteral" if="xquery core"/> |
| 145 |
<g:token name="ModuleNamespace" if="xquery core"> |
| 146 |
<g:string>module</g:string> |
| 147 |
<g:optionalSkip/> |
| 148 |
<g:string>namespace</g:string> |
| 149 |
</g:token> |
| 150 |
<g:skip recognize="DEFAULT OPERATOR KINDTEST NAMESPACEDECL XMLSPACE_DECL SINGLETYPE ITEMTYPE NAMESPACEKEYWORD VARNAME OCCURRENCEINDICATOR CLOSEKINDTEST XQUERYVERSION" |
| 151 |
if="xquery core"> |
| 152 |
<g:choice name="WhiteSpacePatterns"> |
| 153 |
<g:sequence> |
| 154 |
<g:oneOrMore name="SkippedWhitespaceString"> |
| 155 |
<g:ref name="WhitespaceChar"/> |
| 156 |
</g:oneOrMore> |
| 157 |
</g:sequence> |
| 158 |
<!-- g:ref name="Comment"/ --> |
| 159 |
<!-- g:sequence> |
| 160 |
<g:ref name="CommentStart"/> |
| 161 |
<g:zeroOrMore name="WhitespaceCommentContentBody"> |
| 162 |
<g:choice name="WhitespaceCharOrComment"> |
| 163 |
<g:ref name="CommentContent"/> |
| 164 |
</g:choice> |
| 165 |
</g:zeroOrMore> |
| 166 |
<g:ref name="CommentEnd"/> |
| 167 |
</g:sequence --> |
| 168 |
</g:choice> |
| 169 |
</g:skip> |
| 170 |
|
| 171 |
<g:skip recognize="DEFAULT OPERATOR SINGLETYPE ITEMTYPE KINDTEST CLOSEKINDTEST OCCURRENCEINDICATOR VARNAME" |
| 172 |
if="xpath"> |
| 173 |
<g:oneOrMore name="SkippedWhitespaceStringForXPath"> |
| 174 |
<g:ref name="WhitespaceChar"/> |
| 175 |
</g:oneOrMore> |
| 176 |
</g:skip> |
| 177 |
|
| 178 |
<g:token name="NotOccurrenceIndicator" skip="yes"> |
| 179 |
<g:complement> |
| 180 |
<g:charClass> |
| 181 |
<g:char>*</g:char> |
| 182 |
<g:char>?</g:char> |
| 183 |
<g:char>+</g:char> |
| 184 |
</g:charClass> |
| 185 |
</g:complement> |
| 186 |
</g:token> |
| 187 |
<g:skip recognize="DEFAULT OPERATOR QNAME" if="pathx1"> |
| 188 |
<g:oneOrMore name="SkippedWhitespaceStringPathx1"> |
| 189 |
<g:ref name="WhitespaceChar"/> |
| 190 |
</g:oneOrMore> |
| 191 |
</g:skip> |
| 192 |
<g:token name="ProcessingInstructionStart" if="xquery core"> |
| 193 |
<g:string><?</g:string> |
| 194 |
</g:token> |
| 195 |
<g:token name="ProcessingInstructionStartForElementContent" alias-for="ProcessingInstructionStart" if="xquery core"/> |
| 196 |
<g:token name="ProcessingInstructionEnd" if="xquery core"> |
| 197 |
<g:string>?></g:string> |
| 198 |
</g:token> |
| 199 |
<g:token name="AxisChild" value-type="string"> |
| 200 |
<g:string>child</g:string> |
| 201 |
<g:optionalSkip/> |
| 202 |
<g:string>::</g:string> |
| 203 |
</g:token> |
| 204 |
<g:token name="AxisDescendant" value-type="string"> |
| 205 |
<g:string>descendant</g:string> |
| 206 |
<g:optionalSkip/> |
| 207 |
<g:string>::</g:string> |
| 208 |
</g:token> |
| 209 |
<g:token name="AxisParent" value-type="string"> |
| 210 |
<g:string>parent</g:string> |
| 211 |
<g:optionalSkip/> |
| 212 |
<g:string>::</g:string> |
| 213 |
</g:token> |
| 214 |
<g:token name="AxisAttribute" value-type="string"> |
| 215 |
<g:string>attribute</g:string> |
| 216 |
<g:optionalSkip/> |
| 217 |
<g:string>::</g:string> |
| 218 |
</g:token> |
| 219 |
<g:token name="AxisSelf" value-type="string"> |
| 220 |
<g:string>self</g:string> |
| 221 |
<g:optionalSkip/> |
| 222 |
<g:string>::</g:string> |
| 223 |
</g:token> |
| 224 |
<g:token name="AxisDescendantOrSelf" value-type="string"> |
| 225 |
<g:string>descendant-or-self</g:string> |
| 226 |
<g:optionalSkip/> |
| 227 |
<g:string>::</g:string> |
| 228 |
</g:token> |
| 229 |
<g:token name="AxisAncestor" value-type="string" if="xquery xpath core"> |
| 230 |
<g:string>ancestor</g:string> |
| 231 |
<g:optionalSkip/> |
| 232 |
<g:string>::</g:string> |
| 233 |
</g:token> |
| 234 |
<g:token name="AxisFollowingSibling" value-type="string" if="xquery xpath core"> |
| 235 |
<g:string>following-sibling</g:string> |
| 236 |
<g:optionalSkip/> |
| 237 |
<g:string>::</g:string> |
| 238 |
</g:token> |
| 239 |
<g:token name="AxisPrecedingSibling" value-type="string" if="xquery xpath core"> |
| 240 |
<g:string>preceding-sibling</g:string> |
| 241 |
<g:optionalSkip/> |
| 242 |
<g:string>::</g:string> |
| 243 |
</g:token> |
| 244 |
<g:token name="AxisFollowing" value-type="string" if="xquery xpath core"> |
| 245 |
<g:string>following</g:string> |
| 246 |
<g:optionalSkip/> |
| 247 |
<g:string>::</g:string> |
| 248 |
</g:token> |
| 249 |
<g:token name="AxisPreceding" value-type="string" if="xquery xpath core"> |
| 250 |
<g:string>preceding</g:string> |
| 251 |
<g:optionalSkip/> |
| 252 |
<g:string>::</g:string> |
| 253 |
</g:token> |
| 254 |
<g:token name="AxisNamespace" value-type="string" if="xpath core"> |
| 255 |
<g:string>namespace</g:string> |
| 256 |
<g:optionalSkip/> |
| 257 |
<g:string>::</g:string> |
| 258 |
</g:token> |
| 259 |
<g:token name="AxisAncestorOrSelf" value-type="string" if="xquery xpath core"> |
| 260 |
<g:string>ancestor-or-self</g:string> |
| 261 |
<g:optionalSkip/> |
| 262 |
<g:string>::</g:string> |
| 263 |
</g:token> |
| 264 |
<g:token name="DefineElement" if="core"> |
| 265 |
<g:string>define</g:string> |
| 266 |
<g:requiredSkip show="no"/> |
| 267 |
<g:string>element</g:string> |
| 268 |
</g:token> |
| 269 |
<g:token name="DefineAttribute" if="core"> |
| 270 |
<g:string>define</g:string> |
| 271 |
<g:requiredSkip show="no"/> |
| 272 |
<g:string>attribute</g:string> |
| 273 |
</g:token> |
| 274 |
<g:token name="DefineType" if="core"> |
| 275 |
<g:string>define</g:string> |
| 276 |
<g:requiredSkip show="no"/> |
| 277 |
<g:string>type</g:string> |
| 278 |
</g:token> |
| 279 |
<g:token name="DefineFunction" if="xquery core"> |
| 280 |
<g:string>declare</g:string> |
| 281 |
<g:requiredSkip show="no"/> |
| 282 |
<g:string>function</g:string> |
| 283 |
</g:token> |
| 284 |
|
| 285 |
<g:token name="DeclareOrdering" if="xquery core"> |
| 286 |
<g:string>declare</g:string> |
| 287 |
<g:requiredSkip show="no"/> |
| 288 |
<g:string>ordering</g:string> |
| 289 |
</g:token> |
| 290 |
<g:token name="Ordered" if="xquery core"> |
| 291 |
<g:string>ordered</g:string> |
| 292 |
</g:token> |
| 293 |
<g:token name="Unordered"> |
| 294 |
<g:string>unordered</g:string> |
| 295 |
</g:token> |
| 296 |
|
| 297 |
<g:token name="DeclareDefaultOrderingEmpty" if="xquery core"> |
| 298 |
<g:string>declare</g:string> |
| 299 |
<g:requiredSkip show="no"/> |
| 300 |
<g:string>default</g:string> |
| 301 |
<g:requiredSkip show="no"/> |
| 302 |
<g:string>order</g:string> |
| 303 |
</g:token> |
| 304 |
|
| 305 |
<g:token name="DeclareInheritNamespaces" if="xquery core"> |
| 306 |
<g:string>declare</g:string> |
| 307 |
<g:requiredSkip show="no"/> |
| 308 |
<g:string>inherit-namespaces</g:string> |
| 309 |
</g:token> |
| 310 |
<g:token name="Yes" if="xquery core"> |
| 311 |
<g:string>yes</g:string> |
| 312 |
</g:token> |
| 313 |
<g:token name="No"> |
| 314 |
<g:string>no</g:string> |
| 315 |
</g:token> |
| 316 |
|
| 317 |
|
| 318 |
<g:token name="External" if="xquery core"> |
| 319 |
<g:string>external</g:string> |
| 320 |
</g:token> |
| 321 |
<g:token name="Or"> |
| 322 |
<g:string>or</g:string> |
| 323 |
</g:token> |
| 324 |
<g:token name="And"> |
| 325 |
<g:string>and</g:string> |
| 326 |
</g:token> |
| 327 |
<g:token name="Div"> |
| 328 |
<g:string>div</g:string> |
| 329 |
</g:token> |
| 330 |
<g:token name="Idiv"> |
| 331 |
<g:string>idiv</g:string> |
| 332 |
</g:token> |
| 333 |
<g:token name="Mod"> |
| 334 |
<g:string>mod</g:string> |
| 335 |
</g:token> |
| 336 |
<g:token name="Multiply"> |
| 337 |
<g:string>*</g:string> |
| 338 |
</g:token> |
| 339 |
<g:token name="In" if="xpath xquery core"> |
| 340 |
<g:string>in</g:string> |
| 341 |
</g:token> |
| 342 |
<g:token name="PITarget" inline="false" if="xquery core" value-type="string" is-xml="yes" |
| 343 |
xhref="http://www.w3.org/TR/REC-xml#NT-PITarget" comment-id="xml-version"> |
| 344 |
<g:ref name="NCName"/> |
| 345 |
</g:token> |
| 346 |
<g:token name="Prefix" value-type="string" visible="false" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml-names/#NT-Prefix" comment-id="xml-version"> |
| 347 |
<g:ref name="NCName"/> |
| 348 |
</g:token> |
| 349 |
<g:token name="LocalPart" value-type="string" visible="false" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml-names/#NT-LocalPart" comment-id="xml-version"> |
| 350 |
<g:ref name="NCName"/> |
| 351 |
</g:token> |
| 352 |
<g:token name="VariableIndicator" inline="true" node-type="void"> |
| 353 |
<g:string>$</g:string> |
| 354 |
</g:token> |
| 355 |
<g:token name="VarName" inline="false" value-type="string"> |
| 356 |
<g:ref name="QName"/> |
| 357 |
</g:token> |
| 358 |
<g:token name="ValidationMode" if="xquery core" value-type="string" inline="false"> |
| 359 |
<g:choice name="VModeChoice"> |
| 360 |
<g:string>lax</g:string> |
| 361 |
<g:string>strict</g:string> |
| 362 |
</g:choice> |
| 363 |
</g:token> |
| 364 |
<g:token name="SchemaModeForDeclareConstruction" if="xquery core" value-type="string" inline="true"> |
| 365 |
<g:choice name="SMFDVModeChoice"> |
| 366 |
<g:string>preserve</g:string> |
| 367 |
<g:string>strip</g:string> |
| 368 |
</g:choice> |
| 369 |
</g:token> |
| 370 |
<g:token name="Nillable" value-type="id"> |
| 371 |
<g:string>?</g:string> |
| 372 |
</g:token> |
| 373 |
<g:token name="DeclareConstruction" if="xquery core" value-type="string"> |
| 374 |
<g:string>declare</g:string> |
| 375 |
<g:requiredSkip show="no"/> |
| 376 |
<g:string>construction</g:string> |
| 377 |
</g:token> |
| 378 |
<!-- g:token name="SchemaGlobalContextSlash" if="xpath xquery core"> |
| 379 |
<g:ref name="SchemaGlobalContext"/> |
| 380 |
<g:optionalSkip/> |
| 381 |
<g:ref name="Slash"/> |
| 382 |
</g:token --> |
| 383 |
<!-- g:token name="SchemaGlobalTypeName" inline="false"> |
| 384 |
<g:string>type</g:string> |
| 385 |
<g:optionalSkip/> |
| 386 |
<g:string>(</g:string> |
| 387 |
<g:optionalSkip/> |
| 388 |
<!- - g:ref name="TypeName"/ - -> |
| 389 |
<g:ref name="QName"/> |
| 390 |
<g:optionalSkip/> |
| 391 |
<g:string>)</g:string> |
| 392 |
</g:token --> |
| 393 |
<!-- g:token name="SchemaGlobalContext" inline="false" if="xpath xquery core"> |
| 394 |
<g:choice name="SGContext"> |
| 395 |
<!- - g:ref name="ElementName"/ - -> |
| 396 |
<g:ref name="QName"/> |
| 397 |
<g:ref name="SchemaGlobalTypeName"/> |
| 398 |
</g:choice> |
| 399 |
</g:token --> |
| 400 |
<!-- g:token name="SchemaContextStepSlash" if="xpath xquery core"> |
| 401 |
<g:ref name="SchemaContextStep"/> |
| 402 |
<g:optionalSkip/> |
| 403 |
<g:ref name="Slash"/> |
| 404 |
</g:token --> |
| 405 |
<!-- g:token name="SchemaContextStep" inline="false" if="xpath xquery core"> |
| 406 |
<!- - g:ref name="ElementName"/ - -> |
| 407 |
<g:ref name="QName"/> |
| 408 |
</g:token --> |
| 409 |
<!-- g:token name="InContextForKindTest" if="xquery core"> |
| 410 |
<g:string>context</g:string> |
| 411 |
</g:token --> |
| 412 |
<!-- g:token name="Global" if="xquery core"> |
| 413 |
<g:string>global</g:string> |
| 414 |
</g:token --> |
| 415 |
<g:token name="Satisfies" value-type="id"> |
| 416 |
<g:string>satisfies</g:string> |
| 417 |
</g:token> |
| 418 |
<g:token name="Return" node-type="void"> |
| 419 |
<g:string>return</g:string> |
| 420 |
</g:token> |
| 421 |
<g:token name="Then"> |
| 422 |
<g:string>then</g:string> |
| 423 |
</g:token> |
| 424 |
<g:token name="Else"> |
| 425 |
<g:string>else</g:string> |
| 426 |
</g:token> |
| 427 |
<g:token name="Default" if="xquery core"> |
| 428 |
<g:string>default</g:string> |
| 429 |
</g:token> |
| 430 |
<g:token name="DeclareXMLSpace" if="xquery core"> |
| 431 |
<g:string>declare</g:string> |
| 432 |
<g:requiredSkip show="no"/> |
| 433 |
<g:string>xmlspace</g:string> |
| 434 |
</g:token> |
| 435 |
<g:token name="DeclareBaseURI" if="xquery core"> |
| 436 |
<g:string>declare</g:string> |
| 437 |
<g:requiredSkip show="no"/> |
| 438 |
<g:string>base-uri</g:string> |
| 439 |
</g:token> |
| 440 |
<g:token name="XMLSpacePreserve" if="xquery core"> |
| 441 |
<g:string>preserve</g:string> |
| 442 |
</g:token> |
| 443 |
<g:token name="XMLSpaceStrip" if="xquery core"> |
| 444 |
<g:string>strip</g:string> |
| 445 |
</g:token> |
| 446 |
<g:token name="Namespace" if="xquery core"> |
| 447 |
<g:string>namespace</g:string> |
| 448 |
</g:token> |
| 449 |
<g:token name="DeclareNamespace" if="xquery core"> |
| 450 |
<g:string>declare</g:string> |
| 451 |
<g:requiredSkip show="no"/> |
| 452 |
<g:string>namespace</g:string> |
| 453 |
</g:token> |
| 454 |
<g:token name="To"> |
| 455 |
<g:string>to</g:string> |
| 456 |
</g:token> |
| 457 |
<g:token name="Where" if="xquery core"> |
| 458 |
<g:string>where</g:string> |
| 459 |
</g:token> |
| 460 |
<g:token name="Collation" if="xquery core"> |
| 461 |
<g:string>collation</g:string> |
| 462 |
</g:token> |
| 463 |
<g:token name="Intersect"> |
| 464 |
<g:string>intersect</g:string> |
| 465 |
</g:token> |
| 466 |
<g:token name="Union"> |
| 467 |
<g:string>union</g:string> |
| 468 |
</g:token> |
| 469 |
<g:token name="Except"> |
| 470 |
<g:string>except</g:string> |
| 471 |
</g:token> |
| 472 |
<g:token name="As" if="xquery core"> |
| 473 |
<g:string>as</g:string> |
| 474 |
</g:token> |
| 475 |
<g:token name="AtWord" if="xquery core"> |
| 476 |
<g:string>at</g:string> |
| 477 |
</g:token> |
| 478 |
<g:token name="Case" if="xquery core"> |
| 479 |
<g:string>case</g:string> |
| 480 |
</g:token> |
| 481 |
<g:token name="Instanceof"> |
| 482 |
<g:string>instance</g:string> |
| 483 |
<g:requiredSkip show="no"/> |
| 484 |
<g:string>of</g:string> |
| 485 |
</g:token> |
| 486 |
<g:token name="Castable"> |
| 487 |
<g:string>castable</g:string> |
| 488 |
<g:requiredSkip show="no"/> |
| 489 |
<g:string>as</g:string> |
| 490 |
</g:token> |
| 491 |
<g:token name="RparAs" if="xquery core"> |
| 492 |
<g:string>)</g:string> |
| 493 |
<g:optionalSkip/> |
| 494 |
<g:string>as</g:string> |
| 495 |
</g:token> |
| 496 |
<g:token name="Item" value-type="id"> |
| 497 |
<g:string>item</g:string> |
| 498 |
<g:optionalSkip/> |
| 499 |
<g:string>(</g:string> |
| 500 |
<g:optionalSkip/> |
| 501 |
<g:string>)</g:string> |
| 502 |
</g:token> |
| 503 |
<g:token name="ElementType" value-type="id"> |
| 504 |
<g:string>element</g:string> |
| 505 |
<g:optionalSkip/> |
| 506 |
<g:string>(</g:string> |
| 507 |
</g:token> |
| 508 |
<g:token name="AttributeType" value-type="id"> |
| 509 |
<g:string>attribute</g:string> |
| 510 |
<g:optionalSkip/> |
| 511 |
<g:string>(</g:string> |
| 512 |
</g:token> |
| 513 |
<g:token name="SchemaElementType" value-type="id"> |
| 514 |
<g:string>schema-element</g:string> |
| 515 |
<g:optionalSkip/> |
| 516 |
<g:string>(</g:string> |
| 517 |
</g:token> |
| 518 |
<g:token name="SchemaAttributeType" value-type="id"> |
| 519 |
<g:string>schema-attribute</g:string> |
| 520 |
<g:optionalSkip/> |
| 521 |
<g:string>(</g:string> |
| 522 |
</g:token> |
| 523 |
<g:token name="OrderedOpen" if="xquery core"> |
| 524 |
<g:string>ordered</g:string> |
| 525 |
<g:optionalSkip/> |
| 526 |
<g:string>{</g:string> |
| 527 |
</g:token> |
| 528 |
<g:token name="UnorderedOpen" if="xquery core"> |
| 529 |
<g:string>unordered</g:string> |
| 530 |
<g:optionalSkip/> |
| 531 |
<g:string>{</g:string> |
| 532 |
</g:token> |
| 533 |
<g:token name="ElementQNameLbrace" value-type="id" if="xquery core"> |
| 534 |
<g:string>element</g:string> |
| 535 |
<g:requiredSkip show="no"/> |
| 536 |
<g:ref name="QName"/> |
| 537 |
<g:optionalSkip/> |
| 538 |
<g:string>{</g:string> |
| 539 |
</g:token> |
| 540 |
<g:token name="AttributeQNameLbrace" value-type="id" if="xquery core"> |
| 541 |
<g:string>attribute</g:string> |
| 542 |
<g:requiredSkip show="no"/> |
| 543 |
<g:ref name="QName"/> |
| 544 |
<g:optionalSkip/> |
| 545 |
<g:string>{</g:string> |
| 546 |
</g:token> |
| 547 |
<!-- g:token name="NamespaceNCNameLbrace" value-type="id" if="xquery core"> |
| 548 |
<g:string>namespace</g:string> |
| 549 |
<g:optional name="PossibleNCName"> |
| 550 |
<g:requiredSkip show="no"/> |
| 551 |
<g:ref name="NCName"/> |
| 552 |
</g:optional> |
| 553 |
<g:optionalSkip/> |
| 554 |
<g:string>{</g:string> |
| 555 |
</g:token --> |
| 556 |
<g:token name="PINCNameLbrace" value-type="id" if="xquery core"> |
| 557 |
<g:string>processing-instruction</g:string> |
| 558 |
<g:requiredSkip show="no"/> |
| 559 |
<g:ref name="NCName"/> |
| 560 |
<g:optionalSkip/> |
| 561 |
<g:string>{</g:string> |
| 562 |
</g:token> |
| 563 |
<g:token name="PILbrace" value-type="id" if="xquery core"> |
| 564 |
<g:string>processing-instruction</g:string> |
| 565 |
<g:optionalSkip/> |
| 566 |
<g:string>{</g:string> |
| 567 |
</g:token> |
| 568 |
<g:token name="CommentLbrace" value-type="id" if="xquery core"> |
| 569 |
<g:string>comment</g:string> |
| 570 |
<g:optionalSkip/> |
| 571 |
<g:string>{</g:string> |
| 572 |
</g:token> |
| 573 |
<g:token name="ElementLbrace" value-type="id" if="xquery core"> |
| 574 |
<g:string>element</g:string> |
| 575 |
<g:optionalSkip/> |
| 576 |
<g:string>{</g:string> |
| 577 |
</g:token> |
| 578 |
<g:token name="AttributeLbrace" value-type="id" if="xquery core"> |
| 579 |
<g:string>attribute</g:string> |
| 580 |
<g:optionalSkip/> |
| 581 |
<g:string>{</g:string> |
| 582 |
</g:token> |
| 583 |
<g:token name="TextLbrace" value-type="id" if="xquery core"> |
| 584 |
<g:string>text</g:string> |
| 585 |
<g:optionalSkip/> |
| 586 |
<g:string>{</g:string> |
| 587 |
</g:token> |
| 588 |
<g:token name="DeclareCollation" if="xquery core"> |
| 589 |
<g:string>declare</g:string> |
| 590 |
<g:requiredSkip show="no"/> |
| 591 |
<g:string>default</g:string> |
| 592 |
<g:requiredSkip show="no"/> |
| 593 |
<g:string>collation</g:string> |
| 594 |
</g:token> |
| 595 |
<g:token name="DefaultElement" if="xquery core"> |
| 596 |
<g:string>default</g:string> |
| 597 |
<g:requiredSkip show="no"/> |
| 598 |
<g:string>element</g:string> |
| 599 |
</g:token> |
| 600 |
<g:token name="DeclareDefaultElement" if="xquery core"> |
| 601 |
<g:string>declare</g:string> |
| 602 |
<g:requiredSkip show="no"/> |
| 603 |
<g:string>default</g:string> |
| 604 |
<g:requiredSkip show="no"/> |
| 605 |
<g:string>element</g:string> |
| 606 |
</g:token> |
| 607 |
<g:token name="DeclareDefaultFunction" if="xquery core"> |
| 608 |
<g:string>declare</g:string> |
| 609 |
<g:requiredSkip show="no"/> |
| 610 |
<g:string>default</g:string> |
| 611 |
<g:requiredSkip show="no"/> |
| 612 |
<g:string>function</g:string> |
| 613 |
</g:token> |
| 614 |
<g:token name="Type" if="core" value-type="id"> |
| 615 |
<g:string>type</g:string> |
| 616 |
</g:token> |
| 617 |
<g:token name="EmptyTok" if="xquery core xpath" value-type="id"> |
| 618 |
<g:string>empty</g:string> |
| 619 |
<g:optionalSkip/> |
| 620 |
<g:string>(</g:string> |
| 621 |
<g:optionalSkip/> |
| 622 |
<g:string>)</g:string> |
| 623 |
</g:token> |
| 624 |
<g:token name="None" if="core"> |
| 625 |
<g:string>none</g:string> |
| 626 |
</g:token> |
| 627 |
<g:token name="ImportSchemaToken" if="xquery core"> |
| 628 |
<g:string>import</g:string> |
| 629 |
<g:requiredSkip show="no"/> |
| 630 |
<g:string>schema</g:string> |
| 631 |
</g:token> |
| 632 |
<g:token name="ImportModuleToken" if="xquery core"> |
| 633 |
<g:string>import</g:string> |
| 634 |
<g:requiredSkip show="no"/> |
| 635 |
<g:string>module</g:string> |
| 636 |
</g:token> |
| 637 |
<g:token name="Nmstart" inline="false" visible="false"> |
| 638 |
<g:choice name="NmstartChar"> |
| 639 |
<g:ref name="Letter"/> |
| 640 |
<g:string>_</g:string> |
| 641 |
</g:choice> |
| 642 |
</g:token> |
| 643 |
<g:token name="Nmchar" inline="false" visible="false"> |
| 644 |
<g:choice name="NmcharChoice"> |
| 645 |
<g:ref name="Letter"/> |
| 646 |
<g:ref name="CombiningChar"/> |
| 647 |
<g:ref name="Extender"/> |
| 648 |
<g:ref name="Digit"/> |
| 649 |
<g:string>.</g:string> |
| 650 |
<g:string>-</g:string> |
| 651 |
<g:string>_</g:string> |
| 652 |
</g:choice> |
| 653 |
</g:token> |
| 654 |
<g:token name="Star" value-type="string"> |
| 655 |
<g:string>*</g:string> |
| 656 |
</g:token> |
| 657 |
<g:token name="AnyName" alias-for="Star"/> |
| 658 |
<g:token name="NCNameColonStar" value-type="string"> |
| 659 |
<g:ref name="NCName"/> |
| 660 |
<g:string>:</g:string> |
| 661 |
<g:string>*</g:string> |
| 662 |
</g:token> |
| 663 |
<g:token name="StarColonNCName" value-type="string"> |
| 664 |
<g:string>*</g:string> |
| 665 |
<g:string>:</g:string> |
| 666 |
<g:ref name="NCName"/> |
| 667 |
</g:token> |
| 668 |
<g:token name="Root" value-type="id"> |
| 669 |
<g:string>/</g:string> |
| 670 |
</g:token> |
| 671 |
<g:token name="RootDescendants" value-type="id"> |
| 672 |
<g:string>//</g:string> |
| 673 |
</g:token> |
| 674 |
<g:token name="Slash"> |
| 675 |
<g:string>/</g:string> |
| 676 |
</g:token> |
| 677 |
<g:token name="SlashSlash"> |
| 678 |
<g:string>//</g:string> |
| 679 |
</g:token> |
| 680 |
<g:token name="Equals"> |
| 681 |
<g:string>=</g:string> |
| 682 |
</g:token> |
| 683 |
<g:token name="AssignEquals" if="xquery core"> |
| 684 |
<g:string>=</g:string> |
| 685 |
</g:token> |
| 686 |
<g:token name="Is"> |
| 687 |
<g:string>is</g:string> |
| 688 |
</g:token> |
| 689 |
<g:token name="NotEquals"> |
| 690 |
<g:string>!=</g:string> |
| 691 |
</g:token> |
| 692 |
<g:token name="LtEquals"> |
| 693 |
<g:string><=</g:string> |
| 694 |
</g:token> |
| 695 |
<g:token name="LtLt"> |
| 696 |
<g:string><<</g:string> |
| 697 |
</g:token> |
| 698 |
<g:token name="GtEquals"> |
| 699 |
<g:string>>=</g:string> |
| 700 |
</g:token> |
| 701 |
<g:token name="GtGt"> |
| 702 |
<g:string>>></g:string> |
| 703 |
</g:token> |
| 704 |
<g:token name="FortranEq"> |
| 705 |
<g:string>eq</g:string> |
| 706 |
</g:token> |
| 707 |
<g:token name="FortranNe"> |
| 708 |
<g:string>ne</g:string> |
| 709 |
</g:token> |
| 710 |
<g:token name="FortranGt"> |
| 711 |
<g:string>gt</g:string> |
| 712 |
</g:token> |
| 713 |
<g:token name="FortranGe"> |
| 714 |
<g:string>ge</g:string> |
| 715 |
</g:token> |
| 716 |
<g:token name="FortranLt"> |
| 717 |
<g:string>lt</g:string> |
| 718 |
</g:token> |
| 719 |
<g:token name="FortranLe"> |
| 720 |
<g:string>le</g:string> |
| 721 |
</g:token> |
| 722 |
<g:token name="ColonEquals" if="xquery core"> |
| 723 |
<g:string>:=</g:string> |
| 724 |
</g:token> |
| 725 |
<g:token name="Lt"> |
| 726 |
<g:string><</g:string> |
| 727 |
</g:token> |
| 728 |
<g:token name="Gt"> |
| 729 |
<g:string>></g:string> |
| 730 |
</g:token> |
| 731 |
<g:token name="Minus" value-type="id"> |
| 732 |
<g:string>-</g:string> |
| 733 |
</g:token> |
| 734 |
<g:token name="Plus" value-type="id"> |
| 735 |
<g:string>+</g:string> |
| 736 |
</g:token> |
| 737 |
<g:token name="UnaryMinus" alias-for="Minus"/> |
| 738 |
<g:token name="UnaryPlus" alias-for="Plus"/> |
| 739 |
<g:token name="OccurrenceZeroOrOne"> |
| 740 |
<g:string>?</g:string> |
| 741 |
</g:token> |
| 742 |
<g:token name="OccurrenceZeroOrMore" alias-for="Star"/> |
| 743 |
<g:token name="OccurrenceOneOrMore" alias-for="Plus"/> |
| 744 |
<g:token name="Vbar"> |
| 745 |
<g:string>|</g:string> |
| 746 |
</g:token> |
| 747 |
<g:token name="Lpar" node-type="void"> |
| 748 |
<g:string>(</g:string> |
| 749 |
</g:token> |
| 750 |
<g:token name="At"> |
| 751 |
<g:string>@</g:string> |
| 752 |
</g:token> |
| 753 |
<g:token name="Lbrack"> |
| 754 |
<g:string>[</g:string> |
| 755 |
</g:token> |
| 756 |
<g:token name="Rbrack"> |
| 757 |
<g:string>]</g:string> |
| 758 |
</g:token> |
| 759 |
<g:token name="Rpar" node-type="void"> |
| 760 |
<g:string>)</g:string> |
| 761 |
</g:token> |
| 762 |
<g:token name="RparForKindTest" alias-for="Rpar" node-type="void"/> |
| 763 |
<g:token name="Some" value-type="id"> |
| 764 |
<g:string>some</g:string> |
| 765 |
<g:optionalSkip/> |
| 766 |
<g:ref name="VariableIndicator"/> |
| 767 |
</g:token> |
| 768 |
<g:token name="Every" value-type="id"> |
| 769 |
<g:string>every</g:string> |
| 770 |
<g:optionalSkip/> |
| 771 |
<g:ref name="VariableIndicator"/> |
| 772 |
</g:token> |
| 773 |
<g:token name="ForVariable" override="yes" if="xpath xquery core" node-type="void"> |
| 774 |
<g:string>for</g:string> |
| 775 |
<g:optionalSkip/> |
| 776 |
<g:ref name="VariableIndicator"/> |
| 777 |
</g:token> |
| 778 |
<g:token name="LetVariable" if="xquery core"> |
| 779 |
<g:string>let</g:string> |
| 780 |
<g:optionalSkip/> |
| 781 |
<g:ref name="VariableIndicator"/> |
| 782 |
</g:token> |
| 783 |
<g:token name="CastAs"> |
| 784 |
<g:string>cast</g:string> |
| 785 |
<g:requiredSkip show="no"/> |
| 786 |
<g:string>as</g:string> |
| 787 |
</g:token> |
| 788 |
<g:token name="TreatAs"> |
| 789 |
<g:string>treat</g:string> |
| 790 |
<g:requiredSkip show="no"/> |
| 791 |
<g:string>as</g:string> |
| 792 |
</g:token> |
| 793 |
<!-- start update proposal tokens --> |
| 794 |
<g:token name="UpdateTok" if="update"> |
| 795 |
<g:string>update</g:string> |
| 796 |
</g:token> |
| 797 |
<g:token name="UpdateListOpen" if="update"> |
| 798 |
<g:string>{</g:string> |
| 799 |
</g:token> |
| 800 |
<g:token name="UpdateListClose" if="update"> |
| 801 |
<g:string>}</g:string> |
| 802 |
</g:token> |
| 803 |
<g:token name="UpdateListSep" if="update"> |
| 804 |
<g:string>;</g:string> |
| 805 |
</g:token> |
| 806 |
<g:token name="InsertTok" if="update"> |
| 807 |
<g:string>insert</g:string> |
| 808 |
</g:token> |
| 809 |
<g:token name="DeleteTok" if="update"> |
| 810 |
<g:string>delete</g:string> |
| 811 |
</g:token> |
| 812 |
<g:token name="ReplaceTok" if="update"> |
| 813 |
<g:string>replace</g:string> |
| 814 |
</g:token> |
| 815 |
<g:token name="ValueOf" if="update"> |
| 816 |
<g:string>value</g:string> |
| 817 |
<g:requiredSkip show="no"/> |
| 818 |
<g:string>of</g:string> |
| 819 |
</g:token> |
| 820 |
<g:token name="With" if="update"> |
| 821 |
<g:string>with</g:string> |
| 822 |
</g:token> |
| 823 |
<g:token name="Do" if="update"> |
| 824 |
<g:string>do</g:string> |
| 825 |
</g:token> |
| 826 |
<g:token name="AsLast" if="update"> |
| 827 |
<g:string>as</g:string> |
| 828 |
<g:requiredSkip show="no"/> |
| 829 |
<g:string>last</g:string> |
| 830 |
</g:token> |
| 831 |
<g:token name="AsFirst" if="update"> |
| 832 |
<g:string>as</g:string> |
| 833 |
<g:requiredSkip show="no"/> |
| 834 |
<g:string>first</g:string> |
| 835 |
</g:token> |
| 836 |
<g:token name="Into" if="update"> |
| 837 |
<g:string>into</g:string> |
| 838 |
</g:token> |
| 839 |
<g:token name="After" if="update"> |
| 840 |
<g:string>after</g:string> |
| 841 |
</g:token> |
| 842 |
<g:token name="Before" if="update"> |
| 843 |
<g:string>before</g:string> |
| 844 |
</g:token> |
| 845 |
<g:token name="UpdateOpenUpdateList" if="update"> |
| 846 |
<g:string>update</g:string> |
| 847 |
<g:optionalSkip/> |
| 848 |
<g:string>{</g:string> |
| 849 |
</g:token> |
| 850 |
<g:token name="UpdateLookaheadFor" if="update"> |
| 851 |
<g:string>update</g:string> |
| 852 |
<g:requiredSkip show="no"/> |
| 853 |
<g:string>for</g:string> |
| 854 |
</g:token> |
| 855 |
<g:token name="UpdateLookaheadLet" if="update"> |
| 856 |
<g:string>update</g:string> |
| 857 |
<g:requiredSkip show="no"/> |
| 858 |
<g:string>let</g:string> |
| 859 |
</g:token> |
| 860 |
<g:token name="UpdateLookaheadIf" if="update"> |
| 861 |
<g:string>update</g:string> |
| 862 |
<g:requiredSkip show="no"/> |
| 863 |
<g:string>if</g:string> |
| 864 |
</g:token> |
| 865 |
<g:token name="UpdateLookaheadInsert" if="update"> |
| 866 |
<g:string>update</g:string> |
| 867 |
<g:requiredSkip show="no"/> |
| 868 |
<g:string>insert</g:string> |
| 869 |
</g:token> |
| 870 |
<g:token name="UpdateLookaheadReplace" if="update"> |
| 871 |
<g:string>update</g:string> |
| 872 |
<g:requiredSkip show="no"/> |
| 873 |
<g:string>replace</g:string> |
| 874 |
</g:token> |
| 875 |
<g:token name="UpdateLookaheadDelete" if="update"> |
| 876 |
<g:string>update</g:string> |
| 877 |
<g:requiredSkip show="no"/> |
| 878 |
<g:string>delete</g:string> |
| 879 |
</g:token> |
| 880 |
<!--===============================--> |
| 881 |
<g:token name="Validate" if="xquery core" exposition-only="yes"> |
| 882 |
<g:string>validate</g:string> |
| 883 |
</g:token> |
| 884 |
<g:token name="ValidateLbrace" if="xquery core"> |
| 885 |
<g:string>validate</g:string> |
| 886 |
<g:optionalSkip/> |
| 887 |
<g:string>{</g:string> |
| 888 |
</g:token> |
| 889 |
<!-- g:token name="ValidateContext" if="xquery core"> |
| 890 |
<g:string>validate</g:string> |
| 891 |
<g:requiredSkip show="no"/> |
| 892 |
<g:string>context</g:string> |
| 893 |
</g:token --> |
| 894 |
<!-- g:token name="ValidateGlobal" if="xquery core"> |
| 895 |
<g:string>validate</g:string> |
| 896 |
<g:requiredSkip show="no"/> |
| 897 |
<g:string>global</g:string> |
| 898 |
</g:token --> |
| 899 |
<g:token name="ValidateSchemaMode" if="xquery core"> |
| 900 |
<g:string>validate</g:string> |
| 901 |
<g:requiredSkip show="no"/> |
| 902 |
<g:ref name="ValidationMode"/> |
| 903 |
</g:token> |
| 904 |
<g:token name="Digits" inline="false"> |
| 905 |
<g:oneOrMore name="DigitsString"> |
| 906 |
<g:charClass> |
| 907 |
<g:charRange minChar="0" maxChar="9"/> |
| 908 |
</g:charClass> |
| 909 |
</g:oneOrMore> |
| 910 |
</g:token> |
| 911 |
<g:token name="DocumentLpar" override="yes" if="xquery core xpath" value-type="id"> |
| 912 |
<g:string>document-node</g:string> |
| 913 |
<g:optionalSkip/> |
| 914 |
<g:string>(</g:string> |
| 915 |
</g:token> |
| 916 |
<g:token name="DocumentLparForKindTest" alias-for="DocumentLpar"/> |
| 917 |
<g:token name="DocumentLbrace" override="yes" if="xquery core" value-type="id"> |
| 918 |
<g:string>document</g:string> |
| 919 |
<g:optionalSkip/> |
| 920 |
<g:string>{</g:string> |
| 921 |
</g:token> |
| 922 |
<g:token name="NodeLpar" if="xquery core xpath" node-type="void"> |
| 923 |
<g:string>node</g:string> |
| 924 |
<g:optionalSkip/> |
| 925 |
<g:string>(</g:string> |
| 926 |
</g:token> |
| 927 |
<g:token name="CommentLpar" override="yes" if="xquery core xpath" node-type="void"> |
| 928 |
<g:string>comment</g:string> |
| 929 |
<g:optionalSkip/> |
| 930 |
<g:string>(</g:string> |
| 931 |
</g:token> |
| 932 |
<g:token name="TextLpar" override="yes" if="xquery core xpath" node-type="void"> |
| 933 |
<g:string>text</g:string> |
| 934 |
<g:optionalSkip/> |
| 935 |
<g:string>(</g:string> |
| 936 |
</g:token> |
| 937 |
<g:token name="ProcessingInstructionLpar" override="yes" if="xquery core xpath" node-type="void"> |
| 938 |
<g:string>processing-instruction</g:string> |
| 939 |
<g:optionalSkip/> |
| 940 |
<g:string>(</g:string> |
| 941 |
</g:token> |
| 942 |
<g:token name="ElementTypeForKindTest" alias-for="ElementType"/> |
| 943 |
<g:token name="ElementTypeForDocumentTest" alias-for="ElementType"/> |
| 944 |
<g:token name="AttributeTypeForKindTest" alias-for="AttributeType"/> |
| 945 |
<g:token name="SchemaElementTypeForKindTest" alias-for="SchemaElementType"/> |
| 946 |
<g:token name="SchemaElementTypeForDocumentTest" alias-for="SchemaElementType"/> |
| 947 |
<g:token name="SchemaAttributeTypeForKindTest" alias-for="SchemaAttributeType"/> |
| 948 |
<g:token name="ProcessingInstructionLparForKindTest" alias-for="ProcessingInstructionLpar"/> |
| 949 |
<g:token name="TextLparForKindTest" alias-for="TextLpar"/> |
| 950 |
<g:token name="CommentLparForKindTest" alias-for="CommentLpar"/> |
| 951 |
<g:token name="NodeLparForKindTest" alias-for="NodeLpar"/> |
| 952 |
<g:token name="IfLpar" override="yes" if="xquery core xpath"> |
| 953 |
<g:string>if</g:string> |
| 954 |
<g:optionalSkip/> |
| 955 |
<g:string>(</g:string> |
| 956 |
</g:token> |
| 957 |
<g:token name="TypeswitchLpar" override="yes" if="xquery core" node-type="void"> |
| 958 |
<g:string>typeswitch</g:string> |
| 959 |
<g:optionalSkip/> |
| 960 |
<g:string>(</g:string> |
| 961 |
</g:token> |
| 962 |
<g:token name="Comma" node-type="void"> |
| 963 |
<g:string>,</g:string> |
| 964 |
</g:token> |
| 965 |
<g:token name="CommaForKindTest" alias-for="Comma"/> |
| 966 |
<g:token name="SemiColon" if="xquery core" show="yes" node-type="void"> |
| 967 |
<g:string>;</g:string> |
| 968 |
</g:token> |
| 969 |
<g:token name="QuerySeparator" if="xquery core" show="no" node-type="void"> |
| 970 |
<g:string>%%%</g:string> |
| 971 |
</g:token> |
| 972 |
|
| 973 |
<!-- OpenQuot and CloseQuote need to be before StringLiteral in |
| 974 |
order for them to be matched by flex. --> |
| 975 |
<g:token name="OpenQuot" if="xquery core"> |
| 976 |
<g:string>"</g:string> |
| 977 |
</g:token> |
| 978 |
<g:token name="CloseQuot" if="xquery core"> |
| 979 |
<g:string>"</g:string> |
| 980 |
</g:token> |
| 981 |
<g:token name="Dot" value-type="id"> |
| 982 |
<g:string>.</g:string> |
| 983 |
</g:token> |
| 984 |
<g:token name="DotDot" value-type="id"> |
| 985 |
<g:string>..</g:string> |
| 986 |
</g:token> |
| 987 |
<g:token name="OrderBy" if="xquery core"> |
| 988 |
<g:string>order</g:string> |
| 989 |
<g:requiredSkip show="no"/> |
| 990 |
<g:string>by</g:string> |
| 991 |
</g:token> |
| 992 |
<g:token name="OrderByStable" if="xquery core"> |
| 993 |
<g:string>stable</g:string> |
| 994 |
<g:requiredSkip show="no"/> |
| 995 |
<g:string>order</g:string> |
| 996 |
<g:requiredSkip show="no"/> |
| 997 |
<g:string>by</g:string> |
| 998 |
</g:token> |
| 999 |
<g:token name="Ascending" if="xquery core" value-type="id"> |
| 1000 |
<g:string>ascending</g:string> |
| 1001 |
</g:token> |
| 1002 |
<g:token name="Descending" if="xquery core" value-type="id"> |
| 1003 |
<g:string>descending</g:string> |
| 1004 |
</g:token> |
| 1005 |
<g:token name="EmptyGreatest" if="xquery core" value-type="id"> |
| 1006 |
<g:string>empty</g:string> |
| 1007 |
<g:requiredSkip show="no"/> |
| 1008 |
<g:string>greatest</g:string> |
| 1009 |
</g:token> |
| 1010 |
<g:token name="EmptyLeast" if="xquery core" value-type="id"> |
| 1011 |
<g:string>empty</g:string> |
| 1012 |
<g:requiredSkip show="no"/> |
| 1013 |
<g:string>least</g:string> |
| 1014 |
</g:token> |
| 1015 |
|
| 1016 |
<g:token name="DefineVariable" value-type="string" if="xquery core"> |
| 1017 |
<g:string>declare</g:string> |
| 1018 |
<g:requiredSkip show="no"/> |
| 1019 |
<g:string>variable</g:string> |
| 1020 |
<g:optionalSkip/> |
| 1021 |
<g:ref name="VariableIndicator"/> |
| 1022 |
</g:token> |
| 1023 |
<g:token name="QNameForSequenceType" alias-for="QName"/> |
| 1024 |
<g:token name="QNameForAtomicType" alias-for="QName"/> |
| 1025 |
<g:token name="QNameForItemType" alias-for="QName"/> |
| 1026 |
<g:token name="ExtensionQName" type="skip-token" inline="true" if="xquery" special="yes" alias-for="QName"/> |
| 1027 |
<g:token name="IDLpar" value-type="string" if="pathx1" sub-spec="xslt-patterns"> |
| 1028 |
<g:string>id</g:string> |
| 1029 |
<g:optionalSkip/> |
| 1030 |
<g:string>(</g:string> |
| 1031 |
</g:token> |
| 1032 |
<g:token name="KeyLpar" value-type="string" if="pathx1" sub-spec="xslt-patterns"> |
| 1033 |
<g:string>key</g:string> |
| 1034 |
<g:optionalSkip/> |
| 1035 |
<g:string>(</g:string> |
| 1036 |
</g:token> |
| 1037 |
<g:token name="QNameLpar" value-type="string"> |
| 1038 |
<g:ref name="QName"/> |
| 1039 |
<g:optionalSkip/> |
| 1040 |
<g:string>(</g:string> |
| 1041 |
</g:token> |
| 1042 |
<g:token name="NCNameForPrefix" alias-for="NCName" if="xquery core"/> |
| 1043 |
<g:token name="NCNameForPI" alias-for="NCName"/> |
| 1044 |
<g:token name="CdataSectionStart" if="xquery core"> |
| 1045 |
<g:string><![CDATA[</g:string> |
| 1046 |
</g:token> |
| 1047 |
<g:token name="CdataSectionStartForElementContent" alias-for="CdataSectionStart" if="xquery core"/> |
| 1048 |
<!-- Recognizing it in content disallows ]]> in content same as XML. --> |
| 1049 |
<g:token name="CdataSectionEnd" if="xquery core"> |
| 1050 |
<g:string>]]></g:string> |
| 1051 |
</g:token> |
| 1052 |
<!-- This effectively disallows in element content and attribute |
| 1053 |
values ampersands that are not part of entity or character |
| 1054 |
references. --> |
| 1055 |
<g:token name="Amp" override="yes" if="core"> |
| 1056 |
<g:string>&</g:string> |
| 1057 |
</g:token> |
| 1058 |
<g:token name="PredefinedEntityRef" if="xquery core" inline="false" whitespace-spec="explicit" force-delimiting="yes"> |
| 1059 |
<g:string>&</g:string> |
| 1060 |
<g:choice name="PredefinedEntityNames"> |
| 1061 |
<g:string>lt</g:string> |
| 1062 |
<g:string>gt</g:string> |
| 1063 |
<g:string>amp</g:string> |
| 1064 |
<g:string>quot</g:string> |
| 1065 |
<g:string>apos</g:string> |
| 1066 |
</g:choice> |
| 1067 |
<g:string>;</g:string> |
| 1068 |
</g:token> |
| 1069 |
<g:token name="CharRef" if="xquery" inline="false" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml#NT-CharRef" comment-id="xml-version" force-delimiting="yes"> |
| 1070 |
<g:string>&#</g:string> |
| 1071 |
<g:choice name="CharRefChars"> |
| 1072 |
<g:ref name="Digits"/> |
| 1073 |
<g:sequence> |
| 1074 |
<g:string>x</g:string> |
| 1075 |
<g:ref name="HexDigits"/> |
| 1076 |
</g:sequence> |
| 1077 |
</g:choice> |
| 1078 |
<g:string>;</g:string> |
| 1079 |
</g:token> |
| 1080 |
<g:token name="HexDigits" inline="false" if="xquery" show="no" visible="false"> |
| 1081 |
<g:oneOrMore name="HexDigitsString"> |
| 1082 |
<g:charClass> |
| 1083 |
<g:charRange minChar="0" maxChar="9"/> |
| 1084 |
<g:charRange minChar="a" maxChar="f"/> |
| 1085 |
<g:charRange minChar="A" maxChar="F"/> |
| 1086 |
</g:charClass> |
| 1087 |
</g:oneOrMore> |
| 1088 |
</g:token> |
| 1089 |
<g:token name="StartTagOpen" override="yes" if="xquery"> |
| 1090 |
<g:string><</g:string> |
| 1091 |
</g:token> |
| 1092 |
<g:token name="StartTagOpenRoot" override="yes" if="xquery"> |
| 1093 |
<g:string><</g:string> |
| 1094 |
</g:token> |
| 1095 |
<g:token name="StartTagClose" if="xquery"> |
| 1096 |
<g:string>></g:string> |
| 1097 |
</g:token> |
| 1098 |
<g:token name="EmptyTagClose" if="xquery"> |
| 1099 |
<g:string>/></g:string> |
| 1100 |
</g:token> |
| 1101 |
<g:token name="EndTagOpen" if="xquery"> |
| 1102 |
<g:string></</g:string> |
| 1103 |
</g:token> |
| 1104 |
<g:token name="EndTagClose" if="xquery"> |
| 1105 |
<g:string>></g:string> |
| 1106 |
</g:token> |
| 1107 |
<g:token name="ValueIndicator" if="xquery"> |
| 1108 |
<g:string>=</g:string> |
| 1109 |
</g:token> |
| 1110 |
<g:token name="TagQName" if="xquery"> |
| 1111 |
<g:ref name="QName"/> |
| 1112 |
</g:token> |
| 1113 |
<!-- Recognize in OPERATOR state for function definitions. --> |
| 1114 |
<!-- These should be query only, once we get the validate issue fixed! --> |
| 1115 |
<g:token name="Lbrace" if="xquery core" override="yes"> |
| 1116 |
<g:string>{</g:string> |
| 1117 |
</g:token> |
| 1118 |
<g:token name="LbraceExprEnclosure" if="xquery core" override="yes"> |
| 1119 |
<g:string>{</g:string> |
| 1120 |
</g:token> |
| 1121 |
<g:token name="LCurlyBraceEscape" if="xquery core" override="yes"> |
| 1122 |
<g:string>{{</g:string> |
| 1123 |
</g:token> |
| 1124 |
<g:token name="RCurlyBraceEscape" if="xquery core" override="yes"> |
| 1125 |
<g:string>}}</g:string> |
| 1126 |
</g:token> |
| 1127 |
|
| 1128 |
<!-- Should only be recognized in attribute content. --> |
| 1129 |
<g:token name="EscapeQuot" inline="false" override="yes" if="xquery" force-delimiting="yes"> |
| 1130 |
<!-- g:sequence> |
| 1131 |
<g:char>"</g:char> |
| 1132 |
<g:char>"</g:char> |
| 1133 |
</g:sequence --> |
| 1134 |
<g:string>""</g:string> |
| 1135 |
</g:token> |
| 1136 |
|
| 1137 |
<g:token name="EscapeApos" inline="false" if="xquery" force-delimiting="yes"> |
| 1138 |
<g:string>''</g:string> |
| 1139 |
</g:token> |
| 1140 |
|
| 1141 |
<g:token name="ElementContentChar" if="xquery core" inline="false" value-type="string" subtract-reg-expr="[{}<&]"> |
| 1142 |
<g:ref name="Char"/> |
| 1143 |
</g:token> |
| 1144 |
<g:token name="QuotAttrContentChar" if="xquery core" inline="false" value-type="string" subtract-reg-expr="["{}<&]"> |
| 1145 |
<g:ref name="Char"/> |
| 1146 |
</g:token> |
| 1147 |
<g:token name="AposAttrContentChar" if="xquery core" inline="false" value-type="string" subtract-reg-expr="['{}<&]"> |
| 1148 |
<g:ref name="Char"/> |
| 1149 |
</g:token> |
| 1150 |
|
| 1151 |
<g:token name="CommentContentChar" if="xquery core"> |
| 1152 |
<g:ref name="Char" subtract-reg-expr="'-'"/> |
| 1153 |
</g:token> |
| 1154 |
|
| 1155 |
<g:token name="CommentContentCharDash" if="xquery core"> |
| 1156 |
<g:char force-quote="single">-</g:char> |
| 1157 |
<g:ref name="Char" subtract-reg-expr="'-'"/> |
| 1158 |
</g:token> |
| 1159 |
|
| 1160 |
<g:token name="PIContentChar" if="xquery core" alias-for="Char"/> |
| 1161 |
<g:token name="CDataSectionChar" if="xquery core" alias-for="Char"/> |
| 1162 |
|
| 1163 |
<g:token name="OpenApos" if="xquery"> |
| 1164 |
<g:string>'</g:string> |
| 1165 |
</g:token> |
| 1166 |
<g:token name="CloseApos" override="yes" if="xquery"> |
| 1167 |
<g:string>'</g:string> |
| 1168 |
</g:token> |
| 1169 |
|
| 1170 |
|
| 1171 |
<g:token name="Pragma" if="xquery" special="yes" inline="false" type="skip-token" whitespace-spec="explicit" force-delimiting="yes"> |
| 1172 |
<g:ref name="ExtensionStart"/> |
| 1173 |
<g:optional name="PragmaWhitespace1"> |
| 1174 |
<g:ref name="SForExt"/> |
| 1175 |
</g:optional> |
| 1176 |
<g:ref name="PragmaKeyword"/> |
| 1177 |
<g:ref name="SForExt"/> |
| 1178 |
<g:ref name="ExtensionQName"/> |
| 1179 |
<g:optional name="PragmaOptContent"> |
| 1180 |
<g:ref name="SForExt"/> |
| 1181 |
<g:ref name="ExtensionContents"/> |
| 1182 |
<!-- g:zeroOrMore name="PragmaContentsBody" subtract-reg-expr="(Char* '::)' Char*)"> |
| 1183 |
<g:ref name="ExtensionContentChar"/> |
| 1184 |
</g:zeroOrMore --> |
| 1185 |
</g:optional> |
| 1186 |
<g:ref name="ExtensionEnd"/> |
| 1187 |
</g:token> |
| 1188 |
<g:token name="MUExtension" if="xquery" special="yes" inline="false" type="skip-token" whitespace-spec="explicit"> |
| 1189 |
<g:ref name="ExtensionStart"/> |
| 1190 |
<g:optional name="MUESpace1"> |
| 1191 |
<g:ref name="SForExt"/> |
| 1192 |
</g:optional> |
| 1193 |
<g:ref name="Extension"/> |
| 1194 |
<g:ref name="SForExt"/> |
| 1195 |
<g:ref name="ExtensionQName"/> |
| 1196 |
<g:optional name="MUEOptionalContent"> |
| 1197 |
<g:ref name="SForExt"/> |
| 1198 |
<g:ref name="ExtensionContents"/> |
| 1199 |
<!-- g:zeroOrMore name="ExtensionContentsBody" subtract-reg-expr="(Char* '::)' Char*)"> |
| 1200 |
<g:ref name="ExtensionContentChar"/> |
| 1201 |
</g:zeroOrMore --> |
| 1202 |
</g:optional> |
| 1203 |
<g:ref name="ExtensionEnd"/> |
| 1204 |
</g:token> |
| 1205 |
<g:token name="ExtensionContents" if="xquery" special="yes" inline="false"> |
| 1206 |
<g:zeroOrMore name="PragmaContentsBody" subtract-reg-expr="(Char* '::)' Char*)"> |
| 1207 |
<g:ref name="ExtensionContentChar"/> |
| 1208 |
</g:zeroOrMore> |
| 1209 |
</g:token> |
| 1210 |
<g:token name="ExtensionStart" if="xquery" special="yes" inline="true" type="skip-token"> |
| 1211 |
<g:string>(::</g:string> |
| 1212 |
</g:token> |
| 1213 |
<g:token name="ExtensionContentChar" if="xquery" special="yes" inline="true" type="skip-token"> |
| 1214 |
<g:ref name="Char"/> |
| 1215 |
</g:token> |
| 1216 |
<g:token name="ExtensionEnd" if="xquery" special="yes" inline="true" type="skip-token"> |
| 1217 |
<g:string>::)</g:string> |
| 1218 |
</g:token> |
| 1219 |
<g:token name="Comment" if="xquery core xpath" inline="false" |
| 1220 |
comment-id="comments" |
| 1221 |
skip="yes" type="skip-token" whitespace-spec="explicit" |
| 1222 |
force-delimiting="yes" |
| 1223 |
> |
| 1224 |
<g:ref name="CommentStart"/> |
| 1225 |
<g:zeroOrMore name="OptionalCommentContent"> |
| 1226 |
<g:choice name="CharOrComment"> |
| 1227 |
<g:ref name="CommentContents"/> |
| 1228 |
<g:ref name="Comment" notational-only="yes"/> |
| 1229 |
</g:choice> |
| 1230 |
</g:zeroOrMore> |
| 1231 |
<g:ref name="CommentEnd"/> |
| 1232 |
</g:token> |
| 1233 |
<g:token name="CommentContents" special="yes" inline="false"> |
| 1234 |
<g:oneOrMore name="CommentContentBody" |
| 1235 |
subtract-reg-expr="(Char* ':)' Char*)"> |
| 1236 |
<g:ref name="CommentContent"/> |
| 1237 |
</g:oneOrMore> |
| 1238 |
</g:token> |
| 1239 |
<g:token name="CommentStart" if="xquery core xpath" special="yes" inline="true" type="skip-token" comment-id="comments"> |
| 1240 |
<g:string>(:</g:string> |
| 1241 |
</g:token> |
| 1242 |
<!-- For the moment removed special="yes" from CommentContent--> |
| 1243 |
<g:token name="CommentContent" if="xquery core xpath" special="yes" inline="true" type="skip-token"> |
| 1244 |
<g:ref name="Char"/> |
| 1245 |
</g:token> |
| 1246 |
|
| 1247 |
<g:token name="CommentEnd" if="xquery core xpath" special="yes" inline="true" type="skip-token"> |
| 1248 |
<g:string>:)</g:string> |
| 1249 |
</g:token> |
| 1250 |
<g:token name="PragmaKeyword" inline="true" special="yes" if="xquery" type="skip-token"> |
| 1251 |
<g:string>pragma</g:string> |
| 1252 |
</g:token> |
| 1253 |
<g:token name="Extension" inline="true" special="yes" if="xquery" type="skip-token"> |
| 1254 |
<g:string>extension</g:string> |
| 1255 |
</g:token> |
| 1256 |
<g:token name="XmlCommentStart" if="xquery"> |
| 1257 |
<g:string><!--</g:string> |
| 1258 |
</g:token> |
| 1259 |
<g:token name="XmlCommentStartForElementContent" alias-for="XmlCommentStart" if="xquery"/> |
| 1260 |
<g:token name="XmlCommentEnd" if="xquery"> |
| 1261 |
<g:string>--></g:string> |
| 1262 |
</g:token> |
| 1263 |
|
| 1264 |
<g:token name="QName" inline="false" value-type="string" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml-names/#NT-QName" comment-id="xml-version"> |
| 1265 |
<g:optional name="QNamePrefixAndDelimiter"> |
| 1266 |
<g:ref name="Prefix"/> |
| 1267 |
<g:string>:</g:string> |
| 1268 |
</g:optional> |
| 1269 |
<g:ref name="LocalPart"/> |
| 1270 |
</g:token> |
| 1271 |
|
| 1272 |
<g:token name="NCName" inline="false" value-type="string" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml-names/#NT-NCName" comment-id="xml-version"> |
| 1273 |
<g:ref name="Nmstart"/> |
| 1274 |
<g:zeroOrMore name="NCNameTail"> |
| 1275 |
<g:ref name="Nmchar"/> |
| 1276 |
</g:zeroOrMore> |
| 1277 |
</g:token> |
| 1278 |
|
| 1279 |
<g:token name="S" inline="false" if="xquery core" is-xml="yes" comment-id="xml-version" xhref="http://www.w3.org/TR/REC-xml#NT-S" force-delimiting="yes"> |
| 1280 |
<g:oneOrMore name="SignificantWhitespace"> |
| 1281 |
<g:ref name="WhitespaceChar"/> |
| 1282 |
</g:oneOrMore> |
| 1283 |
</g:token> |
| 1284 |
<g:token name="SForPI" alias-for="S" if="xquery core"/> |
| 1285 |
<g:token name="SForExt" alias-for="S" if="xquery core" special="yes"/> |
| 1286 |
<!-- This needs to come after the rules for special characters. --> |
| 1287 |
<g:token name="Char" if="xquery core xpath" is-macro="yes" inline="false" value-type="string" is-xml="yes" comment-id="xml-version" xhref="http://www.w3.org/TR/REC-xml#NT-Char"> |
| 1288 |
<g:charClass> |
| 1289 |
<g:charCode value="0009"/> |
| 1290 |
<g:charCode value="000D"/> |
| 1291 |
<g:charCode value="000A"/> |
| 1292 |
<!-- This isn't quite right, but JavaCC doesn't understand surrogates. --> |
| 1293 |
<g:charCodeRange minValue="0020" maxValue="FFFD"/> |
| 1294 |
</g:charClass> |
| 1295 |
</g:token> |
| 1296 |
<g:token name="Rbrace" if="xquery core" override="yes"> |
| 1297 |
<g:string>}</g:string> |
| 1298 |
</g:token> |
| 1299 |
<!-- It would be nice to not take character content runs one character |
| 1300 |
at a time. However, it seems difficult to say, "all these characters |
| 1301 |
but these three", at least in JavaCC. --> |
| 1302 |
<!-- token name="CharData" if="xquery" inline="true" value-type="string"> |
| 1303 |
<g:oneOrMore> |
| 1304 |
<g:complement> |
| 1305 |
<g:charClass> |
| 1306 |
<g:char><</g:char> |
| 1307 |
<g:char>&</g:char> |
| 1308 |
<g:char>{</g:char> |
| 1309 |
</g:charClass> |
| 1310 |
</g:complement> |
| 1311 |
</g:oneOrMore> |
| 1312 |
</g:token --> |
| 1313 |
<g:token name="WhitespaceChar" inline="false" visible="false"> |
| 1314 |
<g:charClass> |
| 1315 |
<g:charCode value="0009"/> |
| 1316 |
<g:charCode value="000D"/> |
| 1317 |
<g:charCode value="000A"/> |
| 1318 |
<!-- char xml:space="preserve"> </g:char --> |
| 1319 |
<!-- SGML mode in EMacs doesn't like xml:space, so |
| 1320 |
we avoid it for now. --> |
| 1321 |
<g:charCode value="0020"/> |
| 1322 |
</g:charClass> |
| 1323 |
</g:token> |
| 1324 |
<g:token name="Letter" inline="false" is-macro="yes" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml#NT-Letter" comment-id="xml-version" visible="false"> |
| 1325 |
<g:choice name="LetterChars"> |
| 1326 |
<g:ref name="BaseChar"/> |
| 1327 |
<g:ref name="Ideographic"/> |
| 1328 |
</g:choice> |
| 1329 |
</g:token> |
| 1330 |
<g:token name="BaseChar" inline="false" is-macro="yes" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml#NT-BaseChar" comment-id="xml-version" visible="false"> |
| 1331 |
<g:charClass> |
| 1332 |
<g:charCodeRange minValue="0041" maxValue="005a"/> |
| 1333 |
<g:charCodeRange minValue="0061" maxValue="007a"/> |
| 1334 |
<g:charCodeRange minValue="00c0" maxValue="00d6"/> |
| 1335 |
<g:charCodeRange minValue="00d8" maxValue="00f6"/> |
| 1336 |
<g:charCodeRange minValue="00f8" maxValue="00ff"/> |
| 1337 |
<g:charCodeRange minValue="0100" maxValue="0131"/> |
| 1338 |
<g:charCodeRange minValue="0134" maxValue="013e"/> |
| 1339 |
<g:charCodeRange minValue="0141" maxValue="0148"/> |
| 1340 |
<g:charCodeRange minValue="014a" maxValue="017e"/> |
| 1341 |
<g:charCodeRange minValue="0180" maxValue="01c3"/> |
| 1342 |
<g:charCodeRange minValue="01cd" maxValue="01f0"/> |
| 1343 |
<g:charCodeRange minValue="01f4" maxValue="01f5"/> |
| 1344 |
<g:charCodeRange minValue="01fa" maxValue="0217"/> |
| 1345 |
<g:charCodeRange minValue="0250" maxValue="02a8"/> |
| 1346 |
<g:charCodeRange minValue="02bb" maxValue="02c1"/> |
| 1347 |
<g:charCode value="0386"/> |
| 1348 |
<g:charCodeRange minValue="0388" maxValue="038a"/> |
| 1349 |
<g:charCode value="038c"/> |
| 1350 |
<g:charCodeRange minValue="038e" maxValue="03a1"/> |
| 1351 |
<g:charCodeRange minValue="03a3" maxValue="03ce"/> |
| 1352 |
<g:charCodeRange minValue="03d0" maxValue="03d6"/> |
| 1353 |
<g:charCode value="03da"/> |
| 1354 |
<g:charCode value="03dc"/> |
| 1355 |
<g:charCode value="03de"/> |
| 1356 |
<g:charCode value="03e0"/> |
| 1357 |
<g:charCodeRange minValue="03e2" maxValue="03f3"/> |
| 1358 |
<g:charCodeRange minValue="0401" maxValue="040c"/> |
| 1359 |
<g:charCodeRange minValue="040e" maxValue="044f"/> |
| 1360 |
<g:charCodeRange minValue="0451" maxValue="045c"/> |
| 1361 |
<g:charCodeRange minValue="045e" maxValue="0481"/> |
| 1362 |
<g:charCodeRange minValue="0490" maxValue="04c4"/> |
| 1363 |
<g:charCodeRange minValue="04c7" maxValue="04c8"/> |
| 1364 |
<g:charCodeRange minValue="04cb" maxValue="04cc"/> |
| 1365 |
<g:charCodeRange minValue="04d0" maxValue="04eb"/> |
| 1366 |
<g:charCodeRange minValue="04ee" maxValue="04f5"/> |
| 1367 |
<g:charCodeRange minValue="04f8" maxValue="04f9"/> |
| 1368 |
<g:charCodeRange minValue="0531" maxValue="0556"/> |
| 1369 |
<g:charCode value="0559"/> |
| 1370 |
<g:charCodeRange minValue="0561" maxValue="0586"/> |
| 1371 |
<g:charCodeRange minValue="05d0" maxValue="05ea"/> |
| 1372 |
<g:charCodeRange minValue="05f0" maxValue="05f2"/> |
| 1373 |
<g:charCodeRange minValue="0621" maxValue="063a"/> |
| 1374 |
<g:charCodeRange minValue="0641" maxValue="064a"/> |
| 1375 |
<g:charCodeRange minValue="0671" maxValue="06b7"/> |
| 1376 |
<g:charCodeRange minValue="06ba" maxValue="06be"/> |
| 1377 |
<g:charCodeRange minValue="06c0" maxValue="06ce"/> |
| 1378 |
<g:charCodeRange minValue="06d0" maxValue="06d3"/> |
| 1379 |
<g:charCode value="06d5"/> |
| 1380 |
<g:charCodeRange minValue="06e5" maxValue="06e6"/> |
| 1381 |
<g:charCodeRange minValue="0905" maxValue="0939"/> |
| 1382 |
<g:charCode value="093d"/> |
| 1383 |
<g:charCodeRange minValue="0958" maxValue="0961"/> |
| 1384 |
<g:charCodeRange minValue="0985" maxValue="098c"/> |
| 1385 |
<g:charCodeRange minValue="098f" maxValue="0990"/> |
| 1386 |
<g:charCodeRange minValue="0993" maxValue="09a8"/> |
| 1387 |
<g:charCodeRange minValue="09aa" maxValue="09b0"/> |
| 1388 |
<g:charCode value="09b2"/> |
| 1389 |
<g:charCodeRange minValue="09b6" maxValue="09b9"/> |
| 1390 |
<g:charCodeRange minValue="09dc" maxValue="09dd"/> |
| 1391 |
<g:charCodeRange minValue="09df" maxValue="09e1"/> |
| 1392 |
<g:charCodeRange minValue="09f0" maxValue="09f1"/> |
| 1393 |
<g:charCodeRange minValue="0a05" maxValue="0a0a"/> |
| 1394 |
<g:charCodeRange minValue="0a0f" maxValue="0a10"/> |
| 1395 |
<g:charCodeRange minValue="0a13" maxValue="0a28"/> |
| 1396 |
<g:charCodeRange minValue="0a2a" maxValue="0a30"/> |
| 1397 |
<g:charCodeRange minValue="0a32" maxValue="0a33"/> |
| 1398 |
<g:charCodeRange minValue="0a35" maxValue="0a36"/> |
| 1399 |
<g:charCodeRange minValue="0a38" maxValue="0a39"/> |
| 1400 |
<g:charCodeRange minValue="0a59" maxValue="0a5c"/> |
| 1401 |
<g:charCode value="0a5e"/> |
| 1402 |
<g:charCodeRange minValue="0a72" maxValue="0a74"/> |
| 1403 |
<g:charCodeRange minValue="0a85" maxValue="0a8b"/> |
| 1404 |
<g:charCode value="0a8d"/> |
| 1405 |
<g:charCodeRange minValue="0a8f" maxValue="0a91"/> |
| 1406 |
<g:charCodeRange minValue="0a93" maxValue="0aa8"/> |
| 1407 |
<g:charCodeRange minValue="0aaa" maxValue="0ab0"/> |
| 1408 |
<g:charCodeRange minValue="0ab2" maxValue="0ab3"/> |
| 1409 |
<g:charCodeRange minValue="0ab5" maxValue="0ab9"/> |
| 1410 |
<g:charCode value="0abd"/> |
| 1411 |
<g:charCode value="0ae0"/> |
| 1412 |
<g:charCodeRange minValue="0b05" maxValue="0b0c"/> |
| 1413 |
<g:charCodeRange minValue="0b0f" maxValue="0b10"/> |
| 1414 |
<g:charCodeRange minValue="0b13" maxValue="0b28"/> |
| 1415 |
<g:charCodeRange minValue="0b2a" maxValue="0b30"/> |
| 1416 |
<g:charCodeRange minValue="0b32" maxValue="0b33"/> |
| 1417 |
<g:charCodeRange minValue="0b36" maxValue="0b39"/> |
| 1418 |
<g:charCode value="0b3d"/> |
| 1419 |
<g:charCodeRange minValue="0b5c" maxValue="0b5d"/> |
| 1420 |
<g:charCodeRange minValue="0b5f" maxValue="0b61"/> |
| 1421 |
<g:charCodeRange minValue="0b85" maxValue="0b8a"/> |
| 1422 |
<g:charCodeRange minValue="0b8e" maxValue="0b90"/> |
| 1423 |
<g:charCodeRange minValue="0b92" maxValue="0b95"/> |
| 1424 |
<g:charCodeRange minValue="0b99" maxValue="0b9a"/> |
| 1425 |
<g:charCode value="0b9c"/> |
| 1426 |
<g:charCodeRange minValue="0b9e" maxValue="0b9f"/> |
| 1427 |
<g:charCodeRange minValue="0ba3" maxValue="0ba4"/> |
| 1428 |
<g:charCodeRange minValue="0ba8" maxValue="0baa"/> |
| 1429 |
<g:charCodeRange minValue="0bae" maxValue="0bb5"/> |
| 1430 |
<g:charCodeRange minValue="0bb7" maxValue="0bb9"/> |
| 1431 |
<g:charCodeRange minValue="0c05" maxValue="0c0c"/> |
| 1432 |
<g:charCodeRange minValue="0c0e" maxValue="0c10"/> |
| 1433 |
<g:charCodeRange minValue="0c12" maxValue="0c28"/> |
| 1434 |
<g:charCodeRange minValue="0c2a" maxValue="0c33"/> |
| 1435 |
<g:charCodeRange minValue="0c35" maxValue="0c39"/> |
| 1436 |
<g:charCodeRange minValue="0c60" maxValue="0c61"/> |
| 1437 |
<g:charCodeRange minValue="0c85" maxValue="0c8c"/> |
| 1438 |
<g:charCodeRange minValue="0c8e" maxValue="0c90"/> |
| 1439 |
<g:charCodeRange minValue="0c92" maxValue="0ca8"/> |
| 1440 |
<g:charCodeRange minValue="0caa" maxValue="0cb3"/> |
| 1441 |
<g:charCodeRange minValue="0cb5" maxValue="0cb9"/> |
| 1442 |
<g:charCode value="0cde"/> |
| 1443 |
<g:charCodeRange minValue="0ce0" maxValue="0ce1"/> |
| 1444 |
<g:charCodeRange minValue="0d05" maxValue="0d0c"/> |
| 1445 |
<g:charCodeRange minValue="0d0e" maxValue="0d10"/> |
| 1446 |
<g:charCodeRange minValue="0d12" maxValue="0d28"/> |
| 1447 |
<g:charCodeRange minValue="0d2a" maxValue="0d39"/> |
| 1448 |
<g:charCodeRange minValue="0d60" maxValue="0d61"/> |
| 1449 |
<g:charCodeRange minValue="0e01" maxValue="0e2e"/> |
| 1450 |
<g:charCode value="0e30"/> |
| 1451 |
<g:charCodeRange minValue="0e32" maxValue="0e33"/> |
| 1452 |
<g:charCodeRange minValue="0e40" maxValue="0e45"/> |
| 1453 |
<g:charCodeRange minValue="0e81" maxValue="0e82"/> |
| 1454 |
<g:charCode value="0e84"/> |
| 1455 |
<g:charCodeRange minValue="0e87" maxValue="0e88"/> |
| 1456 |
<g:charCode value="0e8a"/> |
| 1457 |
<g:charCode value="0e8d"/> |
| 1458 |
<g:charCodeRange minValue="0e94" maxValue="0e97"/> |
| 1459 |
<g:charCodeRange minValue="0e99" maxValue="0e9f"/> |
| 1460 |
<g:charCodeRange minValue="0ea1" maxValue="0ea3"/> |
| 1461 |
<g:charCode value="0ea5"/> |
| 1462 |
<g:charCode value="0ea7"/> |
| 1463 |
<g:charCodeRange minValue="0eaa" maxValue="0eab"/> |
| 1464 |
<g:charCodeRange minValue="0ead" maxValue="0eae"/> |
| 1465 |
<g:charCode value="0eb0"/> |
| 1466 |
<g:charCodeRange minValue="0eb2" maxValue="0eb3"/> |
| 1467 |
<g:charCode value="0ebd"/> |
| 1468 |
<g:charCodeRange minValue="0ec0" maxValue="0ec4"/> |
| 1469 |
<g:charCodeRange minValue="0f40" maxValue="0f47"/> |
| 1470 |
<g:charCodeRange minValue="0f49" maxValue="0f69"/> |
| 1471 |
<g:charCodeRange minValue="10a0" maxValue="10c5"/> |
| 1472 |
<g:charCodeRange minValue="10d0" maxValue="10f6"/> |
| 1473 |
<g:charCode value="1100"/> |
| 1474 |
<g:charCodeRange minValue="1102" maxValue="1103"/> |
| 1475 |
<g:charCodeRange minValue="1105" maxValue="1107"/> |
| 1476 |
<g:charCode value="1109"/> |
| 1477 |
<g:charCodeRange minValue="110b" maxValue="110c"/> |
| 1478 |
<g:charCodeRange minValue="110e" maxValue="1112"/> |
| 1479 |
<g:charCode value="113c"/> |
| 1480 |
<g:charCode value="113e"/> |
| 1481 |
<g:charCode value="1140"/> |
| 1482 |
<g:charCode value="114c"/> |
| 1483 |
<g:charCode value="114e"/> |
| 1484 |
<g:charCode value="1150"/> |
| 1485 |
<g:charCodeRange minValue="1154" maxValue="1155"/> |
| 1486 |
<g:charCode value="1159"/> |
| 1487 |
<g:charCodeRange minValue="115f" maxValue="1161"/> |
| 1488 |
<g:charCode value="1163"/> |
| 1489 |
<g:charCode value="1165"/> |
| 1490 |
<g:charCode value="1167"/> |
| 1491 |
<g:charCode value="1169"/> |
| 1492 |
<g:charCodeRange minValue="116d" maxValue="116e"/> |
| 1493 |
<g:charCodeRange minValue="1172" maxValue="1173"/> |
| 1494 |
<g:charCode value="1175"/> |
| 1495 |
<g:charCode value="119e"/> |
| 1496 |
<g:charCode value="11a8"/> |
| 1497 |
<g:charCode value="11ab"/> |
| 1498 |
<g:charCodeRange minValue="11ae" maxValue="11af"/> |
| 1499 |
<g:charCodeRange minValue="11b7" maxValue="11b8"/> |
| 1500 |
<g:charCode value="11ba"/> |
| 1501 |
<g:charCodeRange minValue="11bc" maxValue="11c2"/> |
| 1502 |
<g:charCode value="11eb"/> |
| 1503 |
<g:charCode value="11f0"/> |
| 1504 |
<g:charCode value="11f9"/> |
| 1505 |
<g:charCodeRange minValue="1e00" maxValue="1e9b"/> |
| 1506 |
<g:charCodeRange minValue="1ea0" maxValue="1ef9"/> |
| 1507 |
<g:charCodeRange minValue="1f00" maxValue="1f15"/> |
| 1508 |
<g:charCodeRange minValue="1f18" maxValue="1f1d"/> |
| 1509 |
<g:charCodeRange minValue="1f20" maxValue="1f45"/> |
| 1510 |
<g:charCodeRange minValue="1f48" maxValue="1f4d"/> |
| 1511 |
<g:charCodeRange minValue="1f50" maxValue="1f57"/> |
| 1512 |
<g:charCode value="1f59"/> |
| 1513 |
<g:charCode value="1f5b"/> |
| 1514 |
<g:charCode value="1f5d"/> |
| 1515 |
<g:charCodeRange minValue="1f5f" maxValue="1f7d"/> |
| 1516 |
<g:charCodeRange minValue="1f80" maxValue="1fb4"/> |
| 1517 |
<g:charCodeRange minValue="1fb6" maxValue="1fbc"/> |
| 1518 |
<g:charCode value="1fbe"/> |
| 1519 |
<g:charCodeRange minValue="1fc2" maxValue="1fc4"/> |
| 1520 |
<g:charCodeRange minValue="1fc6" maxValue="1fcc"/> |
| 1521 |
<g:charCodeRange minValue="1fd0" maxValue="1fd3"/> |
| 1522 |
<g:charCodeRange minValue="1fd6" maxValue="1fdb"/> |
| 1523 |
<g:charCodeRange minValue="1fe0" maxValue="1fec"/> |
| 1524 |
<g:charCodeRange minValue="1ff2" maxValue="1ff4"/> |
| 1525 |
<g:charCodeRange minValue="1ff6" maxValue="1ffc"/> |
| 1526 |
<g:charCode value="2126"/> |
| 1527 |
<g:charCodeRange minValue="212a" maxValue="212b"/> |
| 1528 |
<g:charCode value="212e"/> |
| 1529 |
<g:charCodeRange minValue="2180" maxValue="2182"/> |
| 1530 |
<g:charCodeRange minValue="3041" maxValue="3094"/> |
| 1531 |
<g:charCodeRange minValue="30a1" maxValue="30fa"/> |
| 1532 |
<g:charCodeRange minValue="3105" maxValue="312c"/> |
| 1533 |
<g:charCodeRange minValue="ac00" maxValue="d7a3"/> |
| 1534 |
</g:charClass> |
| 1535 |
</g:token> |
| 1536 |
<g:token name="Ideographic" inline="false" is-macro="yes" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml#NT-Ideographic" comment-id="xml-version" visible="false"> |
| 1537 |
<g:charClass> |
| 1538 |
<g:charCodeRange minValue="4e00" maxValue="9fa5"/> |
| 1539 |
<g:charCode value="3007"/> |
| 1540 |
<g:charCodeRange minValue="3021" maxValue="3029"/> |
| 1541 |
</g:charClass> |
| 1542 |
</g:token> |
| 1543 |
<g:token name="CombiningChar" inline="false" is-macro="yes" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml#NT-CombiningChar" comment-id="xml-version" visible="false"> |
| 1544 |
<g:charClass> |
| 1545 |
<g:charCodeRange minValue="0300" maxValue="0345"/> |
| 1546 |
<g:charCodeRange minValue="0360" maxValue="0361"/> |
| 1547 |
<g:charCodeRange minValue="0483" maxValue="0486"/> |
| 1548 |
<g:charCodeRange minValue="0591" maxValue="05a1"/> |
| 1549 |
<g:charCodeRange minValue="05a3" maxValue="05b9"/> |
| 1550 |
<g:charCodeRange minValue="05bb" maxValue="05bd"/> |
| 1551 |
<g:charCode value="05bf"/> |
| 1552 |
<g:charCodeRange minValue="05c1" maxValue="05c2"/> |
| 1553 |
<g:charCode value="05c4"/> |
| 1554 |
<g:charCodeRange minValue="064b" maxValue="0652"/> |
| 1555 |
<g:charCode value="0670"/> |
| 1556 |
<g:charCodeRange minValue="06d6" maxValue="06dc"/> |
| 1557 |
<g:charCodeRange minValue="06dd" maxValue="06df"/> |
| 1558 |
<g:charCodeRange minValue="06e0" maxValue="06e4"/> |
| 1559 |
<g:charCodeRange minValue="06e7" maxValue="06e8"/> |
| 1560 |
<g:charCodeRange minValue="06ea" maxValue="06ed"/> |
| 1561 |
<g:charCodeRange minValue="0901" maxValue="0903"/> |
| 1562 |
<g:charCode value="093c"/> |
| 1563 |
<g:charCodeRange minValue="093e" maxValue="094c"/> |
| 1564 |
<g:charCode value="094d"/> |
| 1565 |
<g:charCodeRange minValue="0951" maxValue="0954"/> |
| 1566 |
<g:charCodeRange minValue="0962" maxValue="0963"/> |
| 1567 |
<g:charCodeRange minValue="0981" maxValue="0983"/> |
| 1568 |
<g:charCode value="09bc"/> |
| 1569 |
<g:charCode value="09be"/> |
| 1570 |
<g:charCode value="09bf"/> |
| 1571 |
<g:charCodeRange minValue="09c0" maxValue="09c4"/> |
| 1572 |
<g:charCodeRange minValue="09c7" maxValue="09c8"/> |
| 1573 |
<g:charCodeRange minValue="09cb" maxValue="09cd"/> |
| 1574 |
<g:charCode value="09d7"/> |
| 1575 |
<g:charCodeRange minValue="09e2" maxValue="09e3"/> |
| 1576 |
<g:charCode value="0a02"/> |
| 1577 |
<g:charCode value="0a3c"/> |
| 1578 |
<g:charCode value="0a3e"/> |
| 1579 |
<g:charCode value="0a3f"/> |
| 1580 |
<g:charCodeRange minValue="0a40" maxValue="0a42"/> |
| 1581 |
<g:charCodeRange minValue="0a47" maxValue="0a48"/> |
| 1582 |
<g:charCodeRange minValue="0a4b" maxValue="0a4d"/> |
| 1583 |
<g:charCodeRange minValue="0a70" maxValue="0a71"/> |
| 1584 |
<g:charCodeRange minValue="0a81" maxValue="0a83"/> |
| 1585 |
<g:charCode value="0abc"/> |
| 1586 |
<g:charCodeRange minValue="0abe" maxValue="0ac5"/> |
| 1587 |
<g:charCodeRange minValue="0ac7" maxValue="0ac9"/> |
| 1588 |
<g:charCodeRange minValue="0acb" maxValue="0acd"/> |
| 1589 |
<g:charCodeRange minValue="0b01" maxValue="0b03"/> |
| 1590 |
<g:charCode value="0b3c"/> |
| 1591 |
<g:charCodeRange minValue="0b3e" maxValue="0b43"/> |
| 1592 |
<g:charCodeRange minValue="0b47" maxValue="0b48"/> |
| 1593 |
<g:charCodeRange minValue="0b4b" maxValue="0b4d"/> |
| 1594 |
<g:charCodeRange minValue="0b56" maxValue="0b57"/> |
| 1595 |
<g:charCodeRange minValue="0b82" maxValue="0b83"/> |
| 1596 |
<g:charCodeRange minValue="0bbe" maxValue="0bc2"/> |
| 1597 |
<g:charCodeRange minValue="0bc6" maxValue="0bc8"/> |
| 1598 |
<g:charCodeRange minValue="0bca" maxValue="0bcd"/> |
| 1599 |
<g:charCode value="0bd7"/> |
| 1600 |
<g:charCodeRange minValue="0c01" maxValue="0c03"/> |
| 1601 |
<g:charCodeRange minValue="0c3e" maxValue="0c44"/> |
| 1602 |
<g:charCodeRange minValue="0c46" maxValue="0c48"/> |
| 1603 |
<g:charCodeRange minValue="0c4a" maxValue="0c4d"/> |
| 1604 |
<g:charCodeRange minValue="0c55" maxValue="0c56"/> |
| 1605 |
<g:charCodeRange minValue="0c82" maxValue="0c83"/> |
| 1606 |
<g:charCodeRange minValue="0cbe" maxValue="0cc4"/> |
| 1607 |
<g:charCodeRange minValue="0cc6" maxValue="0cc8"/> |
| 1608 |
<g:charCodeRange minValue="0cca" maxValue="0ccd"/> |
| 1609 |
<g:charCodeRange minValue="0cd5" maxValue="0cd6"/> |
| 1610 |
<g:charCodeRange minValue="0d02" maxValue="0d03"/> |
| 1611 |
<g:charCodeRange minValue="0d3e" maxValue="0d43"/> |
| 1612 |
<g:charCodeRange minValue="0d46" maxValue="0d48"/> |
| 1613 |
<g:charCodeRange minValue="0d4a" maxValue="0d4d"/> |
| 1614 |
<g:charCode value="0d57"/> |
| 1615 |
<g:charCode value="0e31"/> |
| 1616 |
<g:charCodeRange minValue="0e34" maxValue="0e3a"/> |
| 1617 |
<g:charCodeRange minValue="0e47" maxValue="0e4e"/> |
| 1618 |
<g:charCode value="0eb1"/> |
| 1619 |
<g:charCodeRange minValue="0eb4" maxValue="0eb9"/> |
| 1620 |
<g:charCodeRange minValue="0ebb" maxValue="0ebc"/> |
| 1621 |
<g:charCodeRange minValue="0ec8" maxValue="0ecd"/> |
| 1622 |
<g:charCodeRange minValue="0f18" maxValue="0f19"/> |
| 1623 |
<g:charCode value="0f35"/> |
| 1624 |
<g:charCode value="0f37"/> |
| 1625 |
<g:charCode value="0f39"/> |
| 1626 |
<g:charCode value="0f3e"/> |
| 1627 |
<g:charCode value="0f3f"/> |
| 1628 |
<g:charCodeRange minValue="0f71" maxValue="0f84"/> |
| 1629 |
<g:charCodeRange minValue="0f86" maxValue="0f8b"/> |
| 1630 |
<g:charCodeRange minValue="0f90" maxValue="0f95"/> |
| 1631 |
<g:charCode value="0f97"/> |
| 1632 |
<g:charCodeRange minValue="0f99" maxValue="0fad"/> |
| 1633 |
<g:charCodeRange minValue="0fb1" maxValue="0fb7"/> |
| 1634 |
<g:charCode value="0fb9"/> |
| 1635 |
<g:charCodeRange minValue="20d0" maxValue="20dc"/> |
| 1636 |
<g:charCode value="20e1"/> |
| 1637 |
<g:charCodeRange minValue="302a" maxValue="302f"/> |
| 1638 |
<g:charCode value="3099"/> |
| 1639 |
<g:charCode value="309a"/> |
| 1640 |
</g:charClass> |
| 1641 |
</g:token> |
| 1642 |
<g:token name="Digit" inline="false" is-macro="yes" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml#NT-Digit" visible="false"> |
| 1643 |
<g:charClass> |
| 1644 |
<g:charCodeRange minValue="0030" maxValue="0039"/> |
| 1645 |
<g:charCodeRange minValue="0660" maxValue="0669"/> |
| 1646 |
<g:charCodeRange minValue="06f0" maxValue="06f9"/> |
| 1647 |
<g:charCodeRange minValue="0966" maxValue="096f"/> |
| 1648 |
<g:charCodeRange minValue="09e6" maxValue="09ef"/> |
| 1649 |
<g:charCodeRange minValue="0a66" maxValue="0a6f"/> |
| 1650 |
<g:charCodeRange minValue="0ae6" maxValue="0aef"/> |
| 1651 |
<g:charCodeRange minValue="0b66" maxValue="0b6f"/> |
| 1652 |
<g:charCodeRange minValue="0be7" maxValue="0bef"/> |
| 1653 |
<g:charCodeRange minValue="0c66" maxValue="0c6f"/> |
| 1654 |
<g:charCodeRange minValue="0ce6" maxValue="0cef"/> |
| 1655 |
<g:charCodeRange minValue="0d66" maxValue="0d6f"/> |
| 1656 |
<g:charCodeRange minValue="0e50" maxValue="0e59"/> |
| 1657 |
<g:charCodeRange minValue="0ed0" maxValue="0ed9"/> |
| 1658 |
<g:charCodeRange minValue="0f20" maxValue="0f29"/> |
| 1659 |
</g:charClass> |
| 1660 |
</g:token> |
| 1661 |
<g:token name="Extender" inline="false" is-macro="yes" is-xml="yes" xhref="http://www.w3.org/TR/REC-xml#NT-Extender" comment-id="xml-version" visible="false"> |
| 1662 |
<g:charClass> |
| 1663 |
<g:charCode value="00b7"/> |
| 1664 |
<g:charCode value="02d0"/> |
| 1665 |
<g:charCode value="02d1"/> |
| 1666 |
<g:charCode value="0387"/> |
| 1667 |
<g:charCode value="0640"/> |
| 1668 |
<g:charCode value="0e46"/> |
| 1669 |
<g:charCode value="0ec6"/> |
| 1670 |
<g:charCode value="3005"/> |
| 1671 |
<g:charCodeRange minValue="3031" maxValue="3035"/> |
| 1672 |
<g:charCodeRange minValue="309d" maxValue="309e"/> |
| 1673 |
<g:charCodeRange minValue="30fc" maxValue="30fe"/> |
| 1674 |
</g:charClass> |
| 1675 |
</g:token> |
| 1676 |
|
| 1677 |
<g:token name="NotOperatorKeyword" skip="yes" show="no"> |
| 1678 |
<g:oneOrMore name="NotOperatorKeywordSequence"> |
| 1679 |
<g:charClass> |
| 1680 |
<g:charRange minChar="0" maxChar="9"/> |
| 1681 |
<g:charRange minChar="a" maxChar="z"/> |
| 1682 |
<g:charRange minChar="A" maxChar="Z"/> |
| 1683 |
</g:charClass> |
| 1684 |
</g:oneOrMore> |
| 1685 |
</g:token> |
| 1686 |
|
| 1687 |
<g:token name="NotNumber" skip="yes" show="no"> |
| 1688 |
<g:choice name="DoubleStringNotNumber"> |
| 1689 |
<g:sequence> |
| 1690 |
<g:string>.</g:string> |
| 1691 |
<g:ref name="Digits"/> |
| 1692 |
</g:sequence> |
| 1693 |
<g:sequence> |
| 1694 |
<g:ref name="Digits"/> |
| 1695 |
<g:optional name="DoubleOptionFractionPartNotNumber"> |
| 1696 |
<g:string>.</g:string> |
| 1697 |
<g:zeroOrMore name="DoubleFractionPartNotNumber"> |
| 1698 |
<g:charClass> |
| 1699 |
<g:charRange minChar="0" maxChar="9"/> |
| 1700 |
</g:charClass> |
| 1701 |
</g:zeroOrMore> |
| 1702 |
</g:optional> |
| 1703 |
</g:sequence> |
| 1704 |
</g:choice> |
| 1705 |
<g:optional name="NotNumberOptionalFractionPart"> |
| 1706 |
<g:charClass> |
| 1707 |
<g:char>e</g:char> |
| 1708 |
<g:char>E</g:char> |
| 1709 |
</g:charClass> |
| 1710 |
<g:optional name="DoubleNegOrPosNotNumber"> |
| 1711 |
<g:charClass> |
| 1712 |
<g:char>+</g:char> |
| 1713 |
<g:char>-</g:char> |
| 1714 |
</g:charClass> |
| 1715 |
</g:optional> |
| 1716 |
<g:ref name="Digits"/> |
| 1717 |
</g:optional> |
| 1718 |
<g:charClass> |
| 1719 |
<g:charRange minChar="a" maxChar="z"/> |
| 1720 |
<g:charRange minChar="A" maxChar="Z"/> |
| 1721 |
</g:charClass> |
| 1722 |
<g:zeroOrMore name="NotNumberTail"> |
| 1723 |
<g:charClass> |
| 1724 |
<g:charRange minChar="0" maxChar="9"/> |
| 1725 |
<g:charRange minChar="a" maxChar="z"/> |
| 1726 |
<g:charRange minChar="A" maxChar="Z"/> |
| 1727 |
</g:charClass> |
| 1728 |
</g:zeroOrMore> |
| 1729 |
</g:token> |
| 1730 |
|
| 1731 |
|
| 1732 |
<!-- ================================================ |
| 1733 |
These states define the lex-time disambiguations of tokens. The are |
| 1734 |
probably non-normative. |
| 1735 |
================================================ --> |
| 1736 |
<g:state-list> |
| 1737 |
<g:state name="ANY" show="no"> |
| 1738 |
<g:description>This state is for very general patterns that can be |
| 1739 |
recognized in any state, but are not recognized as significant |
| 1740 |
patterns by themselves in the grammar. </g:description> |
| 1741 |
<g:transition> |
| 1742 |
<g:description>No state change.</g:description> |
| 1743 |
<g:tref name="WhitespaceChar"/> |
| 1744 |
<g:tref name="Nmstart"/> |
| 1745 |
<g:tref name="NCName"/> |
| 1746 |
<g:tref name="Char"/> |
| 1747 |
<g:tref name="Nmchar"/> |
| 1748 |
<g:tref name="Prefix"/> |
| 1749 |
<g:tref name="LocalPart"/> |
| 1750 |
<g:tref name="Digits"/> |
| 1751 |
<g:tref name="Letter"/> |
| 1752 |
<g:tref name="BaseChar"/> |
| 1753 |
<g:tref name="Ideographic"/> |
| 1754 |
<g:tref name="CombiningChar"/> |
| 1755 |
<g:tref name="Digit"/> |
| 1756 |
<g:tref name="Extender"/> |
| 1757 |
<g:tref name="HexDigits"/> |
| 1758 |
<g:tref name="ValidationMode" if="xquery core"/> |
| 1759 |
<g:tref name="Pragma"/> |
| 1760 |
<g:tref name="MUExtension"/> |
| 1761 |
<g:tref name="Comment"/> |
| 1762 |
<g:tref name="ExtensionContents"/> |
| 1763 |
<g:tref name="CommentContents"/> |
| 1764 |
<!-- g:tref name="SForExt"/ --> |
| 1765 |
</g:transition> |
| 1766 |
</g:state> |
| 1767 |
<!-- g:state name="DUMMY" show="no"> |
| 1768 |
<g:description>XXX </g:description> |
| 1769 |
<g:transition next-state="OPERATOR"> |
| 1770 |
<g:transition-default/> |
| 1771 |
<g:tref name="SchemaGlobalContext"/> |
| 1772 |
<g:tref name="SchemaContextStep"/> |
| 1773 |
</g:transition> |
| 1774 |
</g:state --> |
| 1775 |
<g:state name="DEFAULT"> |
| 1776 |
<g:description>This state is for patterns that occur at the beginning |
| 1777 |
of an expression or subexpression.</g:description> |
| 1778 |
<g:transition next-state="OPERATOR"> |
| 1779 |
<g:transition-default/> |
| 1780 |
<g:tref name="DecimalLiteral"/> |
| 1781 |
<g:tref name="DotDot"/> |
| 1782 |
<g:tref name="Dot"/> |
| 1783 |
<g:tref name="DoubleLiteral"/> |
| 1784 |
<g:tref name="IntegerLiteral"/> |
| 1785 |
<g:tref name="NotNumber"/> |
| 1786 |
<g:tref name="NCNameColonStar"/> |
| 1787 |
<g:tref name="QName"/> |
| 1788 |
<g:tref name="Rpar"/> |
| 1789 |
<g:tref name="StarColonNCName"/> |
| 1790 |
<g:tref name="Star"/> |
| 1791 |
<g:tref name="StringLiteral"/> |
| 1792 |
<g:tref name="DeclareConstruction"/> |
| 1793 |
<g:tref name="DeclareOrdering"/> |
| 1794 |
<g:tref name="DeclareDefaultOrderingEmpty"/> |
| 1795 |
<g:tref name="DeclareInheritNamespaces"/> |
| 1796 |
</g:transition> |
| 1797 |
<g:transition next-state="NAMESPACEDECL"> |
| 1798 |
<g:tref name="DeclareCollation"/> |
| 1799 |
<g:tref name="DeclareNamespace"/> |
| 1800 |
<g:tref name="DeclareBaseURI"/> |
| 1801 |
<g:tref name="ModuleNamespace"/> |
| 1802 |
</g:transition> |
| 1803 |
<g:transition next-state="NAMESPACEKEYWORD"> |
| 1804 |
<g:tref name="DeclareDefaultElement"/> |
| 1805 |
<g:tref name="DeclareDefaultFunction"/> |
| 1806 |
<g:tref name="ImportSchemaToken"/> |
| 1807 |
<g:tref name="ImportModuleToken"/> |
| 1808 |
</g:transition> |
| 1809 |
<g:transition next-state="VARNAME"> |
| 1810 |
<g:tref name="VariableIndicator"/> |
| 1811 |
<g:tref name="ForVariable"/> |
| 1812 |
<g:tref name="LetVariable"/> |
| 1813 |
<g:tref name="Some"/> |
| 1814 |
<g:tref name="Every"/> |
| 1815 |
</g:transition> |
| 1816 |
<g:transition next-state="VARNAME"> |
| 1817 |
<g:tref name="DefineVariable"/> |
| 1818 |
</g:transition> |
| 1819 |
<g:transition next-state="ITEMTYPE"> |
| 1820 |
<g:tref name="RparAs"/> |
| 1821 |
</g:transition> |
| 1822 |
<g:transition next-state="KINDTEST" action="pushState(OPERATOR)"> |
| 1823 |
<g:tref name="ElementType"/> |
| 1824 |
<g:tref name="AttributeType"/> |
| 1825 |
<g:tref name="SchemaElementType"/> |
| 1826 |
<g:tref name="SchemaAttributeType"/> |
| 1827 |
<g:tref name="CommentLpar"/> |
| 1828 |
<g:tref name="TextLpar"/> |
| 1829 |
<g:tref name="NodeLpar"/> |
| 1830 |
<g:tref name="DocumentLpar"/> |
| 1831 |
</g:transition> |
| 1832 |
<g:transition next-state="KINDTESTFORPI" action="pushState(OPERATOR)"> |
| 1833 |
<g:tref name="ProcessingInstructionLpar"/> |
| 1834 |
</g:transition> |
| 1835 |
<g:transition next-state="XML_COMMENT" action="pushState(OPERATOR)"> |
| 1836 |
<g:tref name="XmlCommentStart"/> |
| 1837 |
</g:transition> |
| 1838 |
<g:transition next-state="PROCESSING_INSTRUCTION" action="pushState(OPERATOR)"> |
| 1839 |
<g:tref name="ProcessingInstructionStart"/> |
| 1840 |
</g:transition> |
| 1841 |
<g:transition next-state="CDATA_SECTION" action="pushState(OPERATOR)"> |
| 1842 |
<g:tref name="CdataSectionStart"/> |
| 1843 |
</g:transition> |
| 1844 |
<g:transition next-state="START_TAG" action="pushState(OPERATOR)"> |
| 1845 |
<g:tref name="StartTagOpenRoot"/> |
| 1846 |
</g:transition> |
| 1847 |
<g:transition next-state="XMLSPACE_DECL"> |
| 1848 |
<g:tref name="DeclareXMLSpace"/> |
| 1849 |
</g:transition> |
| 1850 |
<g:transition action="popState"> |
| 1851 |
<g:tref name="Rbrace"/> |
| 1852 |
</g:transition> |
| 1853 |
<g:transition action="pushState(OPERATOR)" next-state="DEFAULT"> |
| 1854 |
<g:tref name="ValidateLbrace"/> |
| 1855 |
<g:tref name="ValidateSchemaMode"/> |
| 1856 |
</g:transition> |
| 1857 |
<!-- g:transition next-state="DEFAULT"> |
| 1858 |
<g:tref name="ValidateGlobal"/> |
| 1859 |
</g:transition --> |
| 1860 |
<g:transition next-state="DEFAULT"> |
| 1861 |
<g:tref name="TypeswitchLpar"/> |
| 1862 |
</g:transition> |
| 1863 |
<g:transition next-state="UPDATE" action="input_stream.backup(1); pushState(UPDATE)" if="update"> |
| 1864 |
<g:tref name="UpdateOpenUpdateList"/> |
| 1865 |
</g:transition> |
| 1866 |
<g:transition next-state="UPDATE" action="input_stream.backup(3); pushState(UPDATE)" if="update"> |
| 1867 |
<g:tref name="UpdateLookaheadFor"/> |
| 1868 |
</g:transition> |
| 1869 |
<g:transition next-state="UPDATE" action="input_stream.backup(3); pushState(UPDATE)" if="update"> |
| 1870 |
<g:tref name="UpdateLookaheadLet"/> |
| 1871 |
</g:transition> |
| 1872 |
<g:transition next-state="UPDATE" action="input_stream.backup(2); pushState(UPDATE)" if="update"> |
| 1873 |
<g:tref name="UpdateLookaheadIf"/> |
| 1874 |
</g:transition> |
| 1875 |
<g:transition next-state="UPDATE" action="input_stream.backup(6); pushState(UPDATE)" if="update"> |
| 1876 |
<g:tref name="UpdateLookaheadInsert"/> |
| 1877 |
</g:transition> |
| 1878 |
<g:transition next-state="UPDATE" action="input_stream.backup(7); pushState(UPDATE)" if="update"> |
| 1879 |
<g:tref name="UpdateLookaheadReplace"/> |
| 1880 |
</g:transition> |
| 1881 |
<g:transition next-state="UPDATE" action="input_stream.backup(6); pushState(UPDATE)" if="update"> |
| 1882 |
<g:tref name="UpdateLookaheadDelete"/> |
| 1883 |
</g:transition> |
| 1884 |
<g:transition action="pushState(OPERATOR)" next-state="DEFAULT"> |
| 1885 |
<g:tref name="ElementLbrace"/> |
| 1886 |
<g:tref name="AttributeLbrace"/> |
| 1887 |
</g:transition> |
| 1888 |
<g:transition action="pushState(OPERATOR)"> |
| 1889 |
<g:tref name="AttributeQNameLbrace"/> |
| 1890 |
<!-- g:tref name="NamespaceNCNameLbrace"/ --> |
| 1891 |
<g:tref name="ElementQNameLbrace"/> |
| 1892 |
<g:tref name="DocumentLbrace"/> |
| 1893 |
<g:tref name="TextLbrace"/> |
| 1894 |
<g:tref name="PILbrace"/> |
| 1895 |
<g:tref name="PINCNameLbrace"/> |
| 1896 |
<g:tref name="CommentLbrace"/> |
| 1897 |
</g:transition> |
| 1898 |
<g:transition next-state="DEFAULT"> |
| 1899 |
<g:tref name="DefineFunction"/> |
| 1900 |
</g:transition> |
| 1901 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 1902 |
<g:tref name="CommentStart"/> |
| 1903 |
</g:transition> |
| 1904 |
<g:transition next-state="EXT_KEY" action="pushState"> |
| 1905 |
<g:tref name="ExtensionStart"/> |
| 1906 |
</g:transition> |
| 1907 |
<!-- g:transition action="if(isState(UPDATE)) SwitchTo(UPDATE); else SwitchTo(DEFAULT)"--> |
| 1908 |
<g:transition next-state="DEFAULT" action="pushState(OPERATOR)"> |
| 1909 |
<g:tref name="LbraceExprEnclosure"/> |
| 1910 |
<g:tref name="OrderedOpen" if="xquery core"/> |
| 1911 |
<g:tref name="UnorderedOpen" if="xquery core"/> |
| 1912 |
</g:transition> |
| 1913 |
<g:transition next-state="XQUERYVERSION" if="xquery core"> |
| 1914 |
<g:tref name="XQueryVersion" if="xquery core"/> |
| 1915 |
</g:transition> |
| 1916 |
<g:transition next-state="DEFAULT"> |
| 1917 |
<g:tref name="SemiColon"/> |
| 1918 |
<g:tref name="QuerySeparator" if="xquery core" show="no"/> |
| 1919 |
<g:tref name="Comma"/> |
| 1920 |
<g:tref name="AtStringLiteral"/> |
| 1921 |
<g:tref name="Lpar"/> |
| 1922 |
<g:tref name="QNameLpar"/> |
| 1923 |
<g:tref name="IfLpar"/> |
| 1924 |
<g:tref name="UnaryMinus"/> |
| 1925 |
<g:tref name="UnaryPlus"/> |
| 1926 |
<g:tref name="RootDescendants"/> |
| 1927 |
<g:tref name="Root"/> |
| 1928 |
<g:tref name="AxisAncestorOrSelf"/> |
| 1929 |
<g:tref name="AxisAncestor"/> |
| 1930 |
<g:tref name="AxisAttribute"/> |
| 1931 |
<g:tref name="AxisChild"/> |
| 1932 |
<g:tref name="AxisDescendantOrSelf"/> |
| 1933 |
<g:tref name="AxisDescendant"/> |
| 1934 |
<g:tref name="AxisFollowingSibling"/> |
| 1935 |
<g:tref name="AxisFollowing"/> |
| 1936 |
<g:tref name="AxisNamespace" if="xpath core"/> |
| 1937 |
<g:tref name="AxisParent"/> |
| 1938 |
<g:tref name="AxisPrecedingSibling"/> |
| 1939 |
<g:tref name="AxisPreceding"/> |
| 1940 |
<g:tref name="AxisSelf"/> |
| 1941 |
<g:tref name="At"/> |
| 1942 |
</g:transition> |
| 1943 |
<g:transition> |
| 1944 |
<g:description>No state change.</g:description> |
| 1945 |
<g:tref name="IDLpar"/> |
| 1946 |
<g:tref name="KeyLpar"/> |
| 1947 |
<g:tref name="Type"/> |
| 1948 |
<!-- Do we need this??? --> |
| 1949 |
<g:tref name="ValueOf" if="update"/> |
| 1950 |
</g:transition> |
| 1951 |
</g:state> |
| 1952 |
<g:state name="OPERATOR"> |
| 1953 |
<g:description>This state is for patterns that are defined for |
| 1954 |
operators. </g:description> |
| 1955 |
<g:transition next-state="UPDATE" if="update"> |
| 1956 |
<g:tref name="Do"/> |
| 1957 |
</g:transition> |
| 1958 |
<!-- g:transition action="if(isState(UPDATE)) SwitchTo(UPDATE); else SwitchTo(DEFAULT)" --> |
| 1959 |
<g:transition next-state="DEFAULT" action="pushState(OPERATOR)"> |
| 1960 |
<!-- action correct?? --> |
| 1961 |
<g:tref name="LbraceExprEnclosure"/> |
| 1962 |
</g:transition> |
| 1963 |
<g:transition next-state="DEFAULT"> |
| 1964 |
<g:tref name="SemiColon"/> |
| 1965 |
<g:tref name="Then"/> |
| 1966 |
<g:tref name="Else"/> |
| 1967 |
<g:tref name="External"/> |
| 1968 |
<g:tref name="And"/> |
| 1969 |
<!-- g:tref name="AtStringLiteral"/ *** --> |
| 1970 |
<g:tref name="AtWord"/> |
| 1971 |
<g:tref name="ColonEquals"/> |
| 1972 |
<g:tref name="Comma"/> |
| 1973 |
<g:tref name="Div"/> |
| 1974 |
<g:tref name="Equals"/> |
| 1975 |
<g:tref name="Except"/> |
| 1976 |
<g:tref name="FortranEq"/> |
| 1977 |
<g:tref name="FortranGe"/> |
| 1978 |
<g:tref name="FortranGt"/> |
| 1979 |
<g:tref name="FortranLe"/> |
| 1980 |
<g:tref name="FortranLt"/> |
| 1981 |
<g:tref name="FortranNe"/> |
| 1982 |
<g:tref name="GtEquals"/> |
| 1983 |
<g:tref name="GtGt"/> |
| 1984 |
<g:tref name="Gt"/> |
| 1985 |
<g:tref name="Idiv"/> |
| 1986 |
<g:tref name="Intersect"/> |
| 1987 |
<g:tref name="In"/> |
| 1988 |
<g:tref name="Is"/> |
| 1989 |
<g:tref name="Lbrack"/> |
| 1990 |
<g:tref name="LtEquals"/> |
| 1991 |
<g:tref name="LtLt"/> |
| 1992 |
<g:tref name="Lt"/> |
| 1993 |
<g:tref name="Minus"/> |
| 1994 |
<g:tref name="Mod"/> |
| 1995 |
<g:tref name="Multiply"/> |
| 1996 |
<g:tref name="NotEquals"/> |
| 1997 |
<g:tref name="OrderBy"/> |
| 1998 |
<g:tref name="OrderByStable"/> |
| 1999 |
<g:tref name="Or"/> |
| 2000 |
<g:tref name="Plus"/> |
| 2001 |
<g:tref name="Return"/> |
| 2002 |
<g:tref name="Satisfies"/> |
| 2003 |
<g:tref name="QuerySeparator" if="xquery core" show="no"/> |
| 2004 |
<g:tref name="SlashSlash"/> |
| 2005 |
<g:tref name="Slash"/> |
| 2006 |
<g:tref name="To"/> |
| 2007 |
<g:tref name="Type"/> |
| 2008 |
<g:tref name="Union"/> |
| 2009 |
<g:tref name="Vbar"/> |
| 2010 |
<g:tref name="Where"/> |
| 2011 |
<g:tref name="SchemaModeForDeclareConstruction"/> |
| 2012 |
<g:tref name="Ordered"/> |
| 2013 |
<g:tref name="Unordered"/> |
| 2014 |
<g:tref name="Yes"/> |
| 2015 |
<g:tref name="No"/> |
| 2016 |
<g:tref name="Into" if="update"/> |
| 2017 |
<g:tref name="After" if="update"/> |
| 2018 |
<g:tref name="Before" if="update"/> |
| 2019 |
<g:tref name="With" if="update"/> |
| 2020 |
</g:transition> |
| 2021 |
<g:transition next-state="SINGLETYPE"> |
| 2022 |
<g:tref name="Castable"/> |
| 2023 |
<g:tref name="CastAs"/> |
| 2024 |
</g:transition> |
| 2025 |
<g:transition next-state="ITEMTYPE"> |
| 2026 |
<g:tref name="Instanceof"/> |
| 2027 |
<g:tref name="TreatAs"/> |
| 2028 |
<g:tref name="Case"/> |
| 2029 |
<g:tref name="As"/> |
| 2030 |
<!-- tref name="DeclareResult"/ --> |
| 2031 |
<g:tref name="RparAs"/> |
| 2032 |
</g:transition> |
| 2033 |
<g:transition action="popState"> |
| 2034 |
<g:tref name="Rbrace"/> |
| 2035 |
</g:transition> |
| 2036 |
<g:transition next-state="VARNAME"> |
| 2037 |
<g:tref name="VariableIndicator"/> |
| 2038 |
<g:tref name="ForVariable"/> |
| 2039 |
<g:tref name="LetVariable"/> |
| 2040 |
</g:transition> |
| 2041 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2042 |
<g:tref name="CommentStart"/> |
| 2043 |
</g:transition> |
| 2044 |
<g:transition next-state="EXT_KEY" action="pushState"> |
| 2045 |
<g:tref name="ExtensionStart"/> |
| 2046 |
</g:transition> |
| 2047 |
<g:transition next-state="OPERATOR"> |
| 2048 |
<g:tref name="Rpar"/> |
| 2049 |
<g:tref name="OccurrenceZeroOrOne"/> |
| 2050 |
<g:tref name="EmptyGreatest"/> |
| 2051 |
<g:tref name="EmptyLeast"/> |
| 2052 |
<g:tref name="Ascending"/> |
| 2053 |
<g:tref name="Descending"/> |
| 2054 |
<g:tref name="Collation"/> |
| 2055 |
<g:tref name="Default"/> |
| 2056 |
<g:tref name="Rbrack"/> |
| 2057 |
</g:transition> |
| 2058 |
<g:transition> |
| 2059 |
<g:description>No state change.</g:description> |
| 2060 |
<g:transition-default/> |
| 2061 |
<!-- anything else in the operator state --> |
| 2062 |
<g:tref name="StringLiteral"/> |
| 2063 |
<g:tref name="AsLast" if="update"/> |
| 2064 |
<g:tref name="AsFirst" if="update"/> |
| 2065 |
<g:tref name="NotOperatorKeyword"/> |
| 2066 |
</g:transition> |
| 2067 |
</g:state> |
| 2068 |
<!-- start update proposal states --> |
| 2069 |
<g:state name="UPDATE" if="update"> |
| 2070 |
<g:description>[To Be Done]</g:description> |
| 2071 |
<g:transition next-state="VARNAME"> |
| 2072 |
<g:tref name="ForVariable"/> |
| 2073 |
<g:tref name="LetVariable"/> |
| 2074 |
</g:transition> |
| 2075 |
<g:transition next-state="DEFAULT"> |
| 2076 |
<g:tref name="InsertTok"/> |
| 2077 |
<g:tref name="ReplaceTok"/> |
| 2078 |
<g:tref name="DeleteTok"/> |
| 2079 |
<g:tref name="IfLpar"/> |
| 2080 |
<g:tref name="QuerySeparator" if="xquery core" show="no"/> |
| 2081 |
</g:transition> |
| 2082 |
<g:transition> |
| 2083 |
<g:tref name="UpdateTok"/> |
| 2084 |
<g:tref name="UpdateListOpen"/> |
| 2085 |
<g:tref name="UpdateListClose"/> |
| 2086 |
<g:tref name="UpdateListSep"/> |
| 2087 |
</g:transition> |
| 2088 |
</g:state> |
| 2089 |
<!-- end update proposal states --> |
| 2090 |
<g:state name="XQUERYVERSION" if="xquery core"> |
| 2091 |
<g:description>This state is for recognition of XQuery version |
| 2092 |
specific keywords.</g:description> |
| 2093 |
|
| 2094 |
<g:transition next-state="DEFAULT" if="xquery core"> |
| 2095 |
<g:tref name="SemiColon"/> |
| 2096 |
</g:transition> |
| 2097 |
|
| 2098 |
<g:transition next-state="XQUERYVERSION" if="xquery core"> |
| 2099 |
<g:tref name="StringLiteralForVersion"/> |
| 2100 |
<g:tref name="XQueryEncoding"/> |
| 2101 |
</g:transition> |
| 2102 |
</g:state> |
| 2103 |
<g:state name="NAMESPACEDECL" if="xquery core"> |
| 2104 |
<g:description>This state occurs inside of a namespace declaration, and |
| 2105 |
is needed to recognize a NCName that is to be used as the prefix, |
| 2106 |
as opposed to allowing a QName to occur. (Otherwise, the difference |
| 2107 |
between NCName and QName are ambiguous.) </g:description> |
| 2108 |
<g:transition next-state="DEFAULT"> |
| 2109 |
<g:tref name="URLLiteral"/> |
| 2110 |
</g:transition> |
| 2111 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2112 |
<g:tref name="CommentStart"/> |
| 2113 |
</g:transition> |
| 2114 |
<g:transition next-state="EXT_KEY" action="pushState"> |
| 2115 |
<g:tref name="ExtensionStart"/> |
| 2116 |
</g:transition> |
| 2117 |
<g:transition next-state="NAMESPACEDECL"> |
| 2118 |
<g:tref name="AssignEquals"/> |
| 2119 |
<g:tref name="NCNameForPrefix"/> |
| 2120 |
</g:transition> |
| 2121 |
</g:state> |
| 2122 |
<g:state name="NAMESPACEKEYWORD" if="xquery core"> |
| 2123 |
<g:description>This state occurs at places where the keyword |
| 2124 |
"namespace" is expected, which would otherwise be ambiguous |
| 2125 |
compared to a QName. QNames can not occur in this state. |
| 2126 |
</g:description> |
| 2127 |
<g:transition next-state="DEFAULT"> |
| 2128 |
<g:tref name="URLLiteral"/> |
| 2129 |
</g:transition> |
| 2130 |
<g:transition next-state="NAMESPACEDECL"> |
| 2131 |
<g:tref name="Namespace"/> |
| 2132 |
</g:transition> |
| 2133 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2134 |
<g:tref name="CommentStart"/> |
| 2135 |
</g:transition> |
| 2136 |
<g:transition next-state="EXT_KEY" action="pushState"> |
| 2137 |
<g:tref name="ExtensionStart"/> |
| 2138 |
</g:transition> |
| 2139 |
<g:transition next-state="NAMESPACEKEYWORD"> |
| 2140 |
<g:tref name="DefaultElement"/> |
| 2141 |
</g:transition> |
| 2142 |
</g:state> |
| 2143 |
<g:state name="XMLSPACE_DECL" if="xquery core"> |
| 2144 |
<g:description>This state occurs at places where the keywords |
| 2145 |
"preserve" and "strip" is expected to support "declare xmlspace". |
| 2146 |
QNames can not occur in this state. </g:description> |
| 2147 |
<g:transition next-state="DEFAULT"> |
| 2148 |
<g:tref name="XMLSpacePreserve"/> |
| 2149 |
<g:tref name="XMLSpaceStrip"/> |
| 2150 |
</g:transition> |
| 2151 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2152 |
<g:tref name="CommentStart"/> |
| 2153 |
</g:transition> |
| 2154 |
<g:transition next-state="EXT_KEY" action="pushState"> |
| 2155 |
<g:tref name="ExtensionStart"/> |
| 2156 |
</g:transition> |
| 2157 |
</g:state> |
| 2158 |
<g:state name="SINGLETYPE"> |
| 2159 |
<g:description>This state distinguishes tokens that can occur only |
| 2160 |
inside the SingleType production. </g:description> |
| 2161 |
<g:transition next-state="OPERATOR"> |
| 2162 |
<g:tref name="QNameForAtomicType"/> |
| 2163 |
</g:transition> |
| 2164 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2165 |
<g:tref name="CommentStart"/> |
| 2166 |
</g:transition> |
| 2167 |
</g:state> |
| 2168 |
<g:state name="ITEMTYPE"> |
| 2169 |
<g:description>This state distinguishes tokens that can occur only |
| 2170 |
inside the ItemType production. </g:description> |
| 2171 |
<!-- to support the case statement. --> |
| 2172 |
<g:transition next-state="VARNAME" if="xquery core"> |
| 2173 |
<g:tref name="VariableIndicator"/> |
| 2174 |
</g:transition> |
| 2175 |
<g:transition next-state="OPERATOR"> |
| 2176 |
<g:tref name="EmptyTok"/> |
| 2177 |
<g:tref name="QNameForAtomicType"/> |
| 2178 |
</g:transition> |
| 2179 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2180 |
<g:tref name="CommentStart"/> |
| 2181 |
</g:transition> |
| 2182 |
<g:transition next-state="EXT_KEY" action="pushState"> |
| 2183 |
<g:tref name="ExtensionStart"/> |
| 2184 |
</g:transition> |
| 2185 |
<g:transition next-state="KINDTEST" action="pushState(OCCURRENCEINDICATOR)"> |
| 2186 |
<g:tref name="ElementTypeForKindTest"/> |
| 2187 |
<g:tref name="AttributeTypeForKindTest"/> |
| 2188 |
<g:tref name="SchemaElementTypeForKindTest"/> |
| 2189 |
<g:tref name="SchemaAttributeTypeForKindTest"/> |
| 2190 |
<g:tref name="CommentLparForKindTest"/> |
| 2191 |
<g:tref name="TextLparForKindTest"/> |
| 2192 |
<g:tref name="NodeLparForKindTest"/> |
| 2193 |
<g:tref name="DocumentLparForKindTest"/> |
| 2194 |
</g:transition> |
| 2195 |
<g:transition next-state="KINDTESTFORPI" action="pushState(OCCURRENCEINDICATOR)"> |
| 2196 |
<g:tref name="ProcessingInstructionLparForKindTest"/> |
| 2197 |
</g:transition> |
| 2198 |
<g:transition next-state="OCCURRENCEINDICATOR"> |
| 2199 |
<g:tref name="QNameForSequenceType"/> |
| 2200 |
<g:tref name="Item"/> |
| 2201 |
</g:transition> |
| 2202 |
<!-- g:transition action="if(isState(UPDATE)) SwitchTo(UPDATE); else SwitchTo(DEFAULT)" --> |
| 2203 |
<g:transition next-state="DEFAULT"> |
| 2204 |
<g:tref name="SemiColon"/> |
| 2205 |
<g:tref name="Then"/> |
| 2206 |
<g:tref name="Else"/> |
| 2207 |
</g:transition> |
| 2208 |
<g:transition next-state="DEFAULT"> |
| 2209 |
<g:tref name="External"/> |
| 2210 |
<g:tref name="And"/> |
| 2211 |
<g:tref name="AtStringLiteral"/> |
| 2212 |
<g:tref name="AtWord"/> |
| 2213 |
<g:tref name="ColonEquals"/> |
| 2214 |
<g:tref name="Comma"/> |
| 2215 |
<g:tref name="Div"/> |
| 2216 |
<g:tref name="Equals"/> |
| 2217 |
<g:tref name="Except"/> |
| 2218 |
<g:tref name="FortranEq"/> |
| 2219 |
<g:tref name="FortranGe"/> |
| 2220 |
<g:tref name="FortranGt"/> |
| 2221 |
<g:tref name="FortranLe"/> |
| 2222 |
<g:tref name="FortranLt"/> |
| 2223 |
<g:tref name="FortranNe"/> |
| 2224 |
<g:tref name="GtEquals"/> |
| 2225 |
<g:tref name="GtGt"/> |
| 2226 |
<g:tref name="Gt"/> |
| 2227 |
<g:tref name="Idiv"/> |
| 2228 |
<g:tref name="Intersect"/> |
| 2229 |
<g:tref name="In"/> |
| 2230 |
<g:tref name="Is"/> |
| 2231 |
<g:tref name="Lbrack"/> |
| 2232 |
<g:tref name="Lpar"/> |
| 2233 |
<g:tref name="LtEquals"/> |
| 2234 |
<g:tref name="LtLt"/> |
| 2235 |
<g:tref name="Lt"/> |
| 2236 |
<g:tref name="Minus"/> |
| 2237 |
<g:tref name="Mod"/> |
| 2238 |
<g:tref name="NotEquals"/> |
| 2239 |
<g:tref name="OrderBy"/> |
| 2240 |
<g:tref name="OrderByStable"/> |
| 2241 |
<g:tref name="Or"/> |
| 2242 |
<g:tref name="Return"/> |
| 2243 |
<g:tref name="Satisfies"/> |
| 2244 |
<g:tref name="To"/> |
| 2245 |
<g:tref name="Type"/> |
| 2246 |
<g:tref name="Union"/> |
| 2247 |
<g:tref name="Vbar"/> |
| 2248 |
<g:tref name="Where"/> |
| 2249 |
</g:transition> |
| 2250 |
<g:transition next-state="SINGLETYPE"> |
| 2251 |
<g:tref name="Castable"/> |
| 2252 |
<g:tref name="CastAs"/> |
| 2253 |
</g:transition> |
| 2254 |
<g:transition next-state="ITEMTYPE"> |
| 2255 |
<g:tref name="Instanceof"/> |
| 2256 |
<g:tref name="TreatAs"/> |
| 2257 |
<g:tref name="Case"/> |
| 2258 |
<g:tref name="As"/> |
| 2259 |
<g:tref name="RparAs"/> |
| 2260 |
</g:transition> |
| 2261 |
</g:state> |
| 2262 |
<g:state name="KINDTEST"> |
| 2263 |
<g:transition next-state="DEFAULT" action="pushState(OPERATOR)"> |
| 2264 |
<g:tref name="LbraceExprEnclosure"/> |
| 2265 |
</g:transition> |
| 2266 |
<!-- g:transition next-state="SCHEMACONTEXTSTEP"> |
| 2267 |
<g:tref name="SchemaGlobalContextSlash"/> |
| 2268 |
<!- - g:tref name="SchemaGlobalTypeName"/ - -> |
| 2269 |
</g:transition --> |
| 2270 |
<g:transition action="popState"> |
| 2271 |
<g:tref name="RparForKindTest"/> |
| 2272 |
</g:transition> |
| 2273 |
<g:transition next-state="CLOSEKINDTEST"> |
| 2274 |
<g:tref name="AnyName"/> |
| 2275 |
<g:tref name="QNameForItemType"/> |
| 2276 |
</g:transition> |
| 2277 |
<g:transition next-state="KINDTEST" action="pushState(KINDTEST)"> |
| 2278 |
<g:tref name="ElementTypeForDocumentTest"/> |
| 2279 |
<g:tref name="SchemaElementTypeForDocumentTest"/> |
| 2280 |
</g:transition> |
| 2281 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2282 |
<g:tref name="CommentStart"/> |
| 2283 |
</g:transition> |
| 2284 |
</g:state> |
| 2285 |
<g:state name="KINDTESTFORPI"> |
| 2286 |
<g:transition action="popState"> |
| 2287 |
<g:tref name="RparForKindTest"/> |
| 2288 |
</g:transition> |
| 2289 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2290 |
<g:tref name="CommentStart"/> |
| 2291 |
</g:transition> |
| 2292 |
<g:transition next-state="KINDTESTFORPI"> |
| 2293 |
<g:tref name="NCNameForPI"/> |
| 2294 |
<g:tref name="StringLiteralForKindTest"/> |
| 2295 |
</g:transition> |
| 2296 |
</g:state> |
| 2297 |
<g:state name="CLOSEKINDTEST"> |
| 2298 |
<g:transition action="popState"> |
| 2299 |
<g:tref name="RparForKindTest"/> |
| 2300 |
</g:transition> |
| 2301 |
<g:transition next-state="KINDTEST"> |
| 2302 |
<g:tref name="CommaForKindTest"/> |
| 2303 |
</g:transition> |
| 2304 |
<g:transition next-state="DEFAULT" action="pushState(OPERATOR)"> |
| 2305 |
<g:tref name="LbraceExprEnclosure"/> |
| 2306 |
</g:transition> |
| 2307 |
<g:transition next-state="CLOSEKINDTEST"> |
| 2308 |
<g:tref name="Nillable"/> |
| 2309 |
</g:transition> |
| 2310 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2311 |
<g:tref name="CommentStart"/> |
| 2312 |
</g:transition> |
| 2313 |
</g:state> |
| 2314 |
<g:state name="OCCURRENCEINDICATOR"> |
| 2315 |
<g:description>This special state is needed to distinguish occurrence indicators that appear in the SequenceType production. For instance, compare "foo instance of baz*" to "baz*foo". In the first case, the "*" is interpreted as an occurrence indicator, and in the second case, it must be interpreted as a multiplication operator. But, when in the OCCURRENCEINDICATOR state, if anything else other than "?", "*", and "+", those symbols must be interpreted in the OPERATOR state. For instance, this would occur with the expression "foo instance of baz and $x", with the operator "and". This backing up of the lexical characters in order to reset the state, is symbolized by the notation "input_stream.backup(1)". NotOccurrenceIndicator is a special symbol for any character that is not an occurrence indicator.</g:description> |
| 2316 |
<g:transition next-state="OPERATOR" action="input_stream.backup(1)"> |
| 2317 |
<g:tref name="NotOccurrenceIndicator"/> |
| 2318 |
</g:transition> |
| 2319 |
<g:transition next-state="OPERATOR"> |
| 2320 |
<g:tref name="OccurrenceZeroOrOne"/> |
| 2321 |
<g:tref name="OccurrenceZeroOrMore"/> |
| 2322 |
<g:tref name="OccurrenceOneOrMore"/> |
| 2323 |
</g:transition> |
| 2324 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2325 |
<g:tref name="CommentStart"/> |
| 2326 |
</g:transition> |
| 2327 |
</g:state> |
| 2328 |
<!-- g:state name="SCHEMACONTEXTSTEP"> |
| 2329 |
<g:description>This state distinguishes the SchemaContextStep from the |
| 2330 |
SchemaGlobalContext. </g:description> |
| 2331 |
<g:transition> |
| 2332 |
<g:description>No state change.</g:description> |
| 2333 |
<g:tref name="SchemaContextStepSlash"/> |
| 2334 |
</g:transition> |
| 2335 |
<g:transition next-state="DEFAULT" action="pushState(OPERATOR)"> |
| 2336 |
<g:tref name="LbraceExprEnclosure"/> |
| 2337 |
</g:transition> |
| 2338 |
<g:transition next-state="CLOSEKINDTEST"> |
| 2339 |
<g:tref name="QNameForItemType"/> |
| 2340 |
</g:transition> |
| 2341 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2342 |
<g:tref name="CommentStart"/> |
| 2343 |
</g:transition> |
| 2344 |
</g:state --> |
| 2345 |
<g:state name="VARNAME"> |
| 2346 |
<g:description>This state differentiates variable names from qualified |
| 2347 |
names. This allows only the pattern of a QName to be recognized |
| 2348 |
when otherwise ambiguities could occur. </g:description> |
| 2349 |
<g:transition next-state="OPERATOR"> |
| 2350 |
<g:tref name="VarName"/> |
| 2351 |
</g:transition> |
| 2352 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2353 |
<g:tref name="CommentStart"/> |
| 2354 |
</g:transition> |
| 2355 |
<g:transition next-state="EXT_KEY" action="pushState"> |
| 2356 |
<g:tref name="ExtensionStart"/> |
| 2357 |
</g:transition> |
| 2358 |
</g:state> |
| 2359 |
<g:state name="START_TAG" if="xquery core"> |
| 2360 |
<g:description>This state allows attributes in the native XML syntax, |
| 2361 |
and marks the beginning of an element construction. Element |
| 2362 |
constructors also push the current state, popping it at the |
| 2363 |
conclusion of an end tag. In the START_TAG state, the string ">" is |
| 2364 |
recognized as a token which is associated with the transition to |
| 2365 |
the original state. </g:description> |
| 2366 |
<g:transition action="popState"> |
| 2367 |
<g:tref name="EmptyTagClose"/> |
| 2368 |
</g:transition> |
| 2369 |
<g:transition next-state="ELEMENT_CONTENT"> |
| 2370 |
<g:tref name="StartTagClose"/> |
| 2371 |
</g:transition> |
| 2372 |
<g:transition next-state="QUOT_ATTRIBUTE_CONTENT"> |
| 2373 |
<g:tref name="OpenQuot"/> |
| 2374 |
</g:transition> |
| 2375 |
<g:transition next-state="APOS_ATTRIBUTE_CONTENT"> |
| 2376 |
<g:tref name="OpenApos"/> |
| 2377 |
</g:transition> |
| 2378 |
<g:transition next-state="START_TAG"> |
| 2379 |
<g:tref name="ValueIndicator"/> |
| 2380 |
</g:transition> |
| 2381 |
<g:transition> |
| 2382 |
<g:description>No state change.</g:description> |
| 2383 |
<g:tref name="S"/> |
| 2384 |
<g:tref name="TagQName"/> |
| 2385 |
</g:transition> |
| 2386 |
</g:state> |
| 2387 |
<g:state name="ELEMENT_CONTENT" if="xquery core"> |
| 2388 |
<g:description>This state allows XML-like content, without these |
| 2389 |
characters being misinterpreted as expressions. The character "{" |
| 2390 |
marks a transition to the DEFAULT state, i.e. the start of an |
| 2391 |
embedded expression, and the "}" character pops back to the |
| 2392 |
ELEMENT_CONTENT state. To allow curly braces to be used as |
| 2393 |
character content, a double left or right curly brace is |
| 2394 |
interpreted as a single curly brace character. The string "</" |
| 2395 |
is interpreted as the beginning of an end tag, which is associated |
| 2396 |
with a transition to the END_TAG state.</g:description> |
| 2397 |
<g:transition next-state="END_TAG"> |
| 2398 |
<g:tref name="EndTagOpen"/> |
| 2399 |
</g:transition> |
| 2400 |
<g:transition next-state="DEFAULT" action="pushState"> |
| 2401 |
<g:description>Transition to an Element Value |
| 2402 |
Template.</g:description> |
| 2403 |
<g:tref name="Lbrace"/> |
| 2404 |
</g:transition> |
| 2405 |
<g:transition next-state="XML_COMMENT" action="pushState"> |
| 2406 |
<g:tref name="XmlCommentStartForElementContent"/> |
| 2407 |
</g:transition> |
| 2408 |
<g:transition next-state="PROCESSING_INSTRUCTION" action="pushState"> |
| 2409 |
<g:tref name="ProcessingInstructionStartForElementContent"/> |
| 2410 |
</g:transition> |
| 2411 |
<g:transition next-state="CDATA_SECTION" action="pushState"> |
| 2412 |
<g:tref name="CdataSectionStartForElementContent"/> |
| 2413 |
</g:transition> |
| 2414 |
<g:transition next-state="START_TAG" action="pushState"> |
| 2415 |
<g:tref name="StartTagOpen"/> |
| 2416 |
</g:transition> |
| 2417 |
<g:transition next-state="ELEMENT_CONTENT"> |
| 2418 |
<g:tref name="ElementContentChar"/> |
| 2419 |
</g:transition> |
| 2420 |
<g:transition> |
| 2421 |
<g:description>No state change.</g:description> |
| 2422 |
<g:tref name="PredefinedEntityRef" if="xquery core"/> |
| 2423 |
<g:tref name="CharRef" if="xquery core"/> |
| 2424 |
<g:tref name="LCurlyBraceEscape" if="xquery core"/> |
| 2425 |
<g:tref name="RCurlyBraceEscape" if="xquery core"/> |
| 2426 |
</g:transition> |
| 2427 |
</g:state> |
| 2428 |
<g:state name="END_TAG" if="xquery core"> |
| 2429 |
<g:description>When the end tag is terminated, the state is popped to |
| 2430 |
the state that was pushed at the start of the corresponding start |
| 2431 |
tag.</g:description> |
| 2432 |
<g:transition action="popState"> |
| 2433 |
<g:tref name="EndTagClose"/> |
| 2434 |
</g:transition> |
| 2435 |
<g:transition> |
| 2436 |
<g:description>No state change.</g:description> |
| 2437 |
<g:tref name="S"/> |
| 2438 |
<g:tref name="TagQName"/> |
| 2439 |
</g:transition> |
| 2440 |
</g:state> |
| 2441 |
<g:state name="XML_COMMENT" if="xquery core"> |
| 2442 |
<g:description>The "<--" token marks the beginning of an XML |
| 2443 |
Comment, and the "-->" token marks the end. This allows no special |
| 2444 |
interpretation of other characters in this state.</g:description> |
| 2445 |
<g:transition action="popState"> |
| 2446 |
<g:tref name="XmlCommentEnd"/> |
| 2447 |
</g:transition> |
| 2448 |
<g:transition next-state="XML_COMMENT"> |
| 2449 |
<g:tref name="CommentContentChar"/> |
| 2450 |
<g:tref name="CommentContentCharDash"/> |
| 2451 |
</g:transition> |
| 2452 |
</g:state> |
| 2453 |
<g:state name="EXPR_COMMENT"> |
| 2454 |
<g:description>The "(:" token marks the beginning of an expression |
| 2455 |
Comment, and the ":)" token marks the end. This allows no special |
| 2456 |
interpretation of other characters in this state.</g:description> |
| 2457 |
<g:transition action="popState"> |
| 2458 |
<g:tref name="CommentEnd"/> |
| 2459 |
</g:transition> |
| 2460 |
<g:transition next-state="EXPR_COMMENT" action="pushState"> |
| 2461 |
<g:tref name="CommentStart"/> |
| 2462 |
</g:transition> |
| 2463 |
<g:transition next-state="EXT_KEY" action="pushState"> |
| 2464 |
<g:tref name="ExtensionStart"/> |
| 2465 |
</g:transition> |
| 2466 |
<g:transition> |
| 2467 |
<g:description>No state change.</g:description> |
| 2468 |
<g:tref name="CommentContent"/> |
| 2469 |
</g:transition> |
| 2470 |
</g:state> |
| 2471 |
<g:state name="EXT_CONTENT" if="xquery"> |
| 2472 |
<g:description>This state occurs for the content of must-understand |
| 2473 |
extension.</g:description> |
| 2474 |
<g:transition action="popState"> |
| 2475 |
<g:tref name="ExtensionEnd"/> |
| 2476 |
</g:transition> |
| 2477 |
<g:transition> |
| 2478 |
<g:description>No state change.</g:description> |
| 2479 |
<g:tref name="ExtensionContentChar"/> |
| 2480 |
<g:tref name="SForExt"/> |
| 2481 |
</g:transition> |
| 2482 |
</g:state> |
| 2483 |
<g:state name="EXT_KEY" if="xquery"> |
| 2484 |
<g:description>The "(::" token marks the beginning of an expression |
| 2485 |
extension, which must be followed by a keyword.</g:description> |
| 2486 |
<g:transition next-state="EXT_NAME"> |
| 2487 |
<g:description>No state change.</g:description> |
| 2488 |
<g:tref name="PragmaKeyword"/> |
| 2489 |
<g:tref name="Extension"/> |
| 2490 |
</g:transition> |
| 2491 |
<g:transition> |
| 2492 |
<g:description>No state change.</g:description> |
| 2493 |
<g:tref name="SForExt"/> |
| 2494 |
</g:transition> |
| 2495 |
</g:state> |
| 2496 |
<g:state name="EXT_NAME" if="xquery"> |
| 2497 |
<g:description>This state recognizes extension names and transitions to |
| 2498 |
the extension content state.</g:description> |
| 2499 |
<g:transition next-state="EXT_CONTENT"> |
| 2500 |
<g:tref name="ExtensionQName"/> |
| 2501 |
</g:transition> |
| 2502 |
<g:transition> |
| 2503 |
<g:description>No state change.</g:description> |
| 2504 |
<g:tref name="SForExt"/> |
| 2505 |
</g:transition> |
| 2506 |
</g:state> |
| 2507 |
<g:state name="PROCESSING_INSTRUCTION" if="xquery core"> |
| 2508 |
<g:description>In this state, only patterns that are legal in a |
| 2509 |
processing instruction name are recognized.</g:description> |
| 2510 |
<g:transition next-state="PROCESSING_INSTRUCTION_CONTENT"> |
| 2511 |
<g:tref name="SForPI"/> |
| 2512 |
</g:transition> |
| 2513 |
<g:transition action="popState"> |
| 2514 |
<g:tref name="ProcessingInstructionEnd"/> |
| 2515 |
</g:transition> |
| 2516 |
<g:transition next-state="PROCESSING_INSTRUCTION"> |
| 2517 |
<g:tref name="PITarget"/> |
| 2518 |
</g:transition> |
| 2519 |
</g:state> |
| 2520 |
<g:state name="PROCESSING_INSTRUCTION_CONTENT" if="xquery core"> |
| 2521 |
<g:description>In this state, only characters are that are legal in |
| 2522 |
processing instruction content are recognized.</g:description> |
| 2523 |
<g:transition action="popState"> |
| 2524 |
<g:tref name="ProcessingInstructionEnd"/> |
| 2525 |
</g:transition> |
| 2526 |
<g:transition next-state="PROCESSING_INSTRUCTION_CONTENT"> |
| 2527 |
<g:tref name="PIContentChar"/> |
| 2528 |
</g:transition> |
| 2529 |
</g:state> |
| 2530 |
<g:state name="CDATA_SECTION" if="xquery core"> |
| 2531 |
<g:description>In this state, only lexemes that are legal in a CDATA |
| 2532 |
section are recognized.</g:description> |
| 2533 |
<g:transition action="popState"> |
| 2534 |
<g:tref name="CdataSectionEnd"/> |
| 2535 |
</g:transition> |
| 2536 |
<g:transition next-state="CDATA_SECTION"> |
| 2537 |
<g:tref name="CDataSectionChar"/> |
| 2538 |
</g:transition> |
| 2539 |
</g:state> |
| 2540 |
<g:state name="QUOT_ATTRIBUTE_CONTENT" if="xquery core"> |
| 2541 |
<g:description>This state allows content legal for attributes. The |
| 2542 |
character "{" marks a transition to the DEFAULT state, i.e. the |
| 2543 |
start of an embedded expression, and the "}" character pops back to |
| 2544 |
the original state. To allow curly braces to be used as character |
| 2545 |
content, a double left or right curly brace is interpreted as a |
| 2546 |
single curly brace character. This state is the same as |
| 2547 |
APOS_ATTRIBUTE_CONTENT, except that apostrophes are allowed without |
| 2548 |
escaping, and an unescaped quote marks the end of the |
| 2549 |
state.</g:description> |
| 2550 |
<g:transition next-state="START_TAG"> |
| 2551 |
<g:tref name="CloseQuot"/> |
| 2552 |
</g:transition> |
| 2553 |
<g:transition next-state="DEFAULT" action="pushState"> |
| 2554 |
<g:description>Transition to an Attribute Value |
| 2555 |
Template.</g:description> |
| 2556 |
<g:tref name="Lbrace"/> |
| 2557 |
</g:transition> |
| 2558 |
<g:transition next-state="QUOT_ATTRIBUTE_CONTENT"> |
| 2559 |
<g:tref name="EscapeQuot"/> |
| 2560 |
<g:tref name="QuotAttrContentChar"/> |
| 2561 |
</g:transition> |
| 2562 |
<g:transition> |
| 2563 |
<g:description>No state change.</g:description> |
| 2564 |
<g:tref name="PredefinedEntityRef" if="xquery core"/> |
| 2565 |
<g:tref name="CharRef" if="xquery core"/> |
| 2566 |
<g:tref name="LCurlyBraceEscape" if="xquery core"/> |
| 2567 |
<g:tref name="RCurlyBraceEscape" if="xquery core"/> |
| 2568 |
</g:transition> |
| 2569 |
</g:state> |
| 2570 |
<!-- ================== --> |
| 2571 |
<g:state name="APOS_ATTRIBUTE_CONTENT" if="xquery core"> |
| 2572 |
<g:description>This state is the same as QUOT_ATTRIBUTE_CONTENT, except |
| 2573 |
that quotes are allowed, and an unescaped apostrophe marks the end |
| 2574 |
of the state.</g:description> |
| 2575 |
<g:transition next-state="START_TAG"> |
| 2576 |
<g:tref name="CloseApos"/> |
| 2577 |
</g:transition> |
| 2578 |
<g:transition next-state="DEFAULT" action="pushState"> |
| 2579 |
<g:description>Transition to an Attribute Value |
| 2580 |
Template.</g:description> |
| 2581 |
<g:tref name="Lbrace"/> |
| 2582 |
</g:transition> |
| 2583 |
<g:transition next-state="APOS_ATTRIBUTE_CONTENT"> |
| 2584 |
<g:tref name="EscapeApos"/> |
| 2585 |
<g:tref name="AposAttrContentChar"/> |
| 2586 |
</g:transition> |
| 2587 |
<g:transition> |
| 2588 |
<g:description>No state change.</g:description> |
| 2589 |
<g:tref name="PredefinedEntityRef" if="xquery core"/> |
| 2590 |
<g:tref name="CharRef" if="xquery core"/> |
| 2591 |
<g:tref name="LCurlyBraceEscape" if="xquery core"/> |
| 2592 |
<g:tref name="RCurlyBraceEscape" if="xquery core"/> |
| 2593 |
</g:transition> |
| 2594 |
</g:state> |
| 2595 |
</g:state-list> |
| 2596 |
<!-- ====================== Grammar Productions ==================== --> |
| 2597 |
<!-- The QueryList production is not in the official grammar, |
| 2598 |
and is not shown in the bnf. It is here only for the purpose |
| 2599 |
of testing a series of queries. |
| 2600 |
--> |
| 2601 |
<g:production name="QueryList" if="xquery core" show="no"> |
| 2602 |
<g:ref name="Module"/> |
| 2603 |
<g:zeroOrMore name="QueryListTail"> |
| 2604 |
<g:ref name="QuerySeparator"/> |
| 2605 |
<g:optional name="OptionalModule"> |
| 2606 |
<g:ref name="Module"/> |
| 2607 |
</g:optional> |
| 2608 |
</g:zeroOrMore> |
| 2609 |
</g:production> |
| 2610 |
|
| 2611 |
<g:production name="XPath" if="xpath"> |
| 2612 |
<!--<g:optional name="XPathOptionalExpr">--> |
| 2613 |
<g:ref name="Expr"/> |
| 2614 |
<!--</g:optional>--> |
| 2615 |
</g:production> |
| 2616 |
|
| 2617 |
<!-- START PROLOG --> |
| 2618 |
|
| 2619 |
<!-- ### Use the name="" names instead of Expr_1() for generated .jj code --> |
| 2620 |
<g:production name="Module" if="xquery core"> |
| 2621 |
<g:optional name="OptionalVersionDecl"> |
| 2622 |
<g:ref name="VersionDecl"/> |
| 2623 |
</g:optional> |
| 2624 |
<g:choice name="MainOrLibraryModule"> |
| 2625 |
<g:ref name="MainModule"/> |
| 2626 |
<g:ref name="LibraryModule"/> |
| 2627 |
</g:choice> |
| 2628 |
</g:production> |
| 2629 |
<g:production name="VersionDecl" if="xquery core"> |
| 2630 |
<g:ref name="XQueryVersion"/> |
| 2631 |
<g:ref name="StringLiteralForVersion"/> |
| 2632 |
<g:optional name="OptionalEncodingSpec"> |
| 2633 |
<g:ref name="XQueryEncoding"/> |
| 2634 |
<g:ref name="StringLiteralForVersion"/> |
| 2635 |
</g:optional> |
| 2636 |
<g:ref name="Separator"/> |
| 2637 |
</g:production> |
| 2638 |
<g:production name="MainModule" if="xquery core"> |
| 2639 |
<g:ref name="Prolog"/> |
| 2640 |
<g:ref name="QueryBody"/> |
| 2641 |
</g:production> |
| 2642 |
<g:production name="LibraryModule" if="xquery core"> |
| 2643 |
<g:ref name="ModuleDecl"/> |
| 2644 |
<g:ref name="Prolog"/> |
| 2645 |
</g:production> |
| 2646 |
<g:production name="ModuleDecl" if="xquery core"> |
| 2647 |
<g:ref name="ModuleNamespace"/> |
| 2648 |
<g:ref name="NCNameForPrefix"/> |
| 2649 |
<g:ref name="AssignEquals"/> |
| 2650 |
<g:ref name="URLLiteral"/> |
| 2651 |
<g:ref name="Separator"/> |
| 2652 |
</g:production> |
| 2653 |
<g:production name="Prolog" if="xquery core"> |
| 2654 |
<g:zeroOrMore name="SetterList"> |
| 2655 |
<g:ref name="Setter"/> |
| 2656 |
<g:ref name="Separator"/> |
| 2657 |
</g:zeroOrMore> |
| 2658 |
<g:zeroOrMore name="DeclList"> |
| 2659 |
<g:choice name="DeclChoice"> |
| 2660 |
<g:ref name="Import"/> |
| 2661 |
<g:ref name="NamespaceDecl"/> |
| 2662 |
<g:ref name="DefaultNamespaceDecl"/> |
| 2663 |
</g:choice> |
| 2664 |
<g:ref name="Separator"/> |
| 2665 |
</g:zeroOrMore> |
| 2666 |
<g:zeroOrMore name="FunctionsAndVarsList"> |
| 2667 |
<g:choice name="FunctionOrVar"> |
| 2668 |
<g:ref name="VarDecl"/> |
| 2669 |
<g:ref name="FunctionDecl"/> |
| 2670 |
</g:choice> |
| 2671 |
<g:ref name="Separator"/> |
| 2672 |
</g:zeroOrMore> |
| 2673 |
</g:production> |
| 2674 |
<g:production name="Setter" if="xquery core"> |
| 2675 |
<g:choice name="SetterChoice"> |
| 2676 |
<g:ref name="XMLSpaceDecl" if="xquery"/> |
| 2677 |
<g:ref name="DefaultCollationDecl"/> |
| 2678 |
<g:ref name="BaseURIDecl"/> |
| 2679 |
<g:ref name="ConstructionDecl"/> |
| 2680 |
<!-- g:ref name="DefaultNamespaceDecl"/ --> |
| 2681 |
<g:ref name="OrderingModeDecl"/> |
| 2682 |
<g:ref name="EmptyOrderingDecl"/> |
| 2683 |
<g:ref name="InheritNamespacesDecl"/> |
| 2684 |
</g:choice> |
| 2685 |
</g:production> |
| 2686 |
<g:production name="Import" if="xquery core"> |
| 2687 |
<g:choice name="Imports"> |
| 2688 |
<g:ref name="SchemaImport"/> |
| 2689 |
<g:ref name="ModuleImport"/> |
| 2690 |
</g:choice> |
| 2691 |
</g:production> |
| 2692 |
<g:production name="Separator" if="xquery core"> |
| 2693 |
<g:ref name="SemiColon"/> |
| 2694 |
</g:production> |
| 2695 |
<g:production name="NamespaceDecl" if="xquery core"> |
| 2696 |
<g:ref name="DeclareNamespace"/> |
| 2697 |
<g:ref name="NCNameForPrefix"/> |
| 2698 |
<g:ref name="AssignEquals"/> |
| 2699 |
<g:ref name="URLLiteral"/> |
| 2700 |
</g:production> |
| 2701 |
<g:production name="XMLSpaceDecl" if="xquery"> |
| 2702 |
<g:ref name="DeclareXMLSpace"/> |
| 2703 |
<!-- g:ref name="XMLSpaceEquals"/ --> |
| 2704 |
<g:choice name="XMLSpacePreserveOrStrip"> |
| 2705 |
<g:ref name="XMLSpacePreserve"/> |
| 2706 |
<g:ref name="XMLSpaceStrip"/> |
| 2707 |
</g:choice> |
| 2708 |
</g:production> |
| 2709 |
<g:production name="DefaultNamespaceDecl" if="xquery core"> |
| 2710 |
<g:choice name="DeclareDefaultElementOrFunction"> |
| 2711 |
<g:ref name="DeclareDefaultElement" needs-exposition-parens="yes"/> |
| 2712 |
<g:ref name="DeclareDefaultFunction" needs-exposition-parens="yes"/> |
| 2713 |
</g:choice> |
| 2714 |
<g:ref name="Namespace"/> |
| 2715 |
<!-- g:ref name="AssignEquals"/ --> |
| 2716 |
<g:ref name="URLLiteral"/> |
| 2717 |
</g:production> |
| 2718 |
<g:production name="OrderingModeDecl" if="xquery core"> |
| 2719 |
<g:ref name="DeclareOrdering"/> |
| 2720 |
<g:choice name="DeclareOrderingArgument"> |
| 2721 |
<g:ref name="Ordered"/> |
| 2722 |
<g:ref name="Unordered"/> |
| 2723 |
</g:choice> |
| 2724 |
</g:production> |
| 2725 |
<g:production name="EmptyOrderingDecl" if="xquery core"> |
| 2726 |
<g:ref name="DeclareDefaultOrderingEmpty"/> |
| 2727 |
<g:choice name="DeclareEmptyOrderingArgument"> |
| 2728 |
<g:ref name="EmptyGreatest"/> |
| 2729 |
<g:ref name="EmptyLeast"/> |
| 2730 |
</g:choice> |
| 2731 |
</g:production> |
| 2732 |
|
| 2733 |
<g:production name="InheritNamespacesDecl" if="xquery core"> |
| 2734 |
<g:ref name="DeclareInheritNamespaces"/> |
| 2735 |
<g:choice name="DeclareInheritNamespacesArgument"> |
| 2736 |
<g:ref name="Yes"/> |
| 2737 |
<g:ref name="No"/> |
| 2738 |
</g:choice> |
| 2739 |
</g:production> |
| 2740 |
|
| 2741 |
<g:production name="DefaultCollationDecl" if="xquery core"> |
| 2742 |
<g:ref name="DeclareCollation"/> |
| 2743 |
<!-- ref name="StringLiteral"/ --> |
| 2744 |
<g:ref name="URLLiteral"/> |
| 2745 |
</g:production> |
| 2746 |
<g:production name="BaseURIDecl" if="xquery core"> |
| 2747 |
<g:ref name="DeclareBaseURI"/> |
| 2748 |
<g:ref name="URLLiteral"/> |
| 2749 |
</g:production> |
| 2750 |
<g:production name="SchemaImport" if="xquery core"> |
| 2751 |
<g:ref name="ImportSchemaToken"/> |
| 2752 |
<!-- See http://lists.w3.org/Archives/Member/w3c-xml-query-wg/2002Jan/0181.html --> |
| 2753 |
<g:optional name="OptionalSchemaImportPrefixDecl"> |
| 2754 |
<g:ref name="SchemaPrefix"/> |
| 2755 |
</g:optional> |
| 2756 |
<g:ref name="URLLiteral"/> |
| 2757 |
<g:optional name="OptionalLocationHint"> |
| 2758 |
<g:ref name="AtStringLiteral" needs-exposition-parens="yes"/> |
| 2759 |
<g:zeroOrMore name="AdditionalSchemaLocationHints"> |
| 2760 |
<g:ref name="Comma"/> |
| 2761 |
<g:ref name="StringLiteral"/> |
| 2762 |
</g:zeroOrMore> |
| 2763 |
</g:optional> |
| 2764 |
</g:production> |
| 2765 |
<g:production name="SchemaPrefix" if="xquery core"> |
| 2766 |
<g:choice name="SchemaPrefixNamespaceBinding"> |
| 2767 |
<g:sequence> |
| 2768 |
<g:ref name="Namespace"/> |
| 2769 |
<g:ref name="NCNameForPrefix"/> |
| 2770 |
<g:ref name="AssignEquals"/> |
| 2771 |
</g:sequence> |
| 2772 |
<g:sequence> |
| 2773 |
<g:ref name="DefaultElement"/> |
| 2774 |
<g:ref name="Namespace"/> |
| 2775 |
<!-- g:ref name="AssignEquals"/ --> |
| 2776 |
</g:sequence> |
| 2777 |
</g:choice> |
| 2778 |
</g:production> |
| 2779 |
<g:production name="ModuleImport" if="xquery core"> |
| 2780 |
<g:ref name="ImportModuleToken"/> |
| 2781 |
<g:optional name="ImportPrefixDecl"> |
| 2782 |
<g:ref name="Namespace"/> |
| 2783 |
<g:ref name="NCNameForPrefix"/> |
| 2784 |
<g:ref name="AssignEquals"/> |
| 2785 |
</g:optional> |
| 2786 |
<g:ref name="URLLiteral"/> |
| 2787 |
<g:optional name="LocationHint"> |
| 2788 |
<g:ref name="AtStringLiteral" needs-exposition-parens="yes"/> |
| 2789 |
<g:zeroOrMore name="AdditionalModuleLocationHints"> |
| 2790 |
<g:ref name="Comma"/> |
| 2791 |
<g:ref name="StringLiteral"/> |
| 2792 |
</g:zeroOrMore> |
| 2793 |
</g:optional> |
| 2794 |
</g:production> |
| 2795 |
<g:production name="VarDecl" if="xquery core"> |
| 2796 |
<g:ref name="DefineVariable"/> |
| 2797 |
<g:ref name="VarName"/> |
| 2798 |
<g:optional name="VarDeclOptionalTypeDecl"> |
| 2799 |
<g:ref name="TypeDeclaration" if="xquery core"/> |
| 2800 |
</g:optional> |
| 2801 |
<g:choice name="VarDeclAssignmentOrExtern"> |
| 2802 |
<g:sequence> |
| 2803 |
<!-- ref name="ColonEquals"/ --> |
| 2804 |
<!-- g:ref name="LbraceExprEnclosure"/ --> |
| 2805 |
<g:ref name="ColonEquals"/> |
| 2806 |
<g:ref name="ExprSingle"/> |
| 2807 |
<!-- g:ref name="Expr"/ --> |
| 2808 |
<!-- g:ref name="Rbrace"/ --> |
| 2809 |
</g:sequence> |
| 2810 |
<g:ref name="External"/> |
| 2811 |
</g:choice> |
| 2812 |
</g:production> |
| 2813 |
<g:production name="ConstructionDecl" if="xquery core"> |
| 2814 |
<g:ref name="DeclareConstruction"/> |
| 2815 |
<g:ref name="SchemaModeForDeclareConstruction"/> |
| 2816 |
</g:production> |
| 2817 |
<g:production name="FunctionDecl" if="xquery core"> |
| 2818 |
<g:ref name="DefineFunction"/> |
| 2819 |
<g:ref name="QNameLpar"/> |
| 2820 |
<!-- ref name="FuncPListOpen"/ --> |
| 2821 |
<g:optional name="OptionalParamList"> |
| 2822 |
<g:ref name="ParamList"/> |
| 2823 |
</g:optional> |
| 2824 |
<g:choice name="FunctionDeclSigClose"> |
| 2825 |
<g:ref name="Rpar"/> |
| 2826 |
<g:sequence if="xquery core"> |
| 2827 |
<g:ref name="RparAs"/> |
| 2828 |
<!-- Was Datatype --> |
| 2829 |
<g:ref name="SequenceType"/> |
| 2830 |
</g:sequence> |
| 2831 |
</g:choice> |
| 2832 |
<g:choice name="FunctionDeclBody"> |
| 2833 |
<g:ref name="EnclosedExpr"/> |
| 2834 |
<g:ref name="External"/> |
| 2835 |
</g:choice> |
| 2836 |
</g:production> |
| 2837 |
<g:production name="ParamList" if="xquery core"> |
| 2838 |
<g:ref name="Param"/> |
| 2839 |
<g:zeroOrMore name="ParamListTail"> |
| 2840 |
<g:ref name="Comma"/> |
| 2841 |
<g:ref name="Param"/> |
| 2842 |
</g:zeroOrMore> |
| 2843 |
</g:production> |
| 2844 |
<g:production name="Param" if="xquery core"> |
| 2845 |
<g:ref name="VariableIndicator"/> |
| 2846 |
<g:ref name="VarName"/> |
| 2847 |
<g:optional name="OptionalTypeDeclarationForParam"> |
| 2848 |
<g:ref name="TypeDeclaration"/> |
| 2849 |
</g:optional> |
| 2850 |
</g:production> |
| 2851 |
<g:production name="EnclosedExpr" if="xquery core"> |
| 2852 |
<g:choice name="EnclosedExprOpening"> |
| 2853 |
<g:ref name="Lbrace" show="no"/> |
| 2854 |
<g:ref name="LbraceExprEnclosure"/> |
| 2855 |
</g:choice> |
| 2856 |
<g:ref name="Expr"/> |
| 2857 |
<g:ref name="Rbrace"/> |
| 2858 |
</g:production> |
| 2859 |
|
| 2860 |
<!-- END PROLOG --> |
| 2861 |
|
| 2862 |
<g:production name="QueryBody" if="xquery core"> |
| 2863 |
<g:choice name="QueryOrUpdate"> |
| 2864 |
<g:ref name="Expr"/> |
| 2865 |
<g:ref name="UpdateBody" if="update"/> |
| 2866 |
</g:choice> |
| 2867 |
</g:production> |
| 2868 |
<g:production name="Expr"> |
| 2869 |
<g:ref name="ExprSingle"/> |
| 2870 |
<g:zeroOrMore name="CommaExpr"> |
| 2871 |
<g:ref name="Comma"/> |
| 2872 |
<g:ref name="ExprSingle"/> |
| 2873 |
</g:zeroOrMore> |
| 2874 |
</g:production> |
| 2875 |
<g:production name="ExprSingle" node-type="void"> |
| 2876 |
<g:choice break="true" name="ExprSingleChoice"> |
| 2877 |
<g:ref name="FLWORExpr" if="xquery core"/> |
| 2878 |
<g:ref name="ForExpr" if="xpath"/> |
| 2879 |
<g:ref name="QuantifiedExpr" if="xquery xpath"/> |
| 2880 |
<g:ref name="TypeswitchExpr" if="xquery core"/> |
| 2881 |
<g:ref name="IfExpr" if="xpath core xquery"/> |
| 2882 |
<g:ref name="OrExpr" if="xpath core xquery"/> |
| 2883 |
</g:choice> |
| 2884 |
</g:production> |
| 2885 |
|
| 2886 |
<g:production name="FLWORExpr" if="xquery core"> |
| 2887 |
<g:oneOrMore if="xquery" name="FLWORClauseList"> |
| 2888 |
<g:choice name="ForOrLet"> |
| 2889 |
<g:ref name="ForClause"/> |
| 2890 |
<g:ref name="LetClause"/> |
| 2891 |
</g:choice> |
| 2892 |
</g:oneOrMore> |
| 2893 |
<g:choice if="core" name="ForOrLetCore"> |
| 2894 |
<g:ref name="ForClause"/> |
| 2895 |
<g:ref name="LetClause"/> |
| 2896 |
</g:choice> |
| 2897 |
<g:optional if="xquery" name="OptionalWhere"> |
| 2898 |
<g:ref name="WhereClause"/> |
| 2899 |
</g:optional> |
| 2900 |
<g:optional if="xquery" name="OptionalOrderBy"> |
| 2901 |
<g:ref name="OrderByClause" if="xquery core"/> |
| 2902 |
</g:optional> |
| 2903 |
<g:ref name="Return"/> |
| 2904 |
<g:ref name="ExprSingle"/> |
| 2905 |
</g:production> |
| 2906 |
<g:production name="ForExpr" if="xpath"> |
| 2907 |
<g:ref name="SimpleForClause"/> |
| 2908 |
<g:ref name="Return"/> |
| 2909 |
<g:ref name="ExprSingle"/> |
| 2910 |
</g:production> |
| 2911 |
<!-- ForClause is slightly different now for XQuery vs. XPath. -sb --> |
| 2912 |
<g:production name="ForClause" if="xquery core" node-type="void"> |
| 2913 |
<g:ref name="ForVariable"/> |
| 2914 |
<!-- ref name="VariableIndicator" if="xquery core"/ --> |
| 2915 |
<g:ref name="VarName"/> |
| 2916 |
<g:optional if="xquery core" name="ForTypeDeclarationOption"> |
| 2917 |
<g:ref name="TypeDeclaration" if="xquery core"/> |
| 2918 |
</g:optional> |
| 2919 |
<g:optional if="xquery core" name="PositionalVarOption"> |
| 2920 |
<g:ref name="PositionalVar" if="xquery core"/> |
| 2921 |
</g:optional> |
| 2922 |
<g:ref name="In"/> |
| 2923 |
<g:ref name="ExprSingle"/> |
| 2924 |
<g:zeroOrMore if="xquery" name="ForClauseTail"> |
| 2925 |
<g:ref name="Comma"/> |
| 2926 |
<g:ref name="VariableIndicator"/> |
| 2927 |
<g:ref name="VarName"/> |
| 2928 |
<g:optional if="xquery core" name="ForTailTypeDeclarationOption"> |
| 2929 |
<g:ref name="TypeDeclaration" if="xquery core"/> |
| 2930 |
</g:optional> |
| 2931 |
<g:optional if="xquery core" name="TailPositionalVarOption"> |
| 2932 |
<g:ref name="PositionalVar" if="xquery core"/> |
| 2933 |
</g:optional> |
| 2934 |
<g:ref name="In"/> |
| 2935 |
<g:ref name="ExprSingle"/> |
| 2936 |
</g:zeroOrMore> |
| 2937 |
</g:production> |
| 2938 |
<g:production name="PositionalVar" if="core xquery"> |
| 2939 |
<g:ref name="AtWord"/> |
| 2940 |
<g:ref name="VariableIndicator"/> |
| 2941 |
<g:ref name="VarName"/> |
| 2942 |
</g:production> |
| 2943 |
<!-- SimpleForClause is slightly different now for XQuery vs. XPath. -sb --> |
| 2944 |
<g:production name="SimpleForClause" if="xpath" node-type="void"> |
| 2945 |
<g:ref name="ForVariable"/> |
| 2946 |
<g:ref name="VarName"/> |
| 2947 |
<g:ref name="In"/> |
| 2948 |
<g:ref name="ExprSingle"/> |
| 2949 |
<g:zeroOrMore name="SimpleForClauseTail"> |
| 2950 |
<g:ref name="Comma"/> |
| 2951 |
<g:ref name="VariableIndicator"/> |
| 2952 |
<g:ref name="VarName"/> |
| 2953 |
<g:ref name="In"/> |
| 2954 |
<g:ref name="ExprSingle"/> |
| 2955 |
</g:zeroOrMore> |
| 2956 |
</g:production> |
| 2957 |
<g:production name="LetClause" if="xquery core"> |
| 2958 |
<g:ref name="LetVariable"/> |
| 2959 |
<!-- ref name="VariableIndicator" if="xquery core"/ --> |
| 2960 |
<g:ref name="VarName"/> |
| 2961 |
<g:optional if="xquery core" name="LetTypeDeclarationOption"> |
| 2962 |
<g:ref name="TypeDeclaration" if="xquery core"/> |
| 2963 |
</g:optional> |
| 2964 |
<g:ref name="ColonEquals"/> |
| 2965 |
<g:ref name="ExprSingle"/> |
| 2966 |
<g:zeroOrMore if="xquery" name="LetClauseTail"> |
| 2967 |
<g:ref name="Comma"/> |
| 2968 |
<g:ref name="VariableIndicator"/> |
| 2969 |
<g:ref name="VarName"/> |
| 2970 |
<g:optional if="xquery core" name="LetTailTypeDeclarationOption"> |
| 2971 |
<g:ref name="TypeDeclaration" if="xquery core"/> |
| 2972 |
</g:optional> |
| 2973 |
<g:ref name="ColonEquals"/> |
| 2974 |
<g:ref name="ExprSingle"/> |
| 2975 |
</g:zeroOrMore> |
| 2976 |
</g:production> |
| 2977 |
<g:production name="WhereClause" if="xquery"> |
| 2978 |
<g:ref name="Where"/> |
| 2979 |
<g:ref name="ExprSingle"/> |
| 2980 |
</g:production> |
| 2981 |
<g:production name="OrderByClause" if="xquery core"> |
| 2982 |
<g:choice break="false" name="OrderByOrOrderByStable"> |
| 2983 |
<g:ref name="OrderBy"/> |
| 2984 |
<g:ref name="OrderByStable"/> |
| 2985 |
</g:choice> |
| 2986 |
<g:ref name="OrderSpecList"/> |
| 2987 |
</g:production> |
| 2988 |
<g:production name="OrderSpecList" if="xquery core"> |
| 2989 |
<g:ref name="OrderSpec"/> |
| 2990 |
<g:zeroOrMore name="OrderSpecListTail"> |
| 2991 |
<g:ref name="Comma"/> |
| 2992 |
<g:ref name="OrderSpec"/> |
| 2993 |
</g:zeroOrMore> |
| 2994 |
</g:production> |
| 2995 |
<g:production name="OrderSpec" if="xquery core"> |
| 2996 |
<g:ref name="ExprSingle"/> |
| 2997 |
<g:ref name="OrderModifier"/> |
| 2998 |
</g:production> |
| 2999 |
<g:production name="OrderModifier" if="xquery core"> |
| 3000 |
<g:optional name="SortDirectionOption"> |
| 3001 |
<g:choice name="AscendingOrDescending"> |
| 3002 |
<g:ref name="Ascending"/> |
| 3003 |
<g:ref name="Descending"/> |
| 3004 |
</g:choice> |
| 3005 |
</g:optional> |
| 3006 |
<g:optional name="EmptyPosOption"> |
| 3007 |
<g:choice name="EmptyGreatestOrLeast"> |
| 3008 |
<g:ref name="EmptyGreatest" needs-exposition-parens="yes"/> |
| 3009 |
<g:ref name="EmptyLeast" needs-exposition-parens="yes"/> |
| 3010 |
</g:choice> |
| 3011 |
</g:optional> |
| 3012 |
<g:optional name="CollationSpecOption"> |
| 3013 |
<g:ref name="Collation"/> |
| 3014 |
<g:ref name="StringLiteral"/> |
| 3015 |
</g:optional> |
| 3016 |
</g:production> |
| 3017 |
<g:production name="QuantifiedExpr" if="xquery xpath core"> |
| 3018 |
<g:choice name="SomeOrEvery"> |
| 3019 |
<g:ref name="Some" needs-exposition-parens="yes"/> |
| 3020 |
<g:ref name="Every" needs-exposition-parens="yes"/> |
| 3021 |
</g:choice> |
| 3022 |
<!-- ref name="VariableIndicator" if="xquery core"/ --> |
| 3023 |
<g:ref name="VarName"/> |
| 3024 |
<g:optional if="xquery core" name="QuantifiedTypeDeclarationOption"> |
| 3025 |
<g:ref name="TypeDeclaration" if="xquery core"/> |
| 3026 |
</g:optional> |
| 3027 |
<g:ref name="In"/> |
| 3028 |
<g:ref name="ExprSingle"/> |
| 3029 |
<g:zeroOrMore name="QuantifiedVarDeclListTail"> |
| 3030 |
<g:ref name="Comma"/> |
| 3031 |
<g:ref name="VariableIndicator"/> |
| 3032 |
<g:ref name="VarName"/> |
| 3033 |
<g:optional if="xquery core" name="QuantifiedTailTypeDeclarationOption"> |
| 3034 |
<g:ref name="TypeDeclaration" if="xquery core"/> |
| 3035 |
</g:optional> |
| 3036 |
<g:ref name="In"/> |
| 3037 |
<g:ref name="ExprSingle"/> |
| 3038 |
</g:zeroOrMore> |
| 3039 |
<g:ref name="Satisfies"/> |
| 3040 |
<g:ref name="ExprSingle"/> |
| 3041 |
</g:production> |
| 3042 |
<g:production name="TypeswitchExpr" if="xquery core"> |
| 3043 |
<g:ref name="TypeswitchLpar"/> |
| 3044 |
<g:ref name="Expr"/> |
| 3045 |
<g:ref name="Rpar"/> |
| 3046 |
<g:oneOrMore name="CaseClauseList"> |
| 3047 |
<g:ref name="CaseClause"/> |
| 3048 |
</g:oneOrMore> |
| 3049 |
<g:ref name="Default"/> |
| 3050 |
<g:optional name="DefaultClauseVarBindingOption"> |
| 3051 |
<g:ref name="VariableIndicator"/> |
| 3052 |
<g:ref name="VarName"/> |
| 3053 |
</g:optional> |
| 3054 |
<g:ref name="Return"/> |
| 3055 |
<g:ref name="ExprSingle"/> |
| 3056 |
</g:production> |
| 3057 |
<g:production name="CaseClause" if="xquery core"> |
| 3058 |
<g:ref name="Case"/> |
| 3059 |
<g:optional name="CaseClauseVarBindingOption"> |
| 3060 |
<g:ref name="VariableIndicator"/> |
| 3061 |
<g:ref name="VarName"/> |
| 3062 |
<g:ref name="As"/> |
| 3063 |
</g:optional> |
| 3064 |
<g:ref name="SequenceType"/> |
| 3065 |
<g:ref name="Return"/> |
| 3066 |
<g:ref name="ExprSingle"/> |
| 3067 |
</g:production> |
| 3068 |
<g:production name="IfExpr" if="xpath core xquery"> |
| 3069 |
<g:ref name="IfLpar" node-type="void"/> |
| 3070 |
<g:ref name="Expr"/> |
| 3071 |
<g:ref name="Rpar" node-type="void"/> |
| 3072 |
<!-- XPath TF decision to remove, Oct 16, 2002 --> |
| 3073 |
<g:ref name="Then" node-type="void"/> |
| 3074 |
<g:ref name="ExprSingle"/> |
| 3075 |
<g:ref name="Else" node-type="void"/> |
| 3076 |
<g:ref name="ExprSingle"/> |
| 3077 |
</g:production> |
| 3078 |
<g:exprProduction name="OperatorExpr" node-type="void" if="xquery |
| 3079 |
core xpath"> |
| 3080 |
<g:level> |
| 3081 |
<g:binary name="OrExpr" if="core xpath xquery" condition="> 1"> |
| 3082 |
<g:ref name="Or"/> |
| 3083 |
</g:binary> |
| 3084 |
</g:level> |
| 3085 |
<g:level> |
| 3086 |
<g:binary name="AndExpr" if="core xpath xquery" condition="> 1"> |
| 3087 |
<g:ref name="And"/> |
| 3088 |
</g:binary> |
| 3089 |
</g:level> |
| 3090 |
<g:level> |
| 3091 |
<g:binary name="ComparisonExpr" prefix-seq-type="?" if="xpath xquery" condition="> 1"> |
| 3092 |
<g:choice break="true" name="ValueOrGeneralOrNodeComp"> |
| 3093 |
<g:ref name="ValueComp"/> |
| 3094 |
<g:ref name="GeneralComp"/> |
| 3095 |
<g:ref name="NodeComp"/> |
| 3096 |
</g:choice> |
| 3097 |
</g:binary> |
| 3098 |
<g:binary name="ComparisonExprPathx1" if="pathx1" condition="> 1"> |
| 3099 |
<g:ref name="GeneralComp" if="pathx1"/> |
| 3100 |
</g:binary> |
| 3101 |
</g:level> |
| 3102 |
<g:level> |
| 3103 |
<g:binary name="RangeExpr" if="xquery xpath" prefix-seq-type="?" condition="> 1"> |
| 3104 |
<g:ref name="To"/> |
| 3105 |
</g:binary> |
| 3106 |
</g:level> |
| 3107 |
<g:level> |
| 3108 |
<g:binary name="AdditiveExpr" if="xquery xpath" condition="> 1"> |
| 3109 |
<g:choice name="AdditiveOps"> |
| 3110 |
<g:ref name="Plus"/> |
| 3111 |
<g:ref name="Minus"/> |
| 3112 |
</g:choice> |
| 3113 |
</g:binary> |
| 3114 |
</g:level> |
| 3115 |
<g:level> |
| 3116 |
<g:binary name="MultiplicativeExpr" if="xquery xpath" condition="> 1"> |
| 3117 |
<g:choice name="MultiplicativeOps"> |
| 3118 |
<g:ref name="Multiply"/> |
| 3119 |
<g:ref name="Div"/> |
| 3120 |
<g:ref name="Idiv"/> |
| 3121 |
<g:ref name="Mod"/> |
| 3122 |
</g:choice> |
| 3123 |
</g:binary> |
| 3124 |
</g:level> |
| 3125 |
<g:level> |
| 3126 |
<g:binary name="UnionExpr" if="xquery xpath" condition="> 1"> |
| 3127 |
<g:choice name="UnionOps"> |
| 3128 |
<g:ref name="Union" if="xquery xpath"/> |
| 3129 |
<g:ref name="Vbar"/> |
| 3130 |
</g:choice> |
| 3131 |
</g:binary> |
| 3132 |
</g:level> |
| 3133 |
<g:level> |
| 3134 |
<g:binary name="IntersectExceptExpr" if="xquery xpath" condition="> 1"> |
| 3135 |
<g:choice name="IntersectOps"> |
| 3136 |
<g:ref name="Intersect"/> |
| 3137 |
<g:ref name="Except"/> |
| 3138 |
</g:choice> |
| 3139 |
</g:binary> |
| 3140 |
</g:level> |
| 3141 |
<g:level> |
| 3142 |
<g:postfix name="InstanceofExpr" if="xquery xpath" prefix-seq-type="?" condition="> 1"> |
| 3143 |
<g:sequence name="InstanceOfExprOps"> |
| 3144 |
<g:ref name="Instanceof" node-type="void"/> |
| 3145 |
<g:ref name="SequenceType"/> |
| 3146 |
</g:sequence> |
| 3147 |
</g:postfix> |
| 3148 |
</g:level> |
| 3149 |
<g:level> |
| 3150 |
<g:postfix name="TreatExpr" if="xquery xpath" prefix-seq-type="?" condition="> 1"> |
| 3151 |
<g:sequence name="TreatExprOps"> |
| 3152 |
<g:ref name="TreatAs" node-type="void"/> |
| 3153 |
<g:ref name="SequenceType"/> |
| 3154 |
</g:sequence> |
| 3155 |
</g:postfix> |
| 3156 |
</g:level> |
| 3157 |
<g:level> |
| 3158 |
<g:postfix name="CastableExpr" if="core xquery xpath" prefix-seq-type="?" condition="> 1"> |
| 3159 |
<g:sequence name="CastableExprOps"> |
| 3160 |
<g:ref name="Castable" node-type="void"/> |
| 3161 |
<g:ref name="SingleType"/> |
| 3162 |
</g:sequence> |
| 3163 |
</g:postfix> |
| 3164 |
</g:level> |
| 3165 |
<g:level> |
| 3166 |
<g:postfix name="CastExpr" if="core xquery xpath" prefix-seq-type="?" node-type="void" condition="> 1"> |
| 3167 |
<g:sequence name="CastExprOps"> |
| 3168 |
<g:ref name="CastAs"/> |
| 3169 |
<g:ref name="SingleType"/> |
| 3170 |
</g:sequence> |
| 3171 |
</g:postfix> |
| 3172 |
</g:level> |
| 3173 |
<g:level node-type="UnaryExpr" level-user-action="boolean keepUnary=false;"> |
| 3174 |
<g:prefix name="UnaryExpr" if="xquery xpath" condition="keepUnary"> |
| 3175 |
<g:choice name="UnaryExprOps"> |
| 3176 |
<g:ref name="UnaryMinus" token-user-action="keepUnary=true;"/> |
| 3177 |
<g:ref name="UnaryPlus" if="xquery xpath core" token-user-action="keepUnary=true;"/> |
| 3178 |
</g:choice> |
| 3179 |
</g:prefix> |
| 3180 |
</g:level> |
| 3181 |
<g:level> |
| 3182 |
<g:primary name="ValueExpr"> |
| 3183 |
<g:choice name="ValueExprChoices"> |
| 3184 |
<g:ref name="ValidateExpr" if="xquery core"/> |
| 3185 |
<g:ref name="PathExpr" if="xquery xpath"/> |
| 3186 |
<g:ref name="StepExpr" if="core"/> |
| 3187 |
</g:choice> |
| 3188 |
</g:primary> |
| 3189 |
</g:level> |
| 3190 |
</g:exprProduction> |
| 3191 |
|
| 3192 |
<g:production name="GeneralComp" if="xpath xquery" is-binary="yes" comment-id="lt" node-type="void"> |
| 3193 |
<g:choice break="false" name="GeneralCompOps"> |
| 3194 |
<g:ref name="Equals"/> |
| 3195 |
<g:ref name="NotEquals"/> |
| 3196 |
<g:ref name="Lt"/> |
| 3197 |
<g:ref name="LtEquals"/> |
| 3198 |
<g:ref name="Gt"/> |
| 3199 |
<g:ref name="GtEquals"/> |
| 3200 |
</g:choice> |
| 3201 |
</g:production> |
| 3202 |
<g:production name="ValueComp" if="xpath xquery" is-binary="yes" node-type="void"> |
| 3203 |
<g:choice break="false" name="ValueCompOps"> |
| 3204 |
<g:ref name="FortranEq"/> |
| 3205 |
<g:ref name="FortranNe"/> |
| 3206 |
<g:ref name="FortranLt"/> |
| 3207 |
<g:ref name="FortranLe"/> |
| 3208 |
<g:ref name="FortranGt"/> |
| 3209 |
<g:ref name="FortranGe"/> |
| 3210 |
</g:choice> |
| 3211 |
</g:production> |
| 3212 |
<g:production name="NodeComp" if="xpath xquery" is-binary="yes" node-type="void"> |
| 3213 |
<g:choice break="false" name="NodeCompOps"> |
| 3214 |
<g:ref name="Is"/> |
| 3215 |
<!-- g:ref name="IsNot"/ --> |
| 3216 |
<g:ref name="LtLt"/> |
| 3217 |
<g:ref name="GtGt"/> |
| 3218 |
</g:choice> |
| 3219 |
</g:production> |
| 3220 |
|
| 3221 |
<g:exposition-production name="ValidateExpr" if="core xquery" comment-id="validate"> |
| 3222 |
<g:ref name="Validate"/> |
| 3223 |
<g:optional name="VModeOption"> |
| 3224 |
<g:ref name="ValidationMode"/> |
| 3225 |
</g:optional> |
| 3226 |
<g:ref name="LbraceExprEnclosure"/> |
| 3227 |
<g:ref name="Expr"/> |
| 3228 |
<g:ref name="Rbrace"/> |
| 3229 |
</g:exposition-production> |
| 3230 |
|
| 3231 |
<g:production name="ValidateExpr" if="core xquery" comment-id="validate"> |
| 3232 |
<g:choice name="ValidateExprSpecifiers"> |
| 3233 |
<g:ref name="ValidateLbrace"/> |
| 3234 |
<g:sequence> |
| 3235 |
<g:ref name="ValidateSchemaMode"/> |
| 3236 |
<g:ref name="LbraceExprEnclosure"/> |
| 3237 |
</g:sequence> |
| 3238 |
</g:choice> |
| 3239 |
<g:ref name="Expr"/> |
| 3240 |
<g:ref name="Rbrace"/> |
| 3241 |
</g:production> |
| 3242 |
|
| 3243 |
<!-- g:production name="ValidationContext" if="xquery core"> |
| 3244 |
<g:choice name="InContextOrGlobal"> |
| 3245 |
<g:sequence> |
| 3246 |
<g:ref name="InContextForKindTest"/> |
| 3247 |
<g:ref name="SchemaContextLoc"/> |
| 3248 |
</g:sequence> |
| 3249 |
<g:ref name="Global"/> |
| 3250 |
</g:choice> |
| 3251 |
</g:production --> |
| 3252 |
|
| 3253 |
<g:production name="PathExpr" comment-id="leading-lone-slash" if="xquery xpath" condition=">0"> |
| 3254 |
<g:choice break="true" name="PathExprChoices"> |
| 3255 |
<g:sequence> |
| 3256 |
<g:ref name="Root"/> |
| 3257 |
<g:optional name="OptionalRootExprTail"> |
| 3258 |
<g:ref name="RelativePathExpr"/> |
| 3259 |
</g:optional> |
| 3260 |
</g:sequence> |
| 3261 |
<g:sequence> |
| 3262 |
<g:ref name="RootDescendants"/> |
| 3263 |
<g:ref name="RelativePathExpr"/> |
| 3264 |
</g:sequence> |
| 3265 |
<g:sequence if="pathx1"> |
| 3266 |
<g:ref name="RHSPrimaryExpr" if="pathx1"/> |
| 3267 |
<g:optional if="pathx1" name="OptionalPathX1RelativeTail"> |
| 3268 |
<g:choice if="pathx1" name="PathX1StepSep"> |
| 3269 |
<g:ref name="Slash" if="pathx1"/> |
| 3270 |
<g:ref name="SlashSlash" if="pathx1"/> |
| 3271 |
</g:choice> |
| 3272 |
<g:ref name="RelativePathExpr" if="pathx1"/> |
| 3273 |
</g:optional> |
| 3274 |
</g:sequence> |
| 3275 |
<g:ref name="RelativePathExpr" if="xquery xpath"/> |
| 3276 |
</g:choice> |
| 3277 |
</g:production> |
| 3278 |
<g:production name="RelativePathExpr" node-type="void" if="xquery xpath"> |
| 3279 |
<g:ref name="StepExpr"/> |
| 3280 |
<g:zeroOrMore name="RelativePathExprTail"> |
| 3281 |
<g:choice name="RelativePathExprStepSep"> |
| 3282 |
<g:ref name="Slash" node-type="void"/> |
| 3283 |
<g:ref name="SlashSlash"/> |
| 3284 |
</g:choice> |
| 3285 |
<g:ref name="StepExpr"/> |
| 3286 |
</g:zeroOrMore> |
| 3287 |
</g:production> |
| 3288 |
<g:production name="StepExpr" node-type="StepExpr" if="core xquery xpath" condition=">1 || isStep" prod-user-action="boolean savedIsStep = isStep; isStep=false;"> |
| 3289 |
<g:choice name="AxisOrFilterStep"> |
| 3290 |
<g:ref name="AxisStep" nt-user-action-start="isStep=true;" nt-user-action-end="isStep = savedIsStep;"/> |
| 3291 |
<g:ref name="FilterExpr" if="xpath xquery" nt-user-action-end="isStep = savedIsStep;"/> |
| 3292 |
<g:ref name="PrimaryExpr" if="core"/> |
| 3293 |
</g:choice> |
| 3294 |
</g:production> |
| 3295 |
<g:production name="AxisStep" node-type="void"> |
| 3296 |
<g:choice name="ForwardOrReverseStep"> |
| 3297 |
<g:ref name="ForwardStep"/> |
| 3298 |
<g:ref name="ReverseStep"/> |
| 3299 |
</g:choice> |
| 3300 |
<g:ref name="PredicateList" if="xquery xpath"/> |
| 3301 |
</g:production> |
| 3302 |
<g:production name="ForwardStep" node-type="void"> |
| 3303 |
<g:choice name="ForwardAxisOrAbbrev"> |
| 3304 |
<g:sequence> |
| 3305 |
<g:ref name="ForwardAxis"/> |
| 3306 |
<g:ref name="NodeTest"/> |
| 3307 |
</g:sequence> |
| 3308 |
<g:ref name="AbbrevForwardStep" if="xpath xquery"/> |
| 3309 |
</g:choice> |
| 3310 |
</g:production> |
| 3311 |
<g:production name="ForwardAxis" node-type="void"> |
| 3312 |
<g:choice break="true" name="ForwardAxisNames"> |
| 3313 |
<g:ref name="AxisChild" needs-exposition-parens="yes"/> |
| 3314 |
<g:ref name="AxisDescendant" needs-exposition-parens="yes"/> |
| 3315 |
<g:ref name="AxisAttribute" needs-exposition-parens="yes"/> |
| 3316 |
<g:ref name="AxisSelf" needs-exposition-parens="yes"/> |
| 3317 |
<g:ref name="AxisDescendantOrSelf" needs-exposition-parens="yes"/> |
| 3318 |
<g:ref name="AxisFollowingSibling" if="xquery xpath core" needs-exposition-parens="yes"/> |
| 3319 |
<g:ref name="AxisFollowing" if="xquery xpath core" needs-exposition-parens="yes"/> |
| 3320 |
<g:ref name="AxisNamespace" if="xpath core" needs-exposition-parens="yes"/> |
| 3321 |
</g:choice> |
| 3322 |
</g:production> |
| 3323 |
<g:production name="AbbrevForwardStep" if="xquery xpath" node-type="void"> |
| 3324 |
<!-- g:ref name="Dot"/ --> |
| 3325 |
<g:optional name="OptionalAtSugar"> |
| 3326 |
<g:ref name="At"/> |
| 3327 |
</g:optional> |
| 3328 |
<g:ref name="NodeTest"/> |
| 3329 |
<!-- child axis --> |
| 3330 |
</g:production> |
| 3331 |
<g:production name="ReverseStep" node-type="void"> |
| 3332 |
<g:choice name="ReverseAxisOrAbbrev"> |
| 3333 |
<g:sequence> |
| 3334 |
<g:ref name="ReverseAxis"/> |
| 3335 |
<g:ref name="NodeTest"/> |
| 3336 |
</g:sequence> |
| 3337 |
<g:ref name="AbbrevReverseStep" if="xpath xquery"/> |
| 3338 |
</g:choice> |
| 3339 |
</g:production> |
| 3340 |
<g:production name="ReverseAxis" node-type="void"> |
| 3341 |
<g:choice break="true" name="ReverseAxisNames"> |
| 3342 |
<g:ref name="AxisParent" needs-exposition-parens="yes"/> |
| 3343 |
<g:ref name="AxisAncestor" if="xquery xpath core" needs-exposition-parens="yes"/> |
| 3344 |
<g:ref name="AxisPrecedingSibling" if="xquery xpath core" needs-exposition-parens="yes"/> |
| 3345 |
<g:ref name="AxisPreceding" if="xquery xpath core" needs-exposition-parens="yes"/> |
| 3346 |
<g:ref name="AxisAncestorOrSelf" if="xquery xpath core" needs-exposition-parens="yes"/> |
| 3347 |
</g:choice> |
| 3348 |
</g:production> |
| 3349 |
<g:production name="AbbrevReverseStep" if="xquery xpath" node-type="void"> |
| 3350 |
<g:ref name="DotDot"/> |
| 3351 |
</g:production> |
| 3352 |
<g:production name="NodeTest"> |
| 3353 |
<g:choice name="KindOrNameTest"> |
| 3354 |
<g:ref name="KindTest"/> |
| 3355 |
<g:ref name="NameTest"/> |
| 3356 |
</g:choice> |
| 3357 |
</g:production> |
| 3358 |
<g:production name="NameTest"> |
| 3359 |
<g:choice name="QNameOrWildcard"> |
| 3360 |
<g:ref name="QName"/> |
| 3361 |
<g:ref name="Wildcard"/> |
| 3362 |
</g:choice> |
| 3363 |
</g:production> |
| 3364 |
<g:production name="Wildcard" node-type="void" whitespace-spec="explicit"> |
| 3365 |
<g:choice break="true" name="WildcardChoice"> |
| 3366 |
<g:ref name="Star"/> |
| 3367 |
<g:ref name="NCNameColonStar" needs-exposition-parens="yes"/> |
| 3368 |
<g:ref name="StarColonNCName" if="xquery core xpath" needs-exposition-parens="yes"/> |
| 3369 |
</g:choice> |
| 3370 |
</g:production> |
| 3371 |
|
| 3372 |
<g:production name="FilterExpr" node-type="void" if="xquery xpath"> |
| 3373 |
<g:ref name="PrimaryExpr" if="xpath xquery"/> |
| 3374 |
<g:ref name="PredicateList"/> |
| 3375 |
</g:production> |
| 3376 |
<g:production name="PredicateList" if="xquery xpath" condition="> 0"> |
| 3377 |
<g:zeroOrMore name="PredicatesListX"> |
| 3378 |
<g:ref name="Predicate"/> |
| 3379 |
</g:zeroOrMore> |
| 3380 |
</g:production> |
| 3381 |
<g:production name="Predicate" if="xquery xpath" condition="> 0"> |
| 3382 |
<g:ref name="Lbrack" node-type="void"/> |
| 3383 |
<g:ref name="Expr"/> |
| 3384 |
<g:ref name="Rbrack" node-type="void"/> |
| 3385 |
</g:production> |
| 3386 |
|
| 3387 |
<g:production name="PrimaryExpr" node-type="void"> |
| 3388 |
<g:choice name="PrimaryExprChoices"> |
| 3389 |
<g:ref name="Literal"/> |
| 3390 |
<g:ref name="VarRef"/> |
| 3391 |
<g:ref name="ParenthesizedExpr"/> |
| 3392 |
<g:ref name="ContextItemExpr" nt-user-action-start="isStep=true;" if="xquery xpath"/> |
| 3393 |
<g:ref name="FunctionCall"/> |
| 3394 |
<g:ref name="Constructor" if="xquery"/> |
| 3395 |
<g:ref name="OrderedExpr" if="xquery"/> |
| 3396 |
<g:ref name="UnorderedExpr" if="xquery"/> |
| 3397 |
</g:choice> |
| 3398 |
</g:production> |
| 3399 |
<g:production name="Literal" node-type="void"> |
| 3400 |
<g:choice name="NumericOrStringLit"> |
| 3401 |
<g:ref name="NumericLiteral"/> |
| 3402 |
<g:ref name="StringLiteral"/> |
| 3403 |
</g:choice> |
| 3404 |
</g:production> |
| 3405 |
<g:production name="NumericLiteral" node-type="void"> |
| 3406 |
<g:choice name="NumericLitChoice"> |
| 3407 |
<g:ref name="IntegerLiteral"/> |
| 3408 |
<g:ref name="DecimalLiteral"/> |
| 3409 |
<g:ref name="DoubleLiteral"/> |
| 3410 |
</g:choice> |
| 3411 |
</g:production> |
| 3412 |
<g:production name="VarRef" node-type="void"> |
| 3413 |
<g:ref name="VariableIndicator"/> |
| 3414 |
<g:ref name="VarName"/> |
| 3415 |
</g:production> |
| 3416 |
<g:production name="ParenthesizedExpr" node-type="void"> |
| 3417 |
<g:ref name="Lpar"/> |
| 3418 |
<g:optional if="xquery core xpath" name="OptionalExpr"> |
| 3419 |
<g:ref name="Expr"/> |
| 3420 |
</g:optional> |
| 3421 |
<g:ref name="Expr" if="pathx1"/> |
| 3422 |
<g:ref name="Rpar"/> |
| 3423 |
</g:production> |
| 3424 |
<g:production name="ContextItemExpr" if="xquery xpath" node-type="void"> |
| 3425 |
<g:ref name="Dot"/> |
| 3426 |
</g:production> |
| 3427 |
<g:production name="OrderedExpr" node-type="void" if="xquery core"> |
| 3428 |
<g:ref name="OrderedOpen"/> |
| 3429 |
<g:ref name="Expr"/> |
| 3430 |
<g:ref name="Rbrace"/> |
| 3431 |
</g:production> |
| 3432 |
<g:production name="UnorderedExpr" node-type="void" if="xquery core"> |
| 3433 |
<g:ref name="UnorderedOpen"/> |
| 3434 |
<g:ref name="Expr"/> |
| 3435 |
<g:ref name="Rbrace"/> |
| 3436 |
</g:production> |
| 3437 |
|
| 3438 |
|
| 3439 |
<g:production name="FunctionCall" if="xpath xquery core" |
| 3440 |
comment-id="parens reserved-function-names"> |
| 3441 |
<g:choice name="FunctionNameOpening"> |
| 3442 |
<g:ref name="QNameLpar"/> |
| 3443 |
<g:ref name="IDLpar" sub-spec="xslt-patterns" if="pathx1"/> |
| 3444 |
<g:ref name="KeyLpar" sub-spec="xslt-patterns" if="pathx1"/> |
| 3445 |
</g:choice> |
| 3446 |
<g:optional name="ArgList"> |
| 3447 |
<g:ref name="ExprSingle"/> |
| 3448 |
<g:zeroOrMore name="ArgListTail"> |
| 3449 |
<g:ref name="Comma"/> |
| 3450 |
<g:ref name="ExprSingle"/> |
| 3451 |
</g:zeroOrMore> |
| 3452 |
</g:optional> |
| 3453 |
<g:ref name="Rpar"/> |
| 3454 |
</g:production> |
| 3455 |
|
| 3456 |
<g:production name="Constructor" if="xquery"> |
| 3457 |
<g:choice break="true" name="ConstructorChoice"> |
| 3458 |
<g:ref name="DirectConstructor"/> |
| 3459 |
<g:ref name="ComputedConstructor"/> |
| 3460 |
</g:choice> |
| 3461 |
</g:production> |
| 3462 |
|
| 3463 |
<g:production name="DirectConstructor" if="xquery"> |
| 3464 |
<g:choice break="true" name="DirectConstructorChoice"> |
| 3465 |
<g:ref name="DirElemConstructor"/> |
| 3466 |
<g:ref name="DirCommentConstructor"/> |
| 3467 |
<g:ref name="DirPIConstructor"/> |
| 3468 |
</g:choice> |
| 3469 |
</g:production> |
| 3470 |
<g:production name="DirElemConstructor" if="xquery" whitespace-spec="explicit" comment-id="lt"> |
| 3471 |
<g:choice name="TagOpenStart"> |
| 3472 |
<g:ref name="StartTagOpenRoot" show="no"/> |
| 3473 |
<g:ref name="StartTagOpen"/> |
| 3474 |
</g:choice> |
| 3475 |
<g:ref name="TagQName"/> |
| 3476 |
<g:ref name="DirAttributeList"/> |
| 3477 |
<g:choice name="TagClose"> |
| 3478 |
<g:ref name="EmptyTagClose"/> |
| 3479 |
<g:sequence name="TagContent"> |
| 3480 |
<g:ref name="StartTagClose"/> |
| 3481 |
<g:zeroOrMore name="ElementContentBody"> |
| 3482 |
<g:ref name="DirElemContent"/> |
| 3483 |
</g:zeroOrMore> |
| 3484 |
<g:ref name="EndTagOpen"/> |
| 3485 |
<g:ref name="TagQName"/> |
| 3486 |
<g:optional name="OptionalWhitespaceBeforeEndTagClose"> |
| 3487 |
<g:ref name="S"/> |
| 3488 |
</g:optional> |
| 3489 |
<g:ref name="EndTagClose"/> |
| 3490 |
</g:sequence> |
| 3491 |
</g:choice> |
| 3492 |
</g:production> |
| 3493 |
<g:production name="DirAttributeList" if="xquery" whitespace-spec="explicit"> |
| 3494 |
<g:zeroOrMore name="OptionalAttributeList"> |
| 3495 |
<g:ref name="S"/> |
| 3496 |
<g:optional name="OptionalAttribute"> |
| 3497 |
<g:ref name="TagQName"/> |
| 3498 |
<g:optional name="OptionalWhitespaceBeforeValueIndicator"> |
| 3499 |
<g:ref name="S"/> |
| 3500 |
</g:optional> |
| 3501 |
<g:ref name="ValueIndicator"/> |
| 3502 |
<g:optional name="OptionalWhitespaceBeforeAttributeValue"> |
| 3503 |
<g:ref name="S"/> |
| 3504 |
</g:optional> |
| 3505 |
<g:ref name="DirAttributeValue"/> |
| 3506 |
</g:optional> |
| 3507 |
</g:zeroOrMore> |
| 3508 |
</g:production> |
| 3509 |
<g:production name="DirAttributeValue" if="xquery" whitespace-spec="explicit"> |
| 3510 |
<g:choice break="true" name="AttributeValueComponent"> |
| 3511 |
<g:sequence> |
| 3512 |
<g:ref name="OpenQuot"/> |
| 3513 |
<g:zeroOrMore name="QuotAttributeValueContents"> |
| 3514 |
<g:choice name="QuotContentOrEscape"> |
| 3515 |
<g:ref name="EscapeQuot"/> |
| 3516 |
<g:ref name="QuotAttrValueContent"/> |
| 3517 |
</g:choice> |
| 3518 |
</g:zeroOrMore> |
| 3519 |
<g:ref name="CloseQuot"/> |
| 3520 |
</g:sequence> |
| 3521 |
<g:sequence> |
| 3522 |
<g:ref name="OpenApos"/> |
| 3523 |
<g:zeroOrMore name="AposAttributeValueContents"> |
| 3524 |
<g:choice name="AposContentOrEscape"> |
| 3525 |
<g:ref name="EscapeApos"/> |
| 3526 |
<g:ref name="AposAttrValueContent"/> |
| 3527 |
</g:choice> |
| 3528 |
</g:zeroOrMore> |
| 3529 |
<g:ref name="CloseApos"/> |
| 3530 |
</g:sequence> |
| 3531 |
</g:choice> |
| 3532 |
</g:production> |
| 3533 |
<g:production name="QuotAttrValueContent" if="xquery"> |
| 3534 |
<g:choice break="true" name="QuotAttrValueComponent"> |
| 3535 |
<g:ref name="QuotAttrContentChar"/> |
| 3536 |
<g:ref name="CommonContent"/> |
| 3537 |
</g:choice> |
| 3538 |
</g:production> |
| 3539 |
<g:production name="AposAttrValueContent" if="xquery"> |
| 3540 |
<g:choice break="true" name="AposAttrValueComponent"> |
| 3541 |
<g:ref name="AposAttrContentChar"/> |
| 3542 |
<g:ref name="CommonContent"/> |
| 3543 |
</g:choice> |
| 3544 |
</g:production> |
| 3545 |
<g:production name="DirElemContent" if="xquery"> |
| 3546 |
<g:choice break="true" name="ElementContentComponents"> |
| 3547 |
<g:ref name="DirectConstructor"/> |
| 3548 |
<g:ref name="ElementContentChar"/> |
| 3549 |
<g:ref name="CDataSection"/> |
| 3550 |
<g:ref name="CommonContent"/> |
| 3551 |
</g:choice> |
| 3552 |
</g:production> |
| 3553 |
<g:production name="CommonContent" if="xquery"> |
| 3554 |
<g:choice name="CommonContentChoice"> |
| 3555 |
<g:ref name="PredefinedEntityRef"/> |
| 3556 |
<g:ref name="CharRef"/> |
| 3557 |
<g:ref name="LCurlyBraceEscape"/> |
| 3558 |
<g:ref name="RCurlyBraceEscape"/> |
| 3559 |
<g:ref name="EnclosedExpr"/> |
| 3560 |
</g:choice> |
| 3561 |
</g:production> |
| 3562 |
|
| 3563 |
<g:production name="DirCommentConstructor" if="xquery" whitespace-spec="explicit"> |
| 3564 |
<g:choice name="XmlCommentStartOpen"> |
| 3565 |
<g:ref name="XmlCommentStartForElementContent" show="no"/> |
| 3566 |
<g:ref name="XmlCommentStart"/> |
| 3567 |
</g:choice> |
| 3568 |
<g:ref name="DirCommentContents"/> |
| 3569 |
<g:ref name="XmlCommentEnd"/> |
| 3570 |
</g:production> |
| 3571 |
|
| 3572 |
<g:production name="DirCommentContents" if="xquery" whitespace-spec="explicit"> |
| 3573 |
<g:zeroOrMore name="XmlCommentContents"> |
| 3574 |
<g:choice name="XmlCommentContentsChar"> |
| 3575 |
<g:ref name="CommentContentChar"/> |
| 3576 |
<g:ref name="CommentContentCharDash" needs-exposition-parens="yes"/> |
| 3577 |
</g:choice> |
| 3578 |
</g:zeroOrMore> |
| 3579 |
</g:production> |
| 3580 |
|
| 3581 |
<g:production name="DirPIConstructor" if="xquery" whitespace-spec="explicit"> |
| 3582 |
<g:choice name="ProcessingInstructionStartOpen"> |
| 3583 |
<g:ref name="ProcessingInstructionStartForElementContent" show="no"/> |
| 3584 |
<g:ref name="ProcessingInstructionStart"/> |
| 3585 |
</g:choice> |
| 3586 |
<g:ref name="PITarget"/> |
| 3587 |
<g:optional name="OptionalPIContent"> |
| 3588 |
<g:ref name="SForPI"/> |
| 3589 |
<g:ref name="DirPIContents"/> |
| 3590 |
</g:optional> |
| 3591 |
<g:ref name="ProcessingInstructionEnd"/> |
| 3592 |
</g:production> |
| 3593 |
|
| 3594 |
<g:production name="DirPIContents" if="xquery" whitespace-spec="explicit"> |
| 3595 |
<g:zeroOrMore name="XmlPIContentBody" subtract-reg-expr="(Char* '?>' Char*)"> |
| 3596 |
<g:ref name="PIContentChar"/> |
| 3597 |
</g:zeroOrMore> |
| 3598 |
</g:production> |
| 3599 |
|
| 3600 |
|
| 3601 |
<g:production name="CDataSection" if="xquery" whitespace-spec="explicit"> |
| 3602 |
<g:choice name="CdataSectionOpen"> |
| 3603 |
<g:ref name="CdataSectionStartForElementContent" show="no"/> |
| 3604 |
<g:ref name="CdataSectionStart"/> |
| 3605 |
</g:choice> |
| 3606 |
<g:ref name="CDataSectionContents"/> |
| 3607 |
<g:ref name="CdataSectionEnd"/> |
| 3608 |
</g:production> |
| 3609 |
|
| 3610 |
<g:production name="CDataSectionContents" if="xquery" whitespace-spec="explicit"> |
| 3611 |
<g:zeroOrMore name="CdataSectionBody" subtract-reg-expr="(Char* ']]>' Char*)"> |
| 3612 |
<g:ref name="CDataSectionChar"/> |
| 3613 |
</g:zeroOrMore> |
| 3614 |
</g:production> |
| 3615 |
|
| 3616 |
<g:production name="ComputedConstructor" if="xquery core"> |
| 3617 |
<g:choice break="true" name="ComputedConstructorChoice"> |
| 3618 |
<g:ref name="CompDocConstructor" if="xquery core"/> |
| 3619 |
<g:ref name="CompElemConstructor" if="xquery core"/> |
| 3620 |
<g:ref name="CompAttrConstructor" if="xquery core"/> |
| 3621 |
<g:ref name="CompTextConstructor" if="xquery core"/> |
| 3622 |
<g:ref name="CompCommentConstructor" if="xquery core"/> |
| 3623 |
<g:ref name="CompPIConstructor" if="xquery core"/> |
| 3624 |
</g:choice> |
| 3625 |
</g:production> |
| 3626 |
<g:production name="CompDocConstructor" if="xquery core"> |
| 3627 |
<g:ref name="DocumentLbrace"/> |
| 3628 |
<g:ref name="Expr"/> |
| 3629 |
<g:ref name="Rbrace"/> |
| 3630 |
</g:production> |
| 3631 |
<g:production name="CompElemConstructor" if="xquery core"> |
| 3632 |
<g:choice name="CompElemConstructorSpec"> |
| 3633 |
<g:ref name="ElementQNameLbrace" needs-exposition-parens="yes"/> |
| 3634 |
<g:sequence> |
| 3635 |
<g:ref name="ElementLbrace"/> |
| 3636 |
<g:ref name="Expr"/> |
| 3637 |
<g:ref name="Rbrace"/> |
| 3638 |
<g:ref name="LbraceExprEnclosure"/> |
| 3639 |
</g:sequence> |
| 3640 |
</g:choice> |
| 3641 |
<g:optional name="OptionalContentExpr"> |
| 3642 |
<g:ref name="ContentExpr"/> |
| 3643 |
</g:optional> |
| 3644 |
<g:ref name="Rbrace"/> |
| 3645 |
</g:production> |
| 3646 |
<g:production name="ContentExpr" if="xquery core"> |
| 3647 |
<!-- g:choice name="CompElemNamespaceOrExprSingle"> |
| 3648 |
<g:ref name="LocalNamespaceDecl"/> |
| 3649 |
<g:ref name="ExprSingle"/> |
| 3650 |
</g:choice> |
| 3651 |
<g:zeroOrMore name="CompElemBodyTail"> |
| 3652 |
<g:ref name="Comma"/> |
| 3653 |
<g:choice name="TailCompElemNamespaceOrExprSingle"> |
| 3654 |
<g:ref name="LocalNamespaceDecl"/> |
| 3655 |
<g:ref name="ExprSingle"/> |
| 3656 |
</g:choice> |
| 3657 |
</g:zeroOrMore --> |
| 3658 |
<g:ref name="Expr"/> |
| 3659 |
</g:production> |
| 3660 |
<!-- g:production name="LocalNamespaceDecl" if="xquery core"> |
| 3661 |
<g:ref name="NamespaceNCNameLbrace" needs-exposition-parens="no"/> |
| 3662 |
<g:ref name="StringLiteral"/> |
| 3663 |
<g:ref name="Rbrace"/> |
| 3664 |
</g:production --> |
| 3665 |
<g:production name="CompAttrConstructor" if="xquery core"> |
| 3666 |
<g:choice name="CompAttrConstructorOpening"> |
| 3667 |
<g:ref name="AttributeQNameLbrace" needs-exposition-parens="yes"/> |
| 3668 |
<g:sequence> |
| 3669 |
<g:ref name="AttributeLbrace"/> |
| 3670 |
<g:ref name="Expr"/> |
| 3671 |
<g:ref name="Rbrace"/> |
| 3672 |
<g:ref name="LbraceExprEnclosure"/> |
| 3673 |
</g:sequence> |
| 3674 |
</g:choice> |
| 3675 |
<g:optional name="OptionalCompAttrValExpr"> |
| 3676 |
<g:ref name="Expr"/> |
| 3677 |
</g:optional> |
| 3678 |
<g:ref name="Rbrace"/> |
| 3679 |
</g:production> |
| 3680 |
<g:production name="CompTextConstructor" if="xquery core"> |
| 3681 |
<g:ref name="TextLbrace"/> |
| 3682 |
<g:ref name="Expr"/> |
| 3683 |
<g:ref name="Rbrace"/> |
| 3684 |
</g:production> |
| 3685 |
<g:production name="CompCommentConstructor" if="xquery core"> |
| 3686 |
<g:ref name="CommentLbrace"/> |
| 3687 |
<g:ref name="Expr"/> |
| 3688 |
<g:ref name="Rbrace"/> |
| 3689 |
</g:production> |
| 3690 |
<g:production name="CompPIConstructor" if="xquery core"> |
| 3691 |
<g:choice name="CompXmlPIOpening"> |
| 3692 |
<g:ref name="PINCNameLbrace" needs-exposition-parens="yes"/> |
| 3693 |
<g:sequence> |
| 3694 |
<g:ref name="PILbrace"/> |
| 3695 |
<g:ref name="Expr"/> |
| 3696 |
<g:ref name="Rbrace"/> |
| 3697 |
<g:ref name="LbraceExprEnclosure"/> |
| 3698 |
</g:sequence> |
| 3699 |
</g:choice> |
| 3700 |
<g:optional name="OptionalCompXmlPIExpr"> |
| 3701 |
<g:ref name="Expr"/> |
| 3702 |
</g:optional> |
| 3703 |
<g:ref name="Rbrace"/> |
| 3704 |
</g:production> |
| 3705 |
|
| 3706 |
<g:production name="SingleType" if="xquery core xpath"> |
| 3707 |
<g:ref name="AtomicType"/> |
| 3708 |
<g:optional name="OptionalOccurrenceIndicator"> |
| 3709 |
<g:ref name="OccurrenceZeroOrOne"/> |
| 3710 |
</g:optional> |
| 3711 |
</g:production> |
| 3712 |
<g:production name="TypeDeclaration" if="xquery core"> |
| 3713 |
<g:ref name="As"/> |
| 3714 |
<g:ref name="SequenceType"/> |
| 3715 |
</g:production> |
| 3716 |
<g:production name="SequenceType" if="xquery core xpath"> |
| 3717 |
<g:choice break="true" name="ItemTypeOrEmpty"> |
| 3718 |
<g:sequence> |
| 3719 |
<g:ref name="ItemType"/> |
| 3720 |
<g:optional name="OptionalOccurrenceIndicatorForSequenceType"> |
| 3721 |
<g:ref name="OccurrenceIndicator"/> |
| 3722 |
</g:optional> |
| 3723 |
</g:sequence> |
| 3724 |
<g:ref name="EmptyTok" needs-exposition-parens="yes"/> |
| 3725 |
</g:choice> |
| 3726 |
</g:production> |
| 3727 |
<g:production name="OccurrenceIndicator" if="xquery core xpath" node-type="void" |
| 3728 |
comment-id="occurrence-indicators"> |
| 3729 |
<g:choice name="OccurrenceIndicatorOps"> |
| 3730 |
<!-- ref name="Star" if="xpath xquery core" show="no"/> |
| 3731 |
<g:ref name="Multiply" if="xpath xquery core"/> |
| 3732 |
<g:ref name="Plus"/> |
| 3733 |
<g:ref name="QMark"/ --> |
| 3734 |
<g:ref name="OccurrenceZeroOrOne"/> |
| 3735 |
<g:ref name="OccurrenceZeroOrMore"/> |
| 3736 |
<g:ref name="OccurrenceOneOrMore"/> |
| 3737 |
</g:choice> |
| 3738 |
</g:production> |
| 3739 |
<g:production name="ItemType" if="xquery core xpath" node-type="void"> |
| 3740 |
<g:choice break="false" name="ItemTypeChoice"> |
| 3741 |
<g:ref name="AtomicType"/> |
| 3742 |
<g:ref name="KindTest"/> |
| 3743 |
<g:ref name="Item" needs-exposition-parens="yes"/> |
| 3744 |
</g:choice> |
| 3745 |
</g:production> |
| 3746 |
<g:production name="AtomicType" if="xquery core xpath"> |
| 3747 |
<g:choice name="QNameForAtomicOrSequenceType"> |
| 3748 |
<g:ref name="QNameForAtomicType" show="no"/> |
| 3749 |
<g:ref name="QNameForSequenceType"/> |
| 3750 |
</g:choice> |
| 3751 |
</g:production> |
| 3752 |
<g:production name="KindTest" node-type="void"> |
| 3753 |
<g:choice break="true" name="KindTestChoice"> |
| 3754 |
<g:ref name="DocumentTest" if="xquery core xpath"/> |
| 3755 |
<g:ref name="ElementTest" if="xquery core xpath"/> |
| 3756 |
<g:ref name="AttributeTest" if="xquery core xpath"/> |
| 3757 |
<g:ref name="SchemaElementTest" if="xquery core xpath"/> |
| 3758 |
<g:ref name="SchemaAttributeTest" if="xquery core xpath"/> |
| 3759 |
<g:ref name="PITest"/> |
| 3760 |
<g:ref name="CommentTest"/> |
| 3761 |
<g:ref name="TextTest"/> |
| 3762 |
<g:ref name="AnyKindTest"/> |
| 3763 |
</g:choice> |
| 3764 |
</g:production> |
| 3765 |
<g:production name="AnyKindTest"> |
| 3766 |
<g:choice name="AnyKindTestOpening"> |
| 3767 |
<g:ref name="NodeLpar"/> |
| 3768 |
<g:ref name="NodeLparForKindTest" show="no"/> |
| 3769 |
</g:choice> |
| 3770 |
<g:ref name="RparForKindTest"/> |
| 3771 |
</g:production> |
| 3772 |
<g:production name="DocumentTest" if="xquery core xpath"> |
| 3773 |
<g:choice name="DocumentTestOpening"> |
| 3774 |
<g:ref name="DocumentLpar"/> |
| 3775 |
<g:ref name="DocumentLparForKindTest" show="no"/> |
| 3776 |
</g:choice> |
| 3777 |
<g:optional name="OptionalDocumentTestBody"> |
| 3778 |
<g:choice name="DocumentTestBodyChoice"> |
| 3779 |
<g:ref name="ElementTest"/> |
| 3780 |
<g:ref name="SchemaElementTest"/> |
| 3781 |
</g:choice> |
| 3782 |
</g:optional> |
| 3783 |
<g:ref name="RparForKindTest"/> |
| 3784 |
</g:production> |
| 3785 |
<g:production name="TextTest"> |
| 3786 |
<g:choice name="TextTestOpen"> |
| 3787 |
<g:ref name="TextLpar"/> |
| 3788 |
<g:ref name="TextLparForKindTest" show="no"/> |
| 3789 |
</g:choice> |
| 3790 |
<g:ref name="RparForKindTest"/> |
| 3791 |
</g:production> |
| 3792 |
<g:production name="CommentTest"> |
| 3793 |
<g:choice name="CommentTestOpen"> |
| 3794 |
<g:ref name="CommentLpar"/> |
| 3795 |
<g:ref name="CommentLparForKindTest" show="no"/> |
| 3796 |
</g:choice> |
| 3797 |
<g:ref name="RparForKindTest"/> |
| 3798 |
</g:production> |
| 3799 |
<g:production name="PITest"> |
| 3800 |
<g:choice name="PITestOpening"> |
| 3801 |
<g:ref name="ProcessingInstructionLpar"/> |
| 3802 |
<g:ref name="ProcessingInstructionLparForKindTest" show="no"/> |
| 3803 |
</g:choice> |
| 3804 |
<g:optional name="OptionalPITestBody"> |
| 3805 |
<g:choice name="NCNameForPIOrStringLit"> |
| 3806 |
<g:ref name="NCNameForPI"/> |
| 3807 |
<g:ref name="StringLiteralForKindTest"/> |
| 3808 |
</g:choice> |
| 3809 |
</g:optional> |
| 3810 |
<g:ref name="RparForKindTest"/> |
| 3811 |
</g:production> |
| 3812 |
<g:production name="AttributeTest" if="xquery core xpath"> |
| 3813 |
<g:choice name="AttributeTestOpening"> |
| 3814 |
<g:ref name="AttributeType"/> |
| 3815 |
<g:ref name="AttributeTypeForKindTest" show="no"/> |
| 3816 |
</g:choice> |
| 3817 |
<g:optional name="OptionalAttributeTestBody"> |
| 3818 |
<g:sequence> |
| 3819 |
<!-- g:ref name="At"/ --> |
| 3820 |
<g:ref name="AttribNameOrWildcard"/> |
| 3821 |
<g:optional name="AttributeTestBodyOptionalParam"> |
| 3822 |
<g:ref name="CommaForKindTest"/> |
| 3823 |
<g:ref name="TypeName"/> |
| 3824 |
</g:optional> |
| 3825 |
</g:sequence> |
| 3826 |
</g:optional> |
| 3827 |
<g:ref name="RparForKindTest"/> |
| 3828 |
</g:production> |
| 3829 |
|
| 3830 |
<g:production name="AttribNameOrWildcard" if="xpath xquery core"> |
| 3831 |
<g:choice name="AttrNameOrWildcardChoice"> |
| 3832 |
<g:ref name="AttributeName"/> |
| 3833 |
<g:ref name="AnyName"/> |
| 3834 |
</g:choice> |
| 3835 |
</g:production> |
| 3836 |
|
| 3837 |
<g:production name="SchemaAttributeTest" if="xquery core xpath"> |
| 3838 |
<g:choice name="SchemaAttributeTypeOpen"> |
| 3839 |
<g:ref name="SchemaAttributeType"/> |
| 3840 |
<g:ref name="SchemaAttributeTypeForKindTest" show="no"/> |
| 3841 |
</g:choice> |
| 3842 |
<g:ref name="AttributeDeclaration"/> |
| 3843 |
<g:ref name="RparForKindTest"/> |
| 3844 |
</g:production> |
| 3845 |
|
| 3846 |
<g:production name="AttributeDeclaration"> |
| 3847 |
<g:ref name="AttributeName"/> |
| 3848 |
</g:production> |
| 3849 |
|
| 3850 |
<g:production name="ElementTest" if="xquery core xpath"> |
| 3851 |
<g:choice name="ElementTypeOpen"> |
| 3852 |
<g:ref name="ElementType"/> |
| 3853 |
<g:ref name="ElementTypeForKindTest" show="no"/> |
| 3854 |
<g:ref name="ElementTypeForDocumentTest" show="no"/> |
| 3855 |
</g:choice> |
| 3856 |
<g:optional name="OptionalElementTestBody"> |
| 3857 |
<g:sequence> |
| 3858 |
<g:ref name="ElementNameOrWildcard"/> |
| 3859 |
<g:optional name="ElementTestBodyOptionalParam"> |
| 3860 |
<g:ref name="CommaForKindTest"/> |
| 3861 |
<g:ref name="TypeName"/> |
| 3862 |
<g:optional name="NillableOption"> |
| 3863 |
<g:ref name="Nillable"/> |
| 3864 |
</g:optional> |
| 3865 |
</g:optional> |
| 3866 |
</g:sequence> |
| 3867 |
</g:optional> |
| 3868 |
<g:ref name="RparForKindTest"/> |
| 3869 |
</g:production> |
| 3870 |
|
| 3871 |
<g:production name="ElementNameOrWildcard" if="xpath xquery core"> |
| 3872 |
<g:choice name="ElemNameOrWildcardChoice"> |
| 3873 |
<g:ref name="ElementName"/> |
| 3874 |
<g:ref name="AnyName"/> |
| 3875 |
</g:choice> |
| 3876 |
</g:production> |
| 3877 |
|
| 3878 |
<g:production name="SchemaElementTest" if="xquery core xpath"> |
| 3879 |
<g:choice name="SchemaElementTypeOpen"> |
| 3880 |
<g:ref name="SchemaElementType"/> |
| 3881 |
<g:ref name="SchemaElementTypeForKindTest" show="no"/> |
| 3882 |
<g:ref name="SchemaElementTypeForDocumentTest" show="no"/> |
| 3883 |
</g:choice> |
| 3884 |
<g:ref name="ElementDeclaration"/> |
| 3885 |
<g:ref name="RparForKindTest"/> |
| 3886 |
</g:production> |
| 3887 |
|
| 3888 |
<g:production name="ElementDeclaration"> |
| 3889 |
<g:ref name="ElementName"/> |
| 3890 |
</g:production> |
| 3891 |
|
| 3892 |
<g:production name="AttributeName" if="xpath xquery core"> |
| 3893 |
<g:ref name="QNameForItemType"/> |
| 3894 |
</g:production> |
| 3895 |
<g:production name="ElementName" if="xpath xquery core"> |
| 3896 |
<g:ref name="QNameForItemType"/> |
| 3897 |
</g:production> |
| 3898 |
<g:production name="TypeName" if="xpath xquery core"> |
| 3899 |
<g:ref name="QNameForItemType"/> |
| 3900 |
</g:production> |
| 3901 |
|
| 3902 |
<!-- g:production name="SchemaContextLoc" if="xquery core"> |
| 3903 |
<g:choice name="SchemaContextLocComponents"> |
| 3904 |
<g:sequence> |
| 3905 |
<g:optional name="OptionalSchemaContextLocContextPath"> |
| 3906 |
<g:ref name="SchemaContextPath"/> |
| 3907 |
</g:optional> |
| 3908 |
<g:ref name="QNameForItemType"/> |
| 3909 |
</g:sequence> |
| 3910 |
<g:ref name="SchemaGlobalTypeName"/> |
| 3911 |
</g:choice> |
| 3912 |
</g:production --> |
| 3913 |
|
| 3914 |
<!-- g:production name="SchemaContextPath" if="xquery core xpath"> |
| 3915 |
<g:ref name="SchemaGlobalContextSlash"/> |
| 3916 |
<g:zeroOrMore name="SchemaContextPathTail"> |
| 3917 |
<g:ref name="SchemaContextStepSlash" needs-exposition-parens="yes"/> |
| 3918 |
</g:zeroOrMore> |
| 3919 |
</g:production --> |
| 3920 |
|
| 3921 |
<!-- ============================== --> |
| 3922 |
<!-- UPDATE SUPERSET PROPOSAL --> |
| 3923 |
<!-- ============================== --> |
| 3924 |
|
| 3925 |
<!-- start update proposal productions --> |
| 3926 |
<g:production name="UpdateBody" if="update"> |
| 3927 |
<g:choice name="dummyUpdateChoice"> |
| 3928 |
<g:ref name="UpdateLookaheadFor"/> |
| 3929 |
<g:ref name="UpdateLookaheadLet"/> |
| 3930 |
<g:ref name="UpdateLookaheadIf"/> |
| 3931 |
<g:ref name="UpdateLookaheadInsert"/> |
| 3932 |
<g:ref name="UpdateLookaheadReplace"/> |
| 3933 |
<g:ref name="UpdateLookaheadDelete"/> |
| 3934 |
<!-- g:ref name="UpdateLookaheadEmpty"/ --> |
| 3935 |
<g:ref name="UpdateOpenUpdateList"/> |
| 3936 |
</g:choice> |
| 3937 |
<!-- g:ref name="UpdateTok"/ --> |
| 3938 |
<g:ref name="UpdateAction"/> |
| 3939 |
</g:production> |
| 3940 |
<g:production name="UpdateAction" if="update"> |
| 3941 |
<g:choice name="UpdateBodyChoice"> |
| 3942 |
<g:ref name="Insert"/> |
| 3943 |
<g:ref name="Delete"/> |
| 3944 |
<g:ref name="Replace"/> |
| 3945 |
<g:ref name="FLWUpdate"/> |
| 3946 |
<g:ref name="ConditionalUpdate"/> |
| 3947 |
<g:ref name="CompositeUpdate"/> |
| 3948 |
</g:choice> |
| 3949 |
</g:production> |
| 3950 |
<g:production name="CompositeUpdate" if="update"> |
| 3951 |
<g:ref name="UpdateListOpen"/> |
| 3952 |
<g:optional name="OptionalCompositeUpdateBody"> |
| 3953 |
<g:ref name="UpdateAction"/> |
| 3954 |
<g:zeroOrMore name="UpdateListCar"> |
| 3955 |
<g:choice name="UpdateListSepChoice"> |
| 3956 |
<g:ref name="UpdateListSep"/> |
| 3957 |
<g:ref name="SemiColon" show="no"/> |
| 3958 |
</g:choice> |
| 3959 |
<g:ref name="UpdateAction"/> |
| 3960 |
</g:zeroOrMore> |
| 3961 |
</g:optional> |
| 3962 |
<g:choice name="RbraceChoice"> |
| 3963 |
<g:ref name="UpdateListClose"/> |
| 3964 |
<g:ref name="Rbrace" show="no"/> |
| 3965 |
</g:choice> |
| 3966 |
</g:production> |
| 3967 |
<g:production name="Insert" if="update"> |
| 3968 |
<g:ref name="InsertTok"/> |
| 3969 |
<g:ref name="Expr"/> |
| 3970 |
<g:ref name="InsertLocation"/> |
| 3971 |
</g:production> |
| 3972 |
<g:production name="InsertLocation" if="update"> |
| 3973 |
<g:choice name="InsertLocationChoices"> |
| 3974 |
<g:sequence name="InsertLocationInto"> |
| 3975 |
<g:optional name="InsertLocationPositionOption"> |
| 3976 |
<g:choice name="InsertLocationPositionChoice"> |
| 3977 |
<g:ref name="AsLast"/> |
| 3978 |
<g:ref name="AsFirst"/> |
| 3979 |
</g:choice> |
| 3980 |
</g:optional> |
| 3981 |
<g:ref name="Into"/> |
| 3982 |
<g:ref name="Expr"/> |
| 3983 |
</g:sequence> |
| 3984 |
<g:sequence name="InsertLocationAfter"> |
| 3985 |
<g:ref name="After"/> |
| 3986 |
<g:ref name="Expr"/> |
| 3987 |
</g:sequence> |
| 3988 |
<g:sequence name="InsertLocationBefore"> |
| 3989 |
<g:ref name="Before"/> |
| 3990 |
<g:ref name="Expr"/> |
| 3991 |
</g:sequence> |
| 3992 |
</g:choice> |
| 3993 |
</g:production> |
| 3994 |
<g:production name="Delete" if="update"> |
| 3995 |
<g:ref name="DeleteTok"/> |
| 3996 |
<g:ref name="Expr"/> |
| 3997 |
</g:production> |
| 3998 |
<g:production name="Replace" if="update"> |
| 3999 |
<g:ref name="ReplaceTok"/> |
| 4000 |
<g:optional name="ValueOfOption2"> |
| 4001 |
<g:ref name="ValueOf"/> |
| 4002 |
</g:optional> |
| 4003 |
<g:ref name="Expr"/> |
| 4004 |
<g:ref name="With"/> |
| 4005 |
<g:ref name="Expr"/> |
| 4006 |
</g:production> |
| 4007 |
<g:production name="FLWUpdate" if="update"> |
| 4008 |
<g:oneOrMore name="FLWUpdateClauseList"> |
| 4009 |
<g:choice name="FLWUpdateForOrLet"> |
| 4010 |
<g:ref name="ForClause"/> |
| 4011 |
<g:ref name="LetClause"/> |
| 4012 |
</g:choice> |
| 4013 |
</g:oneOrMore> |
| 4014 |
<g:optional name="FLWUpdateOptionalWhere"> |
| 4015 |
<g:ref name="WhereClause"/> |
| 4016 |
</g:optional> |
| 4017 |
<g:ref name="Do"/> |
| 4018 |
<g:ref name="UpdateAction"/> |
| 4019 |
</g:production> |
| 4020 |
<g:production name="ConditionalUpdate" if="update"> |
| 4021 |
<g:ref name="IfLpar" node-type="void"/> |
| 4022 |
<g:ref name="Expr"/> |
| 4023 |
<g:ref name="Rpar" node-type="void"/> |
| 4024 |
<g:ref name="Then" node-type="void"/> |
| 4025 |
<g:ref name="UpdateAction"/> |
| 4026 |
<!-- g:optional name="OptionalElseClause" --> |
| 4027 |
<g:ref name="Else" node-type="void"/> |
| 4028 |
<g:ref name="UpdateAction"/> |
| 4029 |
<!-- /g:optional --> |
| 4030 |
</g:production> |
| 4031 |
|
| 4032 |
|
| 4033 |
<!-- ============================== --> |
| 4034 |
<!-- XSLT PATTERNS --> |
| 4035 |
<!-- ============================== --> |
| 4036 |
<g:production name="Pattern" if="xslt-patterns"> |
| 4037 |
<g:ref name="PathPattern"/> |
| 4038 |
<g:optional name="PathPatternTail"> |
| 4039 |
<g:choice name="UnionSpecifier"> |
| 4040 |
<g:ref name="Union" if="xquery xpath" node-type="void"/> |
| 4041 |
<g:ref name="Vbar" node-type="void"/> |
| 4042 |
</g:choice> |
| 4043 |
<g:ref name="Pattern"/> |
| 4044 |
</g:optional> |
| 4045 |
</g:production> |
| 4046 |
<g:production name="PathPattern" if="xslt-patterns" comment-id="leading-lone-slash"> |
| 4047 |
<g:choice break="true" name="PathPatternChoices"> |
| 4048 |
<g:sequence> |
| 4049 |
<g:ref name="Root"/> |
| 4050 |
<g:optional name="OptionalRelativePathPattern"> |
| 4051 |
<g:ref name="RelativePathPattern"/> |
| 4052 |
</g:optional> |
| 4053 |
</g:sequence> |
| 4054 |
<g:sequence> |
| 4055 |
<g:ref name="RootDescendants"/> |
| 4056 |
<g:ref name="RelativePathPattern"/> |
| 4057 |
</g:sequence> |
| 4058 |
<g:sequence> |
| 4059 |
<g:ref name="IdKeyPattern" if="pathx1"/> |
| 4060 |
<g:optional name="OptionalRelativePathPatternAfterIdKey"> |
| 4061 |
<g:choice name="PatternStepSepAfterIdKey"> |
| 4062 |
<g:ref name="Slash" node-type="void"/> |
| 4063 |
<g:ref name="SlashSlash"/> |
| 4064 |
</g:choice> |
| 4065 |
<g:ref name="RelativePathPattern"/> |
| 4066 |
</g:optional> |
| 4067 |
</g:sequence> |
| 4068 |
<g:ref name="RelativePathPattern"/> |
| 4069 |
</g:choice> |
| 4070 |
</g:production> |
| 4071 |
<g:production name="RelativePathPattern" if="xslt-patterns" node-type="void"> |
| 4072 |
<g:ref name="PatternStep"/> |
| 4073 |
<g:optional name="RelativePathPatternTail"> |
| 4074 |
<g:choice name="PatternStepSep"> |
| 4075 |
<g:ref name="Slash" node-type="void"/> |
| 4076 |
<g:ref name="SlashSlash"/> |
| 4077 |
</g:choice> |
| 4078 |
<g:ref name="RelativePathPattern"/> |
| 4079 |
</g:optional> |
| 4080 |
</g:production> |
| 4081 |
<g:production name="PatternStep" if="xslt-patterns"> |
| 4082 |
<g:optional name="OptionalPatternAxis"> |
| 4083 |
<g:ref name="PatternAxis"/> |
| 4084 |
</g:optional> |
| 4085 |
<g:ref name="NodeTest"/> |
| 4086 |
<g:ref name="PredicateList"/> |
| 4087 |
</g:production> |
| 4088 |
<g:production name="PatternAxis" if="xslt-patterns" node-type="void"> |
| 4089 |
<g:choice break="true" name="AxisChoice"> |
| 4090 |
<g:ref name="AxisChild"/> |
| 4091 |
<g:ref name="AxisAttribute"/> |
| 4092 |
<g:ref name="At"/> |
| 4093 |
</g:choice> |
| 4094 |
</g:production> |
| 4095 |
<g:production name="IdKeyPattern" if="pathx1" sub-spec="xslt-patterns"> |
| 4096 |
<g:choice name="KeyOrIDPattern"> |
| 4097 |
<g:sequence> |
| 4098 |
<g:ref name="IDLpar"/> |
| 4099 |
<g:ref name="IdKeyValue"/> |
| 4100 |
<g:ref name="Rpar"/> |
| 4101 |
</g:sequence> |
| 4102 |
<g:sequence> |
| 4103 |
<g:ref name="KeyLpar"/> |
| 4104 |
<g:ref name="StringLiteral"/> |
| 4105 |
<g:ref name="Comma"/> |
| 4106 |
<g:ref name="IdKeyValue"/> |
| 4107 |
<g:ref name="Rpar"/> |
| 4108 |
</g:sequence> |
| 4109 |
</g:choice> |
| 4110 |
</g:production> |
| 4111 |
<g:production name="IdKeyValue" if="pathx1" node-type="void" sub-spec="xslt-patterns"> |
| 4112 |
<g:choice name="VarOrKeyValue"> |
| 4113 |
<g:ref name="StringLiteral"/> |
| 4114 |
<g:sequence> |
| 4115 |
<g:ref name="VariableIndicator"/> |
| 4116 |
<g:ref name="VarName"/> |
| 4117 |
</g:sequence> |
| 4118 |
</g:choice> |
| 4119 |
</g:production> |
| 4120 |
<g:production name="RHSPrimaryExpr" if="pathx1"> |
| 4121 |
<g:choice break="true" name="RHSStepOrPrimary"> |
| 4122 |
<g:ref name="StepExpr" if="pathx1"/> |
| 4123 |
<g:sequence> |
| 4124 |
<g:ref name="PrimaryExpr" if="pathx1"/> |
| 4125 |
<g:ref name="PredicateList"/> |
| 4126 |
</g:sequence> |
| 4127 |
</g:choice> |
| 4128 |
</g:production> |
| 4129 |
|
| 4130 |
</g:grammar> |
| 4131 |
<!-- Keep this comment at the end of the file |
| 4132 |
Local variables: |
| 4133 |
mode: sgml |
| 4134 |
sgml-omittag:nil |
| 4135 |
sgml-shorttag:nil |
| 4136 |
sgml-namecase-general:nil |
| 4137 |
sgml-general-insert-case:lower |
| 4138 |
sgml-minimize-attributes:nil |
| 4139 |
sgml-always-quote-attributes:t |
| 4140 |
sgml-indent-step:2 |
| 4141 |
sgml-indent-data:nil |
| 4142 |
sgml-parent-document:nil |
| 4143 |
sgml-exposed-tags:nil |
| 4144 |
sgml-local-catalogs:nil |
| 4145 |
sgml-local-ecat-files:nil |
| 4146 |
End: |
| 4147 |
--> |