1(:
2 : Copyright 2006-2011 The FLWOR Foundation.
3 :
4 : Licensed under the Apache License, Version 2.0 (the "License");
5 : you may not use this file except in compliance with the License.
6 : You may obtain a copy of the License at
7 :
8 : http://www.apache.org/licenses/LICENSE-2.0
9 :
10 : Unless required by applicable law or agreed to in writing, software
11 : distributed under the License is distributed on an "AS IS" BASIS,
12 : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 : See the License for the specific language governing permissions and
14 : limitations under the License.
15 :)
16
17 (:
18  : THIS FILE IS GENERATED.
19  : PLEASE DO NOT EDIT.
20  :)
21 (:~
22 : This module contains one declaration of a variable for each
23 : error of the http://www.w3.org/2005/xqt-errors namespace.
24 : The variables serves as documentation for the errors but can also
25 : be used in the code. For example, one useful scenario is to compare
26 : an error caught in the catch clause of a try-catch expression with one of
27 : the variables.
28 :
29 : @author Carlos Lopez
30 :
31 : @project error
32 :)
33
34xquery version '1.0';
35
36module namespace err = 'http://www.w3.org/2005/xqt-errors';
37
38declare variable $err:NS := 'http://www.w3.org/2005/xqt-errors';
39
40(:~
41 :
42 : It is a static error if analysis of an expression relies on some
43 : component of the static context that has not been assigned a value.
44 :
45 : @see http://www.w3.org/2005/xqt-errors
46:)
47declare variable $err:XPST0001 as xs:QName := fn:QName($err:NS, "err:XPST0001");
48
49(:~
50 :
51 : It is a static error if an expression is not a valid instance of the
52 : grammar.
53 :
54 : @see http://www.w3.org/2005/xqt-errors
55:)
56declare variable $err:XPST0003 as xs:QName := fn:QName($err:NS, "err:XPST0003");
57
58(:~
59 :
60 : During the analysis phase, it is a static error if the static type
61 : assigned to an expression other than the expression \c () or \c data(())
62 : is \c empty-sequence().
63 :
64 : @see http://www.w3.org/2005/xqt-errors
65:)
66declare variable $err:XPST0005 as xs:QName := fn:QName($err:NS, "err:XPST0005");
67
68(:~
69 :
70 : It is a static error if an expression refers to an element name,
71 : attribute name, schema type name, namespace prefix, or variable name
72 : that is not defined in the static context, except for an ElementName in
73 : an ElementTest or an AttributeName in an AttributeTest.
74 :
75 : @see http://www.w3.org/2005/xqt-errors
76:)
77declare variable $err:XPST0008 as xs:QName := fn:QName($err:NS, "err:XPST0008");
78
79(:~
80 :
81 : It is a static error if the expanded QName and number of arguments in a
82 : function call do not match the name and arity of a function signature in
83 : the static context.
84 :
85 : @see http://www.w3.org/2005/xqt-errors
86:)
87declare variable $err:XPST0017 as xs:QName := fn:QName($err:NS, "err:XPST0017");
88
89(:~
90 :
91 : It is a static error if a QName that is used as an AtomicType in a
92 : SequenceType is not defined in the in-scope schema types as an atomic
93 : type.
94 :
95 : @see http://www.w3.org/2005/xqt-errors
96:)
97declare variable $err:XPST0051 as xs:QName := fn:QName($err:NS, "err:XPST0051");
98
99(:~
100 :
101 : It is a static error if the target type of a \c cast or \c castable
102 : expression is \c xs:NOTATION or \c xs:anyAtomicType.
103 :
104 : @see http://www.w3.org/2005/xqt-errors
105:)
106declare variable $err:XPST0080 as xs:QName := fn:QName($err:NS, "err:XPST0080");
107
108(:~
109 :
110 : It is a static error if a QName used in a query contains a namespace
111 : prefix that cannot be expanded into a namespace URI by using the
112 : statically known namespaces.
113 :
114 : @see http://www.w3.org/2005/xqt-errors
115:)
116declare variable $err:XPST0081 as xs:QName := fn:QName($err:NS, "err:XPST0081");
117
118(:~
119 :
120 : It is a static error if the target type of a \c cast expression or
121 : constructor function is \c xs:QName or a type derived from \c xs:QName
122 : or \c xs:NOTATION, and the argument of the cast expression or
123 : constructor function is not a string literal.
124 :
125 : @see http://www.w3.org/2005/xqt-errors
126:)
127declare variable $err:XPST0083 as xs:QName := fn:QName($err:NS, "err:XPST0083");
128
129(:~
130 :
131 : It is a type error if, during the static analysis phase, an expression
132 : is found to have a static type that is not appropriate for the context
133 : in which the expression occurs, or during the dynamic evaluation phase,
134 : the dynamic type of a value does not match a required type as specified
135 : by the matching rules in 2.5.4 SequenceType Matching.
136 :
137 : @see http://www.w3.org/2005/xqt-errors
138:)
139declare variable $err:XPTY0004 as xs:QName := fn:QName($err:NS, "err:XPTY0004");
140
141(:~
142 :
143 : It is a type error if the result of the last step in a path expression
144 : contains both nodes and non-nodes.
145 :
146 : @see http://www.w3.org/2005/xqt-errors
147:)
148declare variable $err:XPTY0018 as xs:QName := fn:QName($err:NS, "err:XPTY0018");
149
150(:~
151 :
152 : It is a type error if the result of a step (other than the last step) in a
153 : path expression contains an atomic value.
154 :
155 : @see http://www.w3.org/2005/xqt-errors
156:)
157declare variable $err:XPTY0019 as xs:QName := fn:QName($err:NS, "err:XPTY0019");
158
159(:~
160 :
161 : It is a type error if, in an axis step, the context item is not a node.
162 :
163 : @see http://www.w3.org/2005/xqt-errors
164:)
165declare variable $err:XPTY0020 as xs:QName := fn:QName($err:NS, "err:XPTY0020");
166
167(:~
168 :
169 : It is a type error if the content sequence in an element constructor
170 : contains an attribute node following a node that is not an attribute node.
171 :
172 : @see http://www.w3.org/2005/xqt-errors
173:)
174declare variable $err:XQTY0024 as xs:QName := fn:QName($err:NS, "err:XQTY0024");
175
176(:~
177 :
178 : It is a type error if the argument of a validate expression does not
179 : evaluate to exactly one document or element node.
180 :
181 : @see http://www.w3.org/2005/xqt-errors
182:)
183declare variable $err:XQTY0030 as xs:QName := fn:QName($err:NS, "err:XQTY0030");
184
185(:~
186 :
187 : It is a type error if the typed value of a copied element or attribute
188 : node is namespace-sensitive when construction mode is \c preserve and
189 : copy-namespaces mode is \c no-preserve.
190 :
191 : @see http://www.w3.org/2005/xqt-errors
192:)
193declare variable $err:XQTY0086 as xs:QName := fn:QName($err:NS, "err:XQTY0086");
194
195(:~
196 :
197 : An implementation that does not support the Schema Import Feature must
198 : raise a static error if a Prolog contains a schema import.
199 :
200 : @see http://www.w3.org/2005/xqt-errors
201:)
202declare variable $err:XQST0009 as xs:QName := fn:QName($err:NS, "err:XQST0009");
203
204(:~
205 :
206 : It is a static error if the set of definitions contained in all schemas
207 : imported by a Prolog do not satisfy the conditions for schema validity
208 : specified in Sections 3 and 5 of [XML Schema] Part 1--i.e., each
209 : definition must be valid, complete, and unique.
210 :
211 : @see http://www.w3.org/2005/xqt-errors
212:)
213declare variable $err:XQST0012 as xs:QName := fn:QName($err:NS, "err:XQST0012");
214
215(:~
216 :
217 : It is a static error if an implementation recognizes a pragma but
218 : determines that its content is invalid.
219 :
220 : @see http://www.w3.org/2005/xqt-errors
221:)
222declare variable $err:XQST0013 as xs:QName := fn:QName($err:NS, "err:XQST0013");
223
224(:~
225 :
226 : It is a static error if the value of a namespace declaration attribute is
227 : not a URILiteral.
228 :
229 : @see http://www.w3.org/2005/xqt-errors
230:)
231declare variable $err:XQST0022 as xs:QName := fn:QName($err:NS, "err:XQST0022");
232
233(:~
234 :
235 : It is a static error if the version number specified in a version
236 : declaration is not supported by the implementation.
237 :
238 : @see http://www.w3.org/2005/xqt-errors
239:)
240declare variable $err:XQST0031 as xs:QName := fn:QName($err:NS, "err:XQST0031");
241
242(:~
243 :
244 : A static error is raised if a Prolog contains more than one base URI
245 : declaration.
246 :
247 : @see http://www.w3.org/2005/xqt-errors
248:)
249declare variable $err:XQST0032 as xs:QName := fn:QName($err:NS, "err:XQST0032");
250
251(:~
252 :
253 : It is a static error if a module contains multiple bindings for the same
254 : namespace prefix.
255 :
256 : @see http://www.w3.org/2005/xqt-errors
257:)
258declare variable $err:XQST0033 as xs:QName := fn:QName($err:NS, "err:XQST0033");
259
260(:~
261 :
262 : It is a static error if multiple functions declared or imported by a
263 : module have the same number of arguments and their expanded QNames are
264 : equal (as defined by the eq operator).
265 :
266 : @see http://www.w3.org/2005/xqt-errors
267:)
268declare variable $err:XQST0034 as xs:QName := fn:QName($err:NS, "err:XQST0034");
269
270(:~
271 :
272 : It is a static error to import two schema components that both define the
273 : same name in the same symbol space and in the same scope.
274 :
275 : @see http://www.w3.org/2005/xqt-errors
276:)
277declare variable $err:XQST0035 as xs:QName := fn:QName($err:NS, "err:XQST0035");
278
279(:~
280 :
281 : It is a static error to import a module if the in-scope schema
282 : definitions of the importing module do not include all of the following:
283 :
284 : -# An in-scope schema type for each type-name that appears:
285 : - in the type of a variable that is declared in the imported module
286 : and referenced in the importing module, OR
287 : - in a parameter-type or result-type of a function that is declared in
288 : the imported module and referenced in the importing module.
289 : -# An in-scope element declaration for each element-name \c EN such that:
290 : - \c schema-element(EN) appears in the declared type of a variable in
291 : the imported module, and that variable is referenced in the
292 : importing module, OR
293 : - \c schema-element(EN) appears in a parameter-type or result-type
294 : of a function declared in the imported module, and that function is
295 : referenced in the importing module.
296 : -# An in-scope attribute declaration for each attribute-name \c AN such
297 : that:
298 : - \c schema-attribute(AN) appears in the declared type of a variable
299 : in the imported module, and that variable is referenced in the
300 : importing module, OR
301 : - \c schema-attribute(AN) appears in a parameter-type or result-type
302 : of a function declared in the imported module, and that function is
303 : referenced in the importing module.
304 :
305 : @see http://www.w3.org/2005/xqt-errors
306:)
307declare variable $err:XQST0036 as xs:QName := fn:QName($err:NS, "err:XQST0036");
308
309(:~
310 :
311 : It is a static error if a Prolog contains more than one default collation
312 : declaration, or the value specified by a default collation declaration is
313 : not present in statically known collations.
314 :
315 : @see http://www.w3.org/2005/xqt-errors
316:)
317declare variable $err:XQST0038 as xs:QName := fn:QName($err:NS, "err:XQST0038");
318
319(:~
320 :
321 : It is a static error for a function declaration to have more than one
322 : parameter with the same name.
323 :
324 : @see http://www.w3.org/2005/xqt-errors
325:)
326declare variable $err:XQST0039 as xs:QName := fn:QName($err:NS, "err:XQST0039");
327
328(:~
329 :
330 : It is a static error if the attributes specified by a direct element
331 : constructor do not have distinct expanded QNames.
332 :
333 : @see http://www.w3.org/2005/xqt-errors
334:)
335declare variable $err:XQST0040 as xs:QName := fn:QName($err:NS, "err:XQST0040");
336
337(:~
338 :
339 : It is a static error if the function name in a function declaration is in
340 : one of the following namespaces:
341 : http://www.w3.org/XML/1998/namespace,
342 : http://www.w3.org/2001/XMLSchema,
343 : http://www.w3.org/2001/XMLSchema-instance,
344 : http://www.w3.org/2005/xpath-functions.
345 :
346 : @see http://www.w3.org/2005/xqt-errors
347:)
348declare variable $err:XQST0045 as xs:QName := fn:QName($err:NS, "err:XQST0045");
349
350(:~
351 :
352 : An implementation MAY raise a static error if the value of a URILiteral
353 : is of nonzero length and is not in the lexical space of \c xs:anyURI.
354 :
355 : @see http://www.w3.org/2005/xqt-errors
356:)
357declare variable $err:XQST0046 as xs:QName := fn:QName($err:NS, "err:XQST0046");
358
359(:~
360 :
361 : It is a static error if multiple module imports in the same Prolog
362 : specify the same target namespace.
363 :
364 : @see http://www.w3.org/2005/xqt-errors
365:)
366declare variable $err:XQST0047 as xs:QName := fn:QName($err:NS, "err:XQST0047");
367
368(:~
369 :
370 : It is a static error if a function or variable declared in a library
371 : module is not in the target namespace of the library module.
372 :
373 : @see http://www.w3.org/2005/xqt-errors
374:)
375declare variable $err:XQST0048 as xs:QName := fn:QName($err:NS, "err:XQST0048");
376
377(:~
378 :
379 : It is a static error if two or more variables declared or imported by a
380 : module have equal expanded QNames (as defined by the eq operator.)
381 :
382 : @see http://www.w3.org/2005/xqt-errors
383:)
384declare variable $err:XQST0049 as xs:QName := fn:QName($err:NS, "err:XQST0049");
385
386(:~
387 :
388 : It is a static error if a variable depends on itself.
389 :
390 : @see http://www.w3.org/2005/xqt-errors
391:)
392declare variable $err:XQST0054 as xs:QName := fn:QName($err:NS, "err:XQST0054");
393
394(:~
395 :
396 : It is a static error if a Prolog contains more than one copy-namespaces
397 : declaration.
398 :
399 : @see http://www.w3.org/2005/xqt-errors
400:)
401declare variable $err:XQST0055 as xs:QName := fn:QName($err:NS, "err:XQST0055");
402
403(:~
404 :
405 : It is a static error if a schema import binds a namespace prefix but does
406 : not specify a target namespace other than a zero-length string.
407 :
408 : @see http://www.w3.org/2005/xqt-errors
409:)
410declare variable $err:XQST0057 as xs:QName := fn:QName($err:NS, "err:XQST0057");
411
412(:~
413 :
414 : It is a static error if multiple schema imports specify the same target
415 : namespace.
416 :
417 : @see http://www.w3.org/2005/xqt-errors
418:)
419declare variable $err:XQST0058 as xs:QName := fn:QName($err:NS, "err:XQST0058");
420
421(:~
422 :
423 : It is a static error if an implementation is unable to process a schema
424 : or module import by finding a schema or module with the specified target
425 : namespace.
426 :
427 : @see http://www.w3.org/2005/xqt-errors
428:)
429declare variable $err:XQST0059 as xs:QName := fn:QName($err:NS, "err:XQST0059");
430
431(:~
432 :
433 : It is a static error if the name of a function in a function declaration
434 : is not in a namespace (expanded QName has a null namespace URI).
435 :
436 : @see http://www.w3.org/2005/xqt-errors
437:)
438declare variable $err:XQST0060 as xs:QName := fn:QName($err:NS, "err:XQST0060");
439
440(:~
441 :
442 : A static error is raised if a Prolog contains more than one ordering mode
443 : declaration.
444 :
445 : @see http://www.w3.org/2005/xqt-errors
446:)
447declare variable $err:XQST0065 as xs:QName := fn:QName($err:NS, "err:XQST0065");
448
449(:~
450 :
451 : A static error is raised if a Prolog contains more than one default
452 : element/type namespace declaration, or more than one default function
453 : namespace declaration.
454 :
455 : @see http://www.w3.org/2005/xqt-errors
456:)
457declare variable $err:XQST0066 as xs:QName := fn:QName($err:NS, "err:XQST0066");
458
459(:~
460 :
461 : A static error is raised if a Prolog contains more than one construction
462 : declaration.
463 :
464 : @see http://www.w3.org/2005/xqt-errors
465:)
466declare variable $err:XQST0067 as xs:QName := fn:QName($err:NS, "err:XQST0067");
467
468(:~
469 :
470 : A static error is raised if a Prolog contains more than one
471 : boundary-space declaration.
472 :
473 : @see http://www.w3.org/2005/xqt-errors
474:)
475declare variable $err:XQST0068 as xs:QName := fn:QName($err:NS, "err:XQST0068");
476
477(:~
478 :
479 : A static error is raised if a Prolog contains more than one empty order
480 : declaration.
481 :
482 : @see http://www.w3.org/2005/xqt-errors
483:)
484declare variable $err:XQST0069 as xs:QName := fn:QName($err:NS, "err:XQST0069");
485
486(:~
487 :
488 : A static error is raised if one of the predefined prefixes \c xml or \c
489 : xmlns appears in a namespace declaration, or if any of the following
490 : conditions is statically detected in any expression or declaration:
491 : - The prefix \c xml is bound to some namespace URI other than
492 : http://www.w3.org/XML/1998/namespace.
493 : - A prefix other than \c xml is bound to the namespace URI
494 : http://www.w3.org/XML/1998/namespace.
495 : - The prefix \c xmlns is bound to any namespace URI.
496 : - A prefix other than \c xmlns is bound to the namespace URI
497 : http://www.w3.org/2000/xmlns/.
498 :
499 : @see http://www.w3.org/2005/xqt-errors
500:)
501declare variable $err:XQST0070 as xs:QName := fn:QName($err:NS, "err:XQST0070");
502
503(:~
504 :
505 : A static error is raised if the namespace declaration attributes of a
506 : direct element constructor do not have distinct names.
507 :
508 : @see http://www.w3.org/2005/xqt-errors
509:)
510declare variable $err:XQST0071 as xs:QName := fn:QName($err:NS, "err:XQST0071");
511
512(:~
513 :
514 : It is a static error if a \c collation subclause in an order by clause
515 : of a FLWOR expression does not identify a collation that is present in
516 : statically known collations.
517 :
518 : @see http://www.w3.org/2005/xqt-errors
519:)
520declare variable $err:XQST0076 as xs:QName := fn:QName($err:NS, "err:XQST0076");
521
522(:~
523 :
524 : It is a static error if an extension expression contains neither a
525 : pragma that is recognized by the implementation nor an expression
526 : enclosed in curly braces.
527 :
528 : @see http://www.w3.org/2005/xqt-errors
529:)
530declare variable $err:XQST0079 as xs:QName := fn:QName($err:NS, "err:XQST0079");
531
532(:~
533 :
534 : It is a static error if the namespace URI in a namespace declaration
535 : attribute is a zero-length string, and the implementation does not
536 : support [XML Names 1.1].
537 :
538 : @see http://www.w3.org/2005/xqt-errors
539:)
540declare variable $err:XQST0085 as xs:QName := fn:QName($err:NS, "err:XQST0085");
541
542(:~
543 :
544 : It is a static error if the encoding specified in a Version Declaration
545 : does not conform to the definition of \c EncName specified in [XML 1.0]
546 :
547 : @see http://www.w3.org/2005/xqt-errors
548:)
549declare variable $err:XQST0087 as xs:QName := fn:QName($err:NS, "err:XQST0087");
550
551(:~
552 :
553 : It is a static error if the literal that specifies the target namespace
554 : in a module import or a module declaration is of zero length.
555 :
556 : @see http://www.w3.org/2005/xqt-errors
557:)
558declare variable $err:XQST0088 as xs:QName := fn:QName($err:NS, "err:XQST0088");
559
560(:~
561 :
562 : It is a static error if a variable bound in a \c for or \c window clause
563 : of a FLWOR expression, and its associated positional variable, do not
564 : have distinct names (expanded QNames).
565 :
566 : @see http://www.w3.org/2005/xqt-errors
567:)
568declare variable $err:XQST0089 as xs:QName := fn:QName($err:NS, "err:XQST0089");
569
570(:~
571 :
572 : It is a static error if a character reference does not identify a valid
573 : character in the version of XML that is in use.
574 :
575 : @see http://www.w3.org/2005/xqt-errors
576:)
577declare variable $err:XQST0090 as xs:QName := fn:QName($err:NS, "err:XQST0090");
578
579(:~
580 :
581 : It is a static error to import a module M1 if there exists a sequence of
582 : modules M1 ... Mi ... M1 such that each module directly depends on the
583 : next module in the sequence (informally, if M1 depends on itself through
584 : some chain of module dependencies.)
585 :
586 : @see http://www.w3.org/2005/xqt-errors
587:)
588declare variable $err:XQST0093 as xs:QName := fn:QName($err:NS, "err:XQST0093");
589
590(:~
591 :
592 : It is a static error if, for any named or unnamed decimal format, the
593 : properties representing characters used in a picture string do not each
594 : have distinct values. These properties are decimal-separator-sign,
595 : grouping-separator, percent-sign, per-mille-sign, zero-digit,
596 : digit-sign, and pattern-separator-sign.
597 :
598 : @see http://www.w3.org/2005/xqt-errors
599:)
600declare variable $err:XQST0098 as xs:QName := fn:QName($err:NS, "err:XQST0098");
601
602(:~
603 :
604 : If a module contains more than one context item declaration, a static error is raised [err:XQST0099].
605 :
606 : @see http://www.w3.org/2005/xqt-errors
607:)
608declare variable $err:XQST0099 as xs:QName := fn:QName($err:NS, "err:XQST0099");
609
610(:~
611 :
612 : All variables in a window clause must have distinct names.
613 :
614 : @see http://www.w3.org/2005/xqt-errors
615:)
616declare variable $err:XQST0103 as xs:QName := fn:QName($err:NS, "err:XQST0103");
617
618(:~
619 :
620 : It is a static error if a function's annotations contain more than one
621 : annotation named \c private or \c public.  It is a static error if a
622 : function's annotations contain more than one annotation named \c
623 : deterministic or \c nondeterministic.
624 :
625 : @see http://www.w3.org/2005/xqt-errors
626:)
627declare variable $err:XQST0106 as xs:QName := fn:QName($err:NS, "err:XQST0106");
628
629(:~
630 :
631 : It is a static error for a query prolog to contain two decimal formats
632 : with the same name, or to contain two default decimal formats.
633 :
634 : @see http://www.w3.org/2005/xqt-errors
635:)
636declare variable $err:XQST0111 as xs:QName := fn:QName($err:NS, "err:XQST0111");
637
638(:~
639 :
640 : It is a dynamic error if evaluation of an expression relies on some part
641 : of the dynamic context that has not been assigned a value.
642 :
643 : @see http://www.w3.org/2005/xqt-errors
644:)
645declare variable $err:XPDY0002 as xs:QName := fn:QName($err:NS, "err:XPDY0002");
646
647(:~
648 :
649 : It is a dynamic error if the dynamic type of the operand of a treat
650 : expression does not match the sequence type specified by the treat
651 : expression. This error might also be raised by a path expression
652 : beginning with "/" or "//" if the context node
653 : is not in a tree that is rooted at a document node. This is because a
654 : leading "/" or "//" in a path expression is an
655 : abbreviation for an initial step that includes the clause \c treat as \c
656 : document-node().
657 :
658 : @see http://www.w3.org/2005/xqt-errors
659:)
660declare variable $err:XPDY0050 as xs:QName := fn:QName($err:NS, "err:XPDY0050");
661
662(:~
663 :
664 : It is a dynamic error if any attribute of a constructed element does not
665 : have a name that is distinct from the names of all other attributes of
666 : the constructed element.
667 :
668 : @see http://www.w3.org/2005/xqt-errors
669:)
670declare variable $err:XQDY0025 as xs:QName := fn:QName($err:NS, "err:XQDY0025");
671
672(:~
673 :
674 : It is a dynamic error if the result of the content expression of a
675 : computed processing instruction constructor contains the string "?>".
676 :
677 : @see http://www.w3.org/2005/xqt-errors
678:)
679declare variable $err:XQDY0026 as xs:QName := fn:QName($err:NS, "err:XQDY0026");
680
681(:~
682 :
683 : In a validate expression, it is a dynamic error if the root element
684 : information item in the PSVI resulting from validation does not have the
685 : expected validity property: \c valid if validation mode is \c strict, or
686 : either \c valid or \c notKnown if validation mode is \c lax.
687 :
688 : @see http://www.w3.org/2005/xqt-errors
689:)
690declare variable $err:XQDY0027 as xs:QName := fn:QName($err:NS, "err:XQDY0027");
691
692(:~
693 :
694 : It is a dynamic error if the value of the name expression in a computed
695 : processing instruction constructor cannot be cast to the type
696 : \c xs:NCName.
697 :
698 : @see http://www.w3.org/2005/xqt-errors
699:)
700declare variable $err:XQDY0041 as xs:QName := fn:QName($err:NS, "err:XQDY0041");
701
702(:~
703 :
704 : It is a static error the node-name of a node constructed by a computed
705 : attribute constructor has any of the following properties:
706 : - Its namespace prefix is \c xmlns.
707 : - It has no namespace prefix and its local name is \c xmlns.
708 : - Its namespace URI is http://www.w3.org/2000/xmlns/.
709 : - Its namespace prefix is \c xml and its namespace URI is not
710 : http://www.w3.org/XML/1998/namespace.
711 : - Its namespace prefix is other than \c xml and its namespace URI is
712 : http://www.w3.org/XML/1998/namespace.
713 :
714 : @see http://www.w3.org/2005/xqt-errors
715:)
716declare variable $err:XQDY0044 as xs:QName := fn:QName($err:NS, "err:XQDY0044");
717
718(:~
719 :
720 : It is a dynamic error if the operand of a validate expression is a
721 : document node whose children do not consist of exactly one element node
722 : and zero or more comment and processing instruction nodes, in any order.
723 :
724 : @see http://www.w3.org/2005/xqt-errors
725:)
726declare variable $err:XQDY0061 as xs:QName := fn:QName($err:NS, "err:XQDY0061");
727
728(:~
729 :
730 : It is a dynamic error if the value of the name expression in a computed
731 : processing instruction constructor is equal to "XML" (in any combination
732 : of upper and lower case).
733 :
734 : @see http://www.w3.org/2005/xqt-errors
735:)
736declare variable $err:XQDY0064 as xs:QName := fn:QName($err:NS, "err:XQDY0064");
737
738(:~
739 :
740 : It is a dynamic error if the result of the content expression of a
741 : computed comment constructor contains two adjacent hyphens or ends with
742 : a hyphen.
743 :
744 : @see http://www.w3.org/2005/xqt-errors
745:)
746declare variable $err:XQDY0072 as xs:QName := fn:QName($err:NS, "err:XQDY0072");
747
748(:~
749 :
750 : It is a dynamic error if the value of the name expression in a computed
751 : element or attribute constructor cannot be converted to an expanded
752 : QName (for example, because it contains a namespace prefix not found in
753 : statically known namespaces).
754 :
755 : @see http://www.w3.org/2005/xqt-errors
756:)
757declare variable $err:XQDY0074 as xs:QName := fn:QName($err:NS, "err:XQDY0074");
758
759(:~
760 :
761 : It is a dynamic error if the element validated by a \c validate statement
762 : does not have a top-level element declaration in the in-scope element
763 : declarations, if validation mode is \c strict.
764 :
765 : @see http://www.w3.org/2005/xqt-errors
766:)
767declare variable $err:XQDY0084 as xs:QName := fn:QName($err:NS, "err:XQDY0084");
768
769(:~
770 :
771 : An implementation MAY raise a dynamic error if an \c xml:id error, as
772 : defined in [XML ID], is encountered during construction of an attribute
773 : named \c xml:id.
774 :
775 : @see http://www.w3.org/2005/xqt-errors
776:)
777declare variable $err:XQDY0091 as xs:QName := fn:QName($err:NS, "err:XQDY0091");
778
779(:~
780 :
781 : An implementation MAY raise a dynamic error if a constructed attribute
782 : named \c xml:space has a value other than \c preserve or \c default.
783 :
784 : @see http://www.w3.org/2005/xqt-errors
785:)
786declare variable $err:XQDY0092 as xs:QName := fn:QName($err:NS, "err:XQDY0092");
787
788(:~
789 :
790 : It is a dynamic error the node-name of a node constructed by a computed
791 : element constructor has any of the following properties:
792 : - Its namespace prefix is \c xmlns.
793 : - Its namespace URI is http://www.w3.org/2000/xmlns/.
794 : - Its namespace prefix is \c xml and its namespace URI is not
795 : http://www.w3.org/XML/1998/namespace.
796 : - Its namespace prefix is other than \c xml and its namespace URI is
797 : http://www.w3.org/XML/1998/namespace.
798 :
799 : @see http://www.w3.org/2005/xqt-errors
800:)
801declare variable $err:XQDY0096 as xs:QName := fn:QName($err:NS, "err:XQDY0096");
802
803(:~
804 :
805 : It is a non-recoverable dynamic error if the picture string does not
806 : satisfy the format-number function rules.
807 :
808 : @see http://www.w3.org/2005/xqt-errors
809:)
810declare variable $err:XTDE1310 as xs:QName := fn:QName($err:NS, "err:XTDE1310");
811
812(:~
813 :
814 : It is a non-recoverable dynamic error if the syntax of the picture is
815 : incorrect.
816 :
817 : @see http://www.w3.org/2005/xqt-errors
818:)
819declare variable $err:XTDE1340 as xs:QName := fn:QName($err:NS, "err:XTDE1340");
820
821(:~
822 :
823 : It is a non-recoverable dynamic error if a component specifier within the
824 : picture refers to components that are not available in the given type of
825 : \c $value.
826 :
827 : @see http://www.w3.org/2005/xqt-errors
828:)
829declare variable $err:XTDE1350 as xs:QName := fn:QName($err:NS, "err:XTDE1350");
830
831(:~
832 :
833 : It is a static error if, during the static analysis phase, the query is
834 : found to contain a stop word option that refers to a stop word list that
835 : is not found in the statically known stop word lists.
836 :
837 : @see http://www.w3.org/2005/xqt-errors
838:)
839declare variable $err:FTST0008 as xs:QName := fn:QName($err:NS, "err:FTST0008");
840
841(:~
842 :
843 : It may be a static error if, during the static analysis phase, the query
844 : is found to contain a language identifier in a language option that the
845 : implementation does not support. The implementation may choose not to
846 : raise this error and instead provide some other implementation-defined
847 : behavior.
848 :
849 : @see http://www.w3.org/2005/xqt-errors
850:)
851declare variable $err:FTST0009 as xs:QName := fn:QName($err:NS, "err:FTST0009");
852
853(:~
854 :
855 : It is a dynamic error if a weight value is not within the required range
856 : of values; it is also a dynamic error if an implementation that does not
857 : support negative weights encounters a negative weight value.
858 :
859 : @see http://www.w3.org/2005/xqt-errors
860:)
861declare variable $err:FTDY0016 as xs:QName := fn:QName($err:NS, "err:FTDY0016");
862
863(:~
864 :
865 : It is a dynamic error if an implementation encounters a mild not
866 : selection, one of whose operands evaluates to an AllMatches that
867 : contains a StringExclude.
868 :
869 : @see http://www.w3.org/2005/xqt-errors
870:)
871declare variable $err:FTDY0017 as xs:QName := fn:QName($err:NS, "err:FTDY0017");
872
873(:~
874 :
875 : It is a static error if, during the static analysis phase, the query is
876 : found to contain a thesaurus option that refers to a thesaurus that is
877 : not found in the statically known thesauri.
878 :
879 : @see http://www.w3.org/2005/xqt-errors
880:)
881declare variable $err:FTST0018 as xs:QName := fn:QName($err:NS, "err:FTST0018");
882
883(:~
884 :
885 : It is a static error if, within a single FTMatchOptions, there is more
886 : than one match option of any given match option group.
887 :
888 : @see http://www.w3.org/2005/xqt-errors
889:)
890declare variable $err:FTST0019 as xs:QName := fn:QName($err:NS, "err:FTST0019");
891
892(:~
893 :
894 : It is a dynamic error if, when "wildcards" is in effect, a query string
895 : violates wildcard syntax.
896 :
897 : @see http://www.w3.org/2005/xqt-errors
898:)
899declare variable $err:FTDY0020 as xs:QName := fn:QName($err:NS, "err:FTDY0020");
900
901(:~
902 :
903 : Unidentified error.
904 :
905 : @see http://www.w3.org/2005/xqt-errors
906:)
907declare variable $err:FOER0000 as xs:QName := fn:QName($err:NS, "err:FOER0000");
908
909(:~
910 :
911 : Division by zero.
912 :
913 : @see http://www.w3.org/2005/xqt-errors
914:)
915declare variable $err:FOAR0001 as xs:QName := fn:QName($err:NS, "err:FOAR0001");
916
917(:~
918 :
919 : Numeric operation overflow/underflow.
920 :
921 : @see http://www.w3.org/2005/xqt-errors
922:)
923declare variable $err:FOAR0002 as xs:QName := fn:QName($err:NS, "err:FOAR0002");
924
925(:~
926 :
927 : Input value too large for decimal.
928 :
929 : @see http://www.w3.org/2005/xqt-errors
930:)
931declare variable $err:FOCA0001 as xs:QName := fn:QName($err:NS, "err:FOCA0001");
932
933(:~
934 :
935 : Invalid lexical value.
936 :
937 : @see http://www.w3.org/2005/xqt-errors
938:)
939declare variable $err:FOCA0002 as xs:QName := fn:QName($err:NS, "err:FOCA0002");
940
941(:~
942 :
943 : Input value too large for integer.
944 :
945 : @see http://www.w3.org/2005/xqt-errors
946:)
947declare variable $err:FOCA0003 as xs:QName := fn:QName($err:NS, "err:FOCA0003");
948
949(:~
950 :
951 : NaN supplied as float/double value.
952 :
953 : @see http://www.w3.org/2005/xqt-errors
954:)
955declare variable $err:FOCA0005 as xs:QName := fn:QName($err:NS, "err:FOCA0005");
956
957(:~
958 :
959 : String to be cast to decimal has too many digits of precision.
960 :
961 : @see http://www.w3.org/2005/xqt-errors
962:)
963declare variable $err:FOCA0006 as xs:QName := fn:QName($err:NS, "err:FOCA0006");
964
965(:~
966 :
967 : Code point not valid.
968 :
969 : @see http://www.w3.org/2005/xqt-errors
970:)
971declare variable $err:FOCH0001 as xs:QName := fn:QName($err:NS, "err:FOCH0001");
972
973(:~
974 :
975 : Unsupported collation.
976 :
977 : @see http://www.w3.org/2005/xqt-errors
978:)
979declare variable $err:FOCH0002 as xs:QName := fn:QName($err:NS, "err:FOCH0002");
980
981(:~
982 :
983 : Unsupported normalization form.
984 :
985 : @see http://www.w3.org/2005/xqt-errors
986:)
987declare variable $err:FOCH0003 as xs:QName := fn:QName($err:NS, "err:FOCH0003");
988
989(:~
990 :
991 : Collation does not support collation units.
992 :
993 : @see http://www.w3.org/2005/xqt-errors
994:)
995declare variable $err:FOCH0004 as xs:QName := fn:QName($err:NS, "err:FOCH0004");
996
997(:~
998 :
999 : No context document.
1000 :
1001 : @see http://www.w3.org/2005/xqt-errors
1002:)
1003declare variable $err:FODC0001 as xs:QName := fn:QName($err:NS, "err:FODC0001");
1004
1005(:~
1006 :
1007 : Error retrieving resource.
1008 :
1009 : @see http://www.w3.org/2005/xqt-errors
1010:)
1011declare variable $err:FODC0002 as xs:QName := fn:QName($err:NS, "err:FODC0002");
1012
1013(:~
1014 :
1015 : Function stability not defined.
1016 :
1017 : @see http://www.w3.org/2005/xqt-errors
1018:)
1019declare variable $err:FODC0003 as xs:QName := fn:QName($err:NS, "err:FODC0003");
1020
1021(:~
1022 :
1023 : Invalid argument to \c fn:collection().
1024 :
1025 : @see http://www.w3.org/2005/xqt-errors
1026:)
1027declare variable $err:FODC0004 as xs:QName := fn:QName($err:NS, "err:FODC0004");
1028
1029(:~
1030 :
1031 : Invalid argument to \c fn:doc() or \c fn:doc-available().
1032 :
1033 : @see http://www.w3.org/2005/xqt-errors
1034:)
1035declare variable $err:FODC0005 as xs:QName := fn:QName($err:NS, "err:FODC0005");
1036
1037(:~
1038 :
1039 : Invalid content passed to \c fn:parse().
1040 :
1041 : @see http://www.w3.org/2005/xqt-errors
1042:)
1043declare variable $err:FODC0006 as xs:QName := fn:QName($err:NS, "err:FODC0006");
1044
1045(:~
1046 :
1047 : Base URI passed to \c fn:parse() is not a valid absolute URI.
1048 :
1049 : @see http://www.w3.org/2005/xqt-errors
1050:)
1051declare variable $err:FODC0007 as xs:QName := fn:QName($err:NS, "err:FODC0007");
1052
1053(:~
1054 :
1055 : Invalid decimal format name supplied to \c fn:format-number().
1056 :
1057 : @see http://www.w3.org/2005/xqt-errors
1058:)
1059declare variable $err:FODF1280 as xs:QName := fn:QName($err:NS, "err:FODF1280");
1060
1061(:~
1062 :
1063 : Invalid \c fn:format-number() picture string.
1064 :
1065 : @see http://www.w3.org/2005/xqt-errors
1066:)
1067declare variable $err:FODF1310 as xs:QName := fn:QName($err:NS, "err:FODF1310");
1068
1069(:~
1070 :
1071 : Overflow/underflow in date/time operation.
1072 :
1073 : @see http://www.w3.org/2005/xqt-errors
1074:)
1075declare variable $err:FODT0001 as xs:QName := fn:QName($err:NS, "err:FODT0001");
1076
1077(:~
1078 :
1079 : Overflow/underflow in duration operation.
1080 :
1081 : @see http://www.w3.org/2005/xqt-errors
1082:)
1083declare variable $err:FODT0002 as xs:QName := fn:QName($err:NS, "err:FODT0002");
1084
1085(:~
1086 :
1087 : Invalid timezone value.
1088 :
1089 : @see http://www.w3.org/2005/xqt-errors
1090:)
1091declare variable $err:FODT0003 as xs:QName := fn:QName($err:NS, "err:FODT0003");
1092
1093(:~
1094 :
1095 : format-integer: Cannot cast $language to \c xs:language.
1096 :
1097 : @see http://www.w3.org/2005/xqt-errors
1098:)
1099declare variable $err:FOFI0001 as xs:QName := fn:QName($err:NS, "err:FOFI0001");
1100
1101(:~
1102 :
1103 : format-integer: invalid parameter.
1104 :
1105 : @see http://www.w3.org/2005/xqt-errors
1106:)
1107declare variable $err:FOFI0002 as xs:QName := fn:QName($err:NS, "err:FOFI0002");
1108
1109(:~
1110 :
1111 : No namespace found for prefix.
1112 :
1113 : @see http://www.w3.org/2005/xqt-errors
1114:)
1115declare variable $err:FONS0004 as xs:QName := fn:QName($err:NS, "err:FONS0004");
1116
1117(:~
1118 :
1119 : Base-URI not defined in static context.
1120 :
1121 : @see http://www.w3.org/2005/xqt-errors
1122:)
1123declare variable $err:FONS0005 as xs:QName := fn:QName($err:NS, "err:FONS0005");
1124
1125(:~
1126 :
1127 : Invalid value for cast/constructor.
1128 :
1129 : @see http://www.w3.org/2005/xqt-errors
1130:)
1131declare variable $err:FORG0001 as xs:QName := fn:QName($err:NS, "err:FORG0001");
1132
1133(:~
1134 :
1135 : Invalid argument to \c fn:resolve-uri().
1136 :
1137 : @see http://www.w3.org/2005/xqt-errors
1138:)
1139declare variable $err:FORG0002 as xs:QName := fn:QName($err:NS, "err:FORG0002");
1140
1141(:~
1142 :
1143 : \c fn:zero-or-one() called with a sequence containing more than one
1144 : item.
1145 :
1146 : @see http://www.w3.org/2005/xqt-errors
1147:)
1148declare variable $err:FORG0003 as xs:QName := fn:QName($err:NS, "err:FORG0003");
1149
1150(:~
1151 :
1152 : \c fn:one-or-more() called with a sequence containing no items.
1153 :
1154 : @see http://www.w3.org/2005/xqt-errors
1155:)
1156declare variable $err:FORG0004 as xs:QName := fn:QName($err:NS, "err:FORG0004");
1157
1158(:~
1159 :
1160 : \c fn:exactly-one() called with a sequence containing zero or more
1161 : than one item.
1162 :
1163 : @see http://www.w3.org/2005/xqt-errors
1164:)
1165declare variable $err:FORG0005 as xs:QName := fn:QName($err:NS, "err:FORG0005");
1166
1167(:~
1168 :
1169 : Invalid argument type.
1170 :
1171 : @see http://www.w3.org/2005/xqt-errors
1172:)
1173declare variable $err:FORG0006 as xs:QName := fn:QName($err:NS, "err:FORG0006");
1174
1175(:~
1176 :
1177 : The two arguments to fn:dateTime() have inconsistent timezones.
1178 :
1179 : @see http://www.w3.org/2005/xqt-errors
1180:)
1181declare variable $err:FORG0008 as xs:QName := fn:QName($err:NS, "err:FORG0008");
1182
1183(:~
1184 :
1185 : Error in resolving a relative URI against a base URI in
1186 : \c fn:resolve-uri().
1187 :
1188 : @see http://www.w3.org/2005/xqt-errors
1189:)
1190declare variable $err:FORG0009 as xs:QName := fn:QName($err:NS, "err:FORG0009");
1191
1192(:~
1193 :
1194 : Invalid regular expression flags.
1195 :
1196 : @see http://www.w3.org/2005/xqt-errors
1197:)
1198declare variable $err:FORX0001 as xs:QName := fn:QName($err:NS, "err:FORX0001");
1199
1200(:~
1201 :
1202 : Invalid regular expression.
1203 :
1204 : @see http://www.w3.org/2005/xqt-errors
1205:)
1206declare variable $err:FORX0002 as xs:QName := fn:QName($err:NS, "err:FORX0002");
1207
1208(:~
1209 :
1210 : Regular expression matches zero-length string.
1211 :
1212 : @see http://www.w3.org/2005/xqt-errors
1213:)
1214declare variable $err:FORX0003 as xs:QName := fn:QName($err:NS, "err:FORX0003");
1215
1216(:~
1217 :
1218 : Invalid replacement string.
1219 :
1220 : @see http://www.w3.org/2005/xqt-errors
1221:)
1222declare variable $err:FORX0004 as xs:QName := fn:QName($err:NS, "err:FORX0004");
1223
1224(:~
1225 :
1226 : Argument node does not have a typed value.
1227 :
1228 : @see http://www.w3.org/2005/xqt-errors
1229:)
1230declare variable $err:FOTY0012 as xs:QName := fn:QName($err:NS, "err:FOTY0012");
1231
1232(:~
1233 :
1234 : An argument to \c fn:data() contains a node that does not have a typed
1235 : value.
1236 :
1237 : @see http://www.w3.org/2005/xqt-errors
1238:)
1239declare variable $err:FOTY0013 as xs:QName := fn:QName($err:NS, "err:FOTY0013");
1240
1241(:~
1242 :
1243 : The argument to \c fn:string() is a function item.
1244 :
1245 : @see http://www.w3.org/2005/xqt-errors
1246:)
1247declare variable $err:FOTY0014 as xs:QName := fn:QName($err:NS, "err:FOTY0014");
1248
1249(:~
1250 :
1251 : An argument to \c fn:deep-equal() contains a function item.
1252 :
1253 : @see http://www.w3.org/2005/xqt-errors
1254:)
1255declare variable $err:FOTY0015 as xs:QName := fn:QName($err:NS, "err:FOTY0015");
1256
1257(:~
1258 :
1259 : Identifier cannot be used to retrive a resource containing text
1260 :
1261 : @see http://www.w3.org/2005/xqt-errors
1262:)
1263declare variable $err:FOUT1170 as xs:QName := fn:QName($err:NS, "err:FOUT1170");
1264
1265(:~
1266 :
1267 : Retrieved resource contains octets that cannot be decoded into Unicode
1268 : using the specified encoding, the resulting characters are not
1269 : permitted XML characters or requested encoding not supported
1270 :
1271 : @see http://www.w3.org/2005/xqt-errors
1272:)
1273declare variable $err:FOUT1190 as xs:QName := fn:QName($err:NS, "err:FOUT1190");
1274
1275(:~
1276 :
1277 : It is a static error if an updating expression is used in any position
1278 : other than one of the following:
1279 : - The topmost expression in the body of a query.
1280 : - The \c modify clause of a transform expression.
1281 : - The \c return clause of a FLWOR expression.
1282 : - The \c return clauses of a typeswitch expression in which every \c
1283 : return clause contains an updating expression or a vacuous expression.
1284 : - The \c then and \c else clauses of a conditional statement in which
1285 : both the \c then and \c else clauses contain either an updating
1286 : expression or a vacuous expression.
1287 : - An operand of a comma expression in which each operand is either an
1288 : updating expression or a vacuous expression.
1289 : - The content of a parenthesized expression.
1290 : - The body of a function declaration in which the keyword \c updating is
1291 : specified.
1292 :
1293 : @see http://www.w3.org/2005/xqt-errors
1294:)
1295declare variable $err:XUST0001 as xs:QName := fn:QName($err:NS, "err:XUST0001");
1296
1297(:~
1298 :
1299 : It is a static error if a simple expression that is not a vacuous
1300 : expression is used in one of the following positions:
1301 : - The \c modify clause of a transform expression.
1302 : - The top-level expression in the body of a function declaration in
1303 : which the keyword \c updating is specified.
1304 :
1305 : @see http://www.w3.org/2005/xqt-errors
1306:)
1307declare variable $err:XUST0002 as xs:QName := fn:QName($err:NS, "err:XUST0002");
1308
1309(:~
1310 :
1311 : It is a static error if a Prolog contains more than one revalidation
1312 : declaration.
1313 :
1314 : @see http://www.w3.org/2005/xqt-errors
1315:)
1316declare variable $err:XUST0003 as xs:QName := fn:QName($err:NS, "err:XUST0003");
1317
1318(:~
1319 :
1320 : It is a type error if the insertion sequence of an insert expression
1321 : contains an attribute node following a node that is not an attribute
1322 : node.
1323 :
1324 : @see http://www.w3.org/2005/xqt-errors
1325:)
1326declare variable $err:XUTY0004 as xs:QName := fn:QName($err:NS, "err:XUTY0004");
1327
1328(:~
1329 :
1330 : In an insert expression where into, as first
1331 : into, or as last into is specified, it is a type
1332 : error if the target expression returns a non-empty result that does not
1333 : consist of a single element or document node.
1334 :
1335 : @see http://www.w3.org/2005/xqt-errors
1336:)
1337declare variable $err:XUTY0005 as xs:QName := fn:QName($err:NS, "err:XUTY0005");
1338
1339(:~
1340 :
1341 : In an insert expression where \c before or \c after is specified, it is
1342 : a type error if the target expression returns a non-empty result that
1343 : does not consist of a single element, text, comment, or processing
1344 : instruction node.
1345 :
1346 : @see http://www.w3.org/2005/xqt-errors
1347:)
1348declare variable $err:XUTY0006 as xs:QName := fn:QName($err:NS, "err:XUTY0006");
1349
1350(:~
1351 :
1352 : It is a type error if the target expression of a delete expression does
1353 : not return a sequence of zero or more nodes.
1354 :
1355 : @see http://www.w3.org/2005/xqt-errors
1356:)
1357declare variable $err:XUTY0007 as xs:QName := fn:QName($err:NS, "err:XUTY0007");
1358
1359(:~
1360 :
1361 : In a replace expression, it is a type error if the target expression
1362 : returns a non-empty result that does not consist of a single element,
1363 : attribute, text, comment, or processing instruction node.
1364 :
1365 : @see http://www.w3.org/2005/xqt-errors
1366:)
1367declare variable $err:XUTY0008 as xs:QName := fn:QName($err:NS, "err:XUTY0008");
1368
1369(:~
1370 :
1371 : In a replace expression where value of is not specified, it
1372 : is a dynamic error if the node returned by the target expression does
1373 : not have a parent.
1374 :
1375 : @see http://www.w3.org/2005/xqt-errors
1376:)
1377declare variable $err:XUDY0009 as xs:QName := fn:QName($err:NS, "err:XUDY0009");
1378
1379(:~
1380 :
1381 : In a replace expression where value of is not specified and
1382 : the target is an element, text, comment, or processing instruction node,
1383 : it is a type error if the replacement sequence does not consist of zero
1384 : or more element, text, comment, or processing instruction nodes.
1385 :
1386 : @see http://www.w3.org/2005/xqt-errors
1387:)
1388declare variable $err:XUTY0010 as xs:QName := fn:QName($err:NS, "err:XUTY0010");
1389
1390(:~
1391 :
1392 : In a replace expression where value of is not specified and
1393 : the target is an attribute node, it is a type error if the replacement
1394 : sequence does not consist of zero or more attribute nodes.
1395 :
1396 : @see http://www.w3.org/2005/xqt-errors
1397:)
1398declare variable $err:XUTY0011 as xs:QName := fn:QName($err:NS, "err:XUTY0011");
1399
1400(:~
1401 :
1402 : In a rename expression, it is a type error if the target expression
1403 : returns a non-empty result that does not consist of a single element,
1404 : attribute, or processing instruction node.
1405 :
1406 : @see http://www.w3.org/2005/xqt-errors
1407:)
1408declare variable $err:XUTY0012 as xs:QName := fn:QName($err:NS, "err:XUTY0012");
1409
1410(:~
1411 :
1412 : In a transform expression, it is a type error if a source expression in
1413 : the \c copy clause does not return a single node.
1414 :
1415 : @see http://www.w3.org/2005/xqt-errors
1416:)
1417declare variable $err:XUTY0013 as xs:QName := fn:QName($err:NS, "err:XUTY0013");
1418
1419(:~
1420 :
1421 : In a transform expression, it is a dynamic error if the \c modify clause
1422 : modifies any node that was not created by the \c copy clause.
1423 :
1424 : @see http://www.w3.org/2005/xqt-errors
1425:)
1426declare variable $err:XUDY0014 as xs:QName := fn:QName($err:NS, "err:XUDY0014");
1427
1428(:~
1429 :
1430 : It is a dynamic error if any node is the target of more than one \c
1431 : rename expression within the same query.
1432 :
1433 : @see http://www.w3.org/2005/xqt-errors
1434:)
1435declare variable $err:XUDY0015 as xs:QName := fn:QName($err:NS, "err:XUDY0015");
1436
1437(:~
1438 :
1439 : It is a dynamic error if any node is the target of more than one \c
1440 : replace expression (without value of being specified)
1441 : within the same query.
1442 :
1443 : @see http://www.w3.org/2005/xqt-errors
1444:)
1445declare variable $err:XUDY0016 as xs:QName := fn:QName($err:NS, "err:XUDY0016");
1446
1447(:~
1448 :
1449 : It is a dynamic error if any node is the target of more than one
1450 : replace value of expression within the same query.
1451 :
1452 : @see http://www.w3.org/2005/xqt-errors
1453:)
1454declare variable $err:XUDY0017 as xs:QName := fn:QName($err:NS, "err:XUDY0017");
1455
1456(:~
1457 :
1458 : It is a dynamic error if a function that was declared to be \c external
1459 : but not \c updating returns a non-empty pending update list.
1460 :
1461 : @see http://www.w3.org/2005/xqt-errors
1462:)
1463declare variable $err:XUDY0018 as xs:QName := fn:QName($err:NS, "err:XUDY0018");
1464
1465(:~
1466 :
1467 : It is a dynamic error if a function that was declared to be both \c
1468 : external and \c updating returns a non-empty data model instance.
1469 :
1470 : @see http://www.w3.org/2005/xqt-errors
1471:)
1472declare variable $err:XUDY0019 as xs:QName := fn:QName($err:NS, "err:XUDY0019");
1473
1474(:~
1475 :
1476 : It is a dynamic error if the XDM instance that would result from
1477 : applying all the updates in a query violates any constraint specified in
1478 : [XQuery 1.0 and XPath 2.0 Data Model]. In this case, none of the updates
1479 : in the query are made effective.
1480 :
1481 : @see http://www.w3.org/2005/xqt-errors
1482:)
1483declare variable $err:XUDY0021 as xs:QName := fn:QName($err:NS, "err:XUDY0021");
1484
1485(:~
1486 :
1487 : It is a type error if an insert expression specifies the insertion of an
1488 : attribute node into a document node.
1489 :
1490 : @see http://www.w3.org/2005/xqt-errors
1491:)
1492declare variable $err:XUTY0022 as xs:QName := fn:QName($err:NS, "err:XUTY0022");
1493
1494(:~
1495 :
1496 : It is a dynamic error if an insert, replace, or rename expression
1497 : affects an element node by introducing a new namespace binding that
1498 : conflicts with one of its existing namespace bindings.
1499 :
1500 : @see http://www.w3.org/2005/xqt-errors
1501:)
1502declare variable $err:XUDY0023 as xs:QName := fn:QName($err:NS, "err:XUDY0023");
1503
1504(:~
1505 :
1506 : It is a dynamic error if the effect of a set of updating expressions is
1507 : to introduce conflicting namespace bindings into an element node.
1508 :
1509 : @see http://www.w3.org/2005/xqt-errors
1510:)
1511declare variable $err:XUDY0024 as xs:QName := fn:QName($err:NS, "err:XUDY0024");
1512
1513(:~
1514 :
1515 : It is a dynamic error if the target expression of an insert, replace, or
1516 : rename expression evaluates to an empty sequence.
1517 :
1518 : @see http://www.w3.org/2005/xqt-errors
1519:)
1520declare variable $err:XUDY0027 as xs:QName := fn:QName($err:NS, "err:XUDY0027");
1521
1522(:~
1523 :
1524 : It is a static error if a function declaration specifies both \c updating
1525 : and a return type.
1526 :
1527 : @see http://www.w3.org/2005/xqt-errors
1528:)
1529declare variable $err:XUST0028 as xs:QName := fn:QName($err:NS, "err:XUST0028");
1530
1531(:~
1532 :
1533 : In an insert expression where \c before or \c after is specified, it is
1534 : a dynamic error if the node returned by the target expression does not
1535 : have a parent.
1536 :
1537 : @see http://www.w3.org/2005/xqt-errors
1538:)
1539declare variable $err:XUDY0029 as xs:QName := fn:QName($err:NS, "err:XUDY0029");
1540
1541(:~
1542 :
1543 : It is a dynamic error if an insert expression specifies the insertion of
1544 : an attribute node before or after a child of a document node.
1545 :
1546 : @see http://www.w3.org/2005/xqt-errors
1547:)
1548declare variable $err:XUDY0030 as xs:QName := fn:QName($err:NS, "err:XUDY0030");
1549
1550(:~
1551 :
1552 : It is a dynamic error if multiple calls to \c fn:put() in the same
1553 : snapshot specify the same URI (after resolution of relative URIs).
1554 :
1555 : @see http://www.w3.org/2005/xqt-errors
1556:)
1557declare variable $err:XUDY0031 as xs:QName := fn:QName($err:NS, "err:XUDY0031");
1558
1559(:~
1560 :
1561 : It is a dynamic error if the first operand of \c fn:put() is not a node
1562 : of a supported kind.
1563 :
1564 : @see http://www.w3.org/2005/xqt-errors
1565:)
1566declare variable $err:FOUP0001 as xs:QName := fn:QName($err:NS, "err:FOUP0001");
1567
1568(:~
1569 :
1570 : It is a dynamic error if the second operand of \c fn:put() is not a valid
1571 : lexical representation of the \c xs:anyURI type.
1572 :
1573 : @see http://www.w3.org/2005/xqt-errors
1574:)
1575declare variable $err:FOUP0002 as xs:QName := fn:QName($err:NS, "err:FOUP0002");
1576
1577(:~
1578 :
1579 : It is an error if an item in S6 in sequence normalization is an attribute
1580 : node or a namespace node.
1581 :
1582 : @see http://www.w3.org/2005/xqt-errors
1583:)
1584declare variable $err:SENR0001 as xs:QName := fn:QName($err:NS, "err:SENR0001");
1585
1586(:~
1587 :
1588 : It is an error if the serializer is unable to satisfy the rules for
1589 : either a well-formed XML document entity or a well-formed XML external
1590 : general parsed entity, or both, except for content modified by the
1591 : character expansion phase of serialization.
1592 :
1593 : @see http://www.w3.org/2005/xqt-errors
1594:)
1595declare variable $err:SERE0003 as xs:QName := fn:QName($err:NS, "err:SERE0003");
1596
1597(:~
1598 :
1599 : It is an error to specify the doctype-system parameter, or to specify
1600 : the standalone parameter with a value other than omit, if the instance
1601 : of the data model contains text nodes or multiple element nodes as
1602 : children of the root node.
1603 :
1604 : @see http://www.w3.org/2005/xqt-errors
1605:)
1606declare variable $err:SEPM0004 as xs:QName := fn:QName($err:NS, "err:SEPM0004");
1607
1608(:~
1609 :
1610 : It is an error if the serialized result would contain an NCName Names
1611 : that contains a character that is not permitted by the version of
1612 : Namespaces in XML specified by the version parameter.
1613 :
1614 : @see http://www.w3.org/2005/xqt-errors
1615:)
1616declare variable $err:SERE0005 as xs:QName := fn:QName($err:NS, "err:SERE0005");
1617
1618(:~
1619 :
1620 : It is an error if the serialized result would contain a character that is
1621 : not permitted by the version of XML specified by the version parameter.
1622 :
1623 : @see http://www.w3.org/2005/xqt-errors
1624:)
1625declare variable $err:SERE0006 as xs:QName := fn:QName($err:NS, "err:SERE0006");
1626
1627(:~
1628 :
1629 : It is an error if an output encoding other than UTF-8 or UTF-16 is
1630 : requested and the serializer does not support that encoding.
1631 :
1632 : @see http://www.w3.org/2005/xqt-errors
1633:)
1634declare variable $err:SESU0007 as xs:QName := fn:QName($err:NS, "err:SESU0007");
1635
1636(:~
1637 :
1638 : It is an error if a character that cannot be represented in the encoding
1639 : that the serializer is using for output appears in a context where
1640 : character references are not allowed (for example if the character
1641 : occurs in the name of an element).
1642 :
1643 : @see http://www.w3.org/2005/xqt-errors
1644:)
1645declare variable $err:SERE0008 as xs:QName := fn:QName($err:NS, "err:SERE0008");
1646
1647(:~
1648 :
1649 : It is an error if the omit-xml-declaration parameter has the value yes,
1650 : and the standalone attribute has a value other than omit; or the version
1651 : parameter has a value other than 1.0 and the doctype-system parameter is
1652 : specified.
1653 :
1654 : @see http://www.w3.org/2005/xqt-errors
1655:)
1656declare variable $err:SEPM0009 as xs:QName := fn:QName($err:NS, "err:SEPM0009");
1657
1658(:~
1659 :
1660 : It is an error if the output method is xml, the value of the
1661 : undeclare-prefixes parameter is yes, and the value of the version
1662 : parameter is 1.0.
1663 :
1664 : @see http://www.w3.org/2005/xqt-errors
1665:)
1666declare variable $err:SEPM0010 as xs:QName := fn:QName($err:NS, "err:SEPM0010");
1667
1668(:~
1669 :
1670 : It is an error if the value of the normalization-form parameter
1671 : specifies a normalization form that is not supported by the serializer.
1672 :
1673 : @see http://www.w3.org/2005/xqt-errors
1674:)
1675declare variable $err:SESU0011 as xs:QName := fn:QName($err:NS, "err:SESU0011");
1676
1677(:~
1678 :
1679 : It is an error if the value of the normalization-form parameter is
1680 : fully-normalized and any relevant construct of the result begins with a
1681 : combining character.
1682 :
1683 : @see http://www.w3.org/2005/xqt-errors
1684:)
1685declare variable $err:SERE0012 as xs:QName := fn:QName($err:NS, "err:SERE0012");
1686
1687(:~
1688 :
1689 : It is an error if the serializer does not support the version of XML or
1690 : HTML specified by the version parameter.
1691 :
1692 : @see http://www.w3.org/2005/xqt-errors
1693:)
1694declare variable $err:SESU0013 as xs:QName := fn:QName($err:NS, "err:SESU0013");
1695
1696(:~
1697 :
1698 : It is an error to use the HTML output method when characters which are
1699 : legal in XML but not in HTML, specifically the control characters
1700 : #x7F-#x9F, appear in the instance of the data model.
1701 :
1702 : @see http://www.w3.org/2005/xqt-errors
1703:)
1704declare variable $err:SERE0014 as xs:QName := fn:QName($err:NS, "err:SERE0014");
1705
1706(:~
1707 :
1708 : It is an error to use the HTML output method when \c > appears within a
1709 : processing instruction in the data model instance being serialized.
1710 :
1711 : @see http://www.w3.org/2005/xqt-errors
1712:)
1713declare variable $err:SERE0015 as xs:QName := fn:QName($err:NS, "err:SERE0015");
1714
1715(:~
1716 :
1717 : It is a an error if a parameter value is invalid for the defined domain.
1718 :
1719 : @see http://www.w3.org/2005/xqt-errors
1720:)
1721declare variable $err:SEPM0016 as xs:QName := fn:QName($err:NS, "err:SEPM0016");