index.html 29.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--XSLT Processor: SAXON 9.1.0.5 from Saxonica SAXON 9.1.0.5-->
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="generator" content=
"HTML Tidy for Windows (vers 14 February 2006), see www.w3.org" />
<meta http-equiv="Content-Type" content=
"text/html; charset=utf-8" />
<title>XQuery 3.0 Requirements</title>

<style type="text/css">
/*<![CDATA[*/
code           { font-family: monospace; }

div.constraint,
div.issue,
div.note,
div.notice     { margin-left: 2em; }

ol.enumar      { list-style-type: decimal; }
ol.enumla      { list-style-type: lower-alpha; }
ol.enumlr      { list-style-type: lower-roman; }
ol.enumua      { list-style-type: upper-alpha; }
ol.enumur      { list-style-type: upper-roman; }


div.exampleInner pre { margin-left: 1em;
                       margin-top: 0em; margin-bottom: 0em}
div.exampleOuter {border: 4px double gray;
                  margin: 0em; padding: 0em}
div.exampleInner { background-color: #d5dee3;
                   border-top-width: 4px;
                   border-top-style: double;
                   border-top-color: #d3d3d3;
                   border-bottom-width: 4px;
                   border-bottom-style: double;
                   border-bottom-color: #d3d3d3;
                   padding: 4px; margin: 0em }
div.exampleWrapper { margin: 4px }
div.exampleHeader { font-weight: bold;
                    margin: 4px}
/*]]>*/
</style>
<link rel="stylesheet" type="text/css" href=
"http://www.w3.org/StyleSheets/TR/W3C-WD.css" />
</head>
<body>
<div class="head">
<p><a href="http://www.w3.org/"><img src=
"http://www.w3.org/Icons/w3c_home" alt="W3C" height="48" width=
"72" /></a></p>
<h1><a name="title" id="title"></a>XQuery 3.0 Requirements</h1>
<h2><a name="w3c-doctype" id="w3c-doctype"></a>W3C Working Draft 16
September 2010</h2>
<dl>
<dt>This version:</dt>
<dd><a href=
"http://www.w3.org/TR/2010/WD-xquery-30-requirements-20100916/">http://www.w3.org/TR/2010/WD-xquery-30-requirements-20100916/</a></dd>
<dt>Latest version:</dt>
<dd><a href=
"http://www.w3.org/TR/xquery-30-requirements/">http://www.w3.org/TR/xquery-30-requirements/</a></dd>
<dt>Previous version:</dt>
<dd><a href=
"http://www.w3.org/TR/2007/WD-xquery-11-requirements-20070323">http://www.w3.org/TR/2007/WD-xquery-11-requirements-20070323</a></dd>
<dt>Editors:</dt>
<dd>Daniel Engovatov, BEA Systems <a href=
"mailto:dengovatov@bea.com">&lt;dengovatov@bea.com&gt;</a></dd>
<dd>Jonathan Robie, Red Hat</dd>
</dl>
<p class="copyright"><a href=
"http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>&#160;©&#160;2010&#160;<a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a><sup>®</sup>
(<a href="http://www.csail.mit.edu/"><acronym title=
"Massachusetts Institute of Technology">MIT</acronym></a>, <a href=
"http://www.ercim.eu/"><acronym title=
"European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>,
<a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved.
W3C <a href=
"http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
<a href=
"http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>
and <a href=
"http://www.w3.org/Consortium/Legal/copyright-documents">document
use</a> rules apply.</p>
</div>
<hr />
<div>
<h2><a name="abstract" id="abstract"></a>Abstract</h2>
<p>This document specifies goals and requirements for XML Query
(XQuery) 3.0.</p>
</div>
<div>
<h2><a name="status" id="status"></a>Status of this Document</h2>
<p><em>This section describes the status of this document at the
time of its publication. Other documents may supersede this
document. A list of current W3C publications and the latest
revision of this technical report can be found in the <a href=
"http://www.w3.org/TR/">W3C technical reports index</a> at
http://www.w3.org/TR/.</em></p>
<p>This is a <a href=
"http://www.w3.org/2005/10/Process-20051014/tr.html#maturity-levels">
Working Draft</a> as described in the <a href=
"http://www.w3.org/2005/10/Process-20051014/tr.html">Process
Document</a>. It has been developed by the W3C <a href=
"http://www.w3.org/XML/Query/">XML Query Working Group</a>, which
is part of the <a href="http://www.w3.org/XML/Activity">XML
Activity</a>. The Working Group expects to eventually publish this
document as a Working Group Note.</p>
<p>These Requirements identify extensions to the <a href=
"http://www.w3.org/TR/xquery/">XQuery 1.0 Recommendation</a>,
published 23 January 2007, that have been requested by WG
participants and by reviewers who do not participate in the W3C
activities. The XML Query WG has reviewed these requirements
extensively and has reached a very high level of agreement (but not
necessarily unanimity) on the desirability of each of them.</p>
<p>Please report errors in this document using W3C's <a href=
"http://www.w3.org/Bugs/Public/">public Bugzilla system</a>
(instructions can be found at <a href=
"http://www.w3.org/XML/2005/04/qt-bugzilla">http://www.w3.org/XML/2005/04/qt-bugzilla</a>).
If access to that system is not feasible, you may send your
comments to the W3C XSLT/XPath/XQuery public comments mailing list,
<a href=
"mailto:public-qt-comments@w3.org">public-qt-comments@w3.org</a>.
It will be very helpful if you include the string “[XQuery11Req]”
in the subject line of your report, whether made in Bugzilla or in
email. Please use multiple Bugzilla entries (or, if necessary,
multiple email messages) if you have more than one comment to make.
Archives of the comments and responses are available at <a href=
"http://lists.w3.org/Archives/Public/public-qt-comments/">http://lists.w3.org/Archives/Public/public-qt-comments/</a>.</p>
<p>Publication as a Working Draft does not imply endorsement by the
W3C Membership. This is a draft document and may be updated,
replaced or obsoleted by other documents at any time. It is
inappropriate to cite this document as other than work in
progress.</p>
<p>This document was produced by a group operating under the
<a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
February 2004 W3C Patent Policy</a>. W3C maintains a <a href=
"http://www.w3.org/2004/01/pp-impl/18797/status#disclosures">public
list of any patent disclosures</a> made in connection with the
deliverables of the group; that page also includes instructions for
disclosing a patent. An individual who has actual knowledge of a
patent which the individual believes contains <a href=
"http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">
Essential Claim(s)</a> must disclose the information in accordance
with <a href=
"http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">
section 6 of the W3C Patent Policy</a>.</p>
</div>
<div class="toc">
<h2><a name="contents" id="contents"></a>Table of Contents</h2>
<p class="toc">1 <a href="#goals">Goals</a><br />
2 <a href="#Requirements">Requirements</a><br />
&#160;&#160;&#160;&#160;2.1 <a href=
"#terminology">Terminology</a><br />
&#160;&#160;&#160;&#160;2.2 <a href="#general-requirements">General
Requirements</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.2.1 <a href=
"#backward-compatibility">Backward compatibility</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.2.2 <a href=
"#extension-compatibility">Extension compatibility</a><br />
&#160;&#160;&#160;&#160;2.3 <a href="#xml-query-functionality">XML
Query Functionality</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.1 <a href=
"#d2e301">Value-based grouping</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.2 <a href=
"#error-processing-and-recovery">Error processing and
recovery</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.3 <a href=
"#numeric-formatting">Numeric formatting</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.4 <a href=
"#date-formatting">Date formatting</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.5 <a href=
"#default-values-for-external-variables">Default values for
external variables</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.6 <a href=
"#non-deterministic-external-functions">Non-deterministic external
functions</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.7 <a href=
"#positional-grouping">Positional grouping</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.8 <a href=
"#windowing">Windowing</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.9 <a href=
"#output-numbering">Output numbering</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.10 <a href=
"#dynamic-creation-of-namespace-bindings">Dynamic creation of
namespace bindings</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.11 <a href=
"#declaration-of-serialization-parameters">Declaration of
serialization parameters</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.12 <a href=
"#node-references">Node references</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.13 <a href=
"#outer-for">Outer for</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.14 <a href=
"#type-declaration-for-context-item">Type declaration for context
item</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.15 <a href=
"#support-for-new-data-types">Support for new data types</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.16 <a href=
"#higher-order-functions">Higher order functions</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.17 <a href=
"#conditional-constructors">Conditional constructors</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.18 <a href=
"#validation">Validation</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.19 <a href=
"#type-expressions">Type expressions</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.20 <a href=
"#module-composition-restrictions">Module composition
restrictions</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.21 <a href=
"#invocation-of-external-functionality">Invocation of external
functionality</a><br />
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;2.3.22 <a href=
"#static-typing-extensions">Static typing extensions</a><br />
3 <a href="#references">References</a><br />
&#160;&#160;&#160;&#160;3.1 <a href=
"#normative-references">Normative</a><br />
&#160;&#160;&#160;&#160;3.2 <a href=
"#non-normative-references">Non-normative</a><br /></p>
</div>
<hr />
<div class="body">
<div class="div1">
<h2><a name="goals" id="goals"></a>1 Goals</h2>
<p>The goal of XML Query 3.0 is to extend XML Query 1.0 with
additional functionality in response to requests from users and
implementors.</p>
<p>Satisfying these goals may require changes to the set of seven
documents that have progressed to Recommendation together (Data
Model, Functions and Operators, Serialization, XPath 2.0, XQuery
1.0, XQueryX, and XSLT 2.0).</p>
</div>
<div class="div1">
<h2><a name="Requirements" id="Requirements"></a>2
Requirements</h2>
<div class="div2">
<h3><a name="terminology" id="terminology"></a>2.1 Terminology</h3>
<p>The following keywords are used throughout the document to
specify the extent to which an item is a requirement for the work
of the XML Query Working Group:</p>
<dl>
<dt class="label"><a name="terminology-must" id=
"terminology-must"></a>MUST</dt>
<dd>
<p>The item is an absolute requirement.</p>
</dd>
<dt class="label"><a name="terminology-should" id=
"terminology-should"></a>SHOULD</dt>
<dd>
<p>There may exist valid reasons not to treat this item as a
requirement, but the full implications should be understood and the
case carefully weighed before discarding this item.</p>
</dd>
<dt class="label"><a name="terminology-may" id=
"terminology-may"></a>MAY</dt>
<dd>
<p>An item deserves attention, but further study is needed to
determine whether the item should be treated as a requirement.</p>
</dd>
</dl>
<p>When the words <a href="#terminology-must">MUST</a>, <a href=
"#terminology-should">SHOULD</a>, or <a href=
"#terminology-may">MAY</a> are used in this technical sense
[<a href="http://www.ietf.org/rfc/rfc2119.txt">IETF RFC 2119</a>],
they occur as a hyperlink to these definitions. These words will
also be used with their conventional English meaning, in which case
there is no hyperlink. For instance, the phrase "the full
implications should be understood" uses the word "should" in its
conventional English sense, and therefore occurs without the
hyperlink.</p>
<p id="req-status">Each requirement also includes a status section,
indicating its current situation in the XQuery/XPath/XSLT family of
specifications. Three status levels are used:</p>
<dl>
<dt class="label">"Green" status</dt>
<dd>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> This indicates that the requirement, according to
its original formulation, has been completely met. Optional
clarifying text may follow.</p>
</dd>
<dt class="label">"Yellow" status</dt>
<dd>
<p><img src="http://www.w3.org/Icons/yellow-ball.gif" alt=
"yellow status" /> This indicates that the requirement has been
partially met according to its original formulation. When this
happens, explanatory text is provided to better clarify the current
scope of the requirement.</p>
</dd>
<dt class="label">"Red" status</dt>
<dd>
<p><img src="http://www.w3.org/Icons/red-ball.gif" alt=
"red status" /> This indicates that the requirement, according to
its original formulation, has not been met. If this is the case,
explanatory text is provided.</p>
</dd>
</dl>
</div>
<div class="div2">
<h3><a name="general-requirements" id=
"general-requirements"></a>2.2 General Requirements</h3>
<div class="div3">
<h4><a name="backward-compatibility" id=
"backward-compatibility"></a>2.2.1 Backward compatibility</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-must">MUST</a> be backward
compatible.</p>
<p>Every valid XQuery 1.0 expression <a href=
"#terminology-must">MUST</a> be valid in XQuery 3.0 and it <a href=
"#terminology-must">MUST</a> evaluate to the same result.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="extension-compatibility" id=
"extension-compatibility"></a>2.2.2 Extension compatibility</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-must">MUST</a> be compatible
with XQuery 1.0 extensions developed by the <a href=
"http://www.w3.org/XML/Query/">XML Query Working Group</a>,
including <a href="#UpdateRequirements">XQuery Update Facility</a>
and <a href="#FullTextRequirements">XQuery 1.0 and XPath 2.0
Full-Text</a>.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
</div>
<div class="div2">
<h3><a name="xml-query-functionality" id=
"xml-query-functionality"></a>2.3 XML Query Functionality</h3>
<div class="div3">
<h4><a name="d2e301" id="d2e301"></a>2.3.1 Value-based
grouping</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-must">MUST</a> include a
language facility to specify value-based grouping.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="error-processing-and-recovery" id=
"error-processing-and-recovery"></a>2.3.2 Error processing and
recovery</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-must">MUST</a> provide a
mechanism to process errors raised by an expression and to return
an alternative value.</p>
<p>This <a href="#terminology-may">MAY</a> be implemented by
introducing a <em>try-catch</em> expression.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="numeric-formatting" id="numeric-formatting"></a>2.3.3
Numeric formatting</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-must">MUST</a> include
additional library functions or an equivalent mechanism to perform
formatting of numeric values.</p>
<p>It <a href="#terminology-should">SHOULD</a> be similar to the
functionality provided in <a href="#XSLT20">XSLT 2.0</a>, such as
by function <code>format-number()</code>.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="date-formatting" id="date-formatting"></a>2.3.4 Date
formatting</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-must">MUST</a> include
additional library functions or an equivalent mechanism to perform
formatting of date and time values.</p>
<p>It <a href="#terminology-should">SHOULD</a> be similar to the
functionality provided in <a href="#XSLT20">XSLT 2.0</a>, such as
by functions <code>format-date()</code>,
<code>format-time()</code>, <code>format-dateTime()</code>.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="default-values-for-external-variables" id=
"default-values-for-external-variables"></a>2.3.5 Default values
for external variables</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-must">MUST</a> have a mechanism
to specify default values for external variables.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="non-deterministic-external-functions" id=
"non-deterministic-external-functions"></a>2.3.6 Non-deterministic
external functions</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-must">MUST</a> provide a way to
denote that an external function is non-deterministic.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="positional-grouping" id=
"positional-grouping"></a>2.3.7 Positional grouping</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-should">SHOULD</a> provide a
facility for positional grouping of items in a sequence according
to specified partitioning conditions.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="windowing" id="windowing"></a>2.3.8 Windowing</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-should">SHOULD</a> provide a
way to iterate over a sequence by several values at a time.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="output-numbering" id="output-numbering"></a>2.3.9
Output numbering</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-should">SHOULD</a> provide a
mechanism to associate ordinal numbers with the items returned by a
FLWOR expression.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="dynamic-creation-of-namespace-bindings" id=
"dynamic-creation-of-namespace-bindings"></a>2.3.10 Dynamic
creation of namespace bindings</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-should">SHOULD</a> allow
dynamic creation of namespace bindings.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="declaration-of-serialization-parameters" id=
"declaration-of-serialization-parameters"></a>2.3.11 Declaration of
serialization parameters</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-should">SHOULD</a> have a
mechanism to specify serialization parameters in the query
prolog.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="node-references" id="node-references"></a>2.3.12 Node
references</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-should">SHOULD</a> support
creation of a reference to an existing node having the following
properties:</p>
<p>a) the reference could be included in a constructed element</p>
<p>b) the reference can be dereferenced, returning the original
node with the original node id.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="outer-for" id="outer-for"></a>2.3.13 Outer for</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-should">SHOULD</a> provide
additional mechanisms to specify joins between sequences. A
possible approach would be to add an "<em>outer-for</em>" clause to
the FLWOR expression to specify variable binding which is
guaranteed to be bound to an empty sequence if there are no other
bindings generated.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="type-declaration-for-context-item" id=
"type-declaration-for-context-item"></a>2.3.14 Type declaration for
context item</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-should">SHOULD</a> allow
explicit type declaration for the context item.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="support-for-new-data-types" id=
"support-for-new-data-types"></a>2.3.15 Support for new data
types</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-should">SHOULD</a> support new
data types introduced in <a href="#XMLSchema11rec">XML Schema
1.1</a>.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="higher-order-functions" id=
"higher-order-functions"></a>2.3.16 Higher order functions</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-may">MAY</a> provide an ability
to pass a function as an argument to another function and to invoke
a function that has been passed as an argument.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been met.
(The proposal is not yet integrated into our internal Working
Draft.)</p>
<p>XQuery 3.0 <a href="#terminology-may">MAY</a> also provide the
ability to define anonymous functions e.g., lambda expressions.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been met.
(The proposal is not yet integrated into our internal Working
Draft.)</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="conditional-constructors" id=
"conditional-constructors"></a>2.3.17 Conditional constructors</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-may">MAY</a> add a language
extension to the node constructors to specify, in a compact
notation, that a node should be constructed only if its typed value
would not be an empty sequence or if it would satisfy some other
condition.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement is already met
by XQuery 1.0, there is no need to introduce new syntax. Either of
the following solutions works:</p>
<div class="exampleInner">
<pre>
if ($mentor) then attribute mentor { $mentor } else ()
</pre></div>
<div class="exampleInner">
<pre>
(attribute mentor { $mentor })[$mentor]
</pre></div>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="validation" id="validation"></a>2.3.18 Validation</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-may">MAY</a> provide a
mechanism to validate an element or document node with respect to a
global named type</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
<p>or against non-global element declarations or types.</p>
<p><img src="http://www.w3.org/Icons/red-ball.gif" alt=
"red status" /> <em>Status:</em> this requirement has not been
met.</p>
<p>XQuery 3.0 <a href="#terminology-may">MAY</a> provide a
mechanism to validate an element or document node against a named
schema without importing the schema.</p>
<p><img src="http://www.w3.org/Icons/red-ball.gif" alt=
"red status" /> <em>Status:</em> this requirement has not been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="type-expressions" id="type-expressions"></a>2.3.19
Type expressions</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-may">MAY</a> provide a way to
compare the type of an expression to the type of another expression
without exposing the type itself.</p>
<p><img src="http://www.w3.org/Icons/red-ball.gif" alt=
"red status" /> <em>Status:</em> this requirement has not been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="module-composition-restrictions" id=
"module-composition-restrictions"></a>2.3.20 Module composition
restrictions</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-may">MAY</a> relax the
restrictions on the module import feature relating to forward
references and circular imports.</p>
<p><img src="http://www.w3.org/Icons/green-ball.gif" alt=
"green status" /> <em>Status:</em> this requirement has been
met.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="invocation-of-external-functionality" id=
"invocation-of-external-functionality"></a>2.3.21 Invocation of
external functionality</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-may">MAY</a> provide a
normative way to invoke external functions and modules that are not
implemented in XQuery, such as functions defined as web services or
XSLT functions and templates.</p>
</dd>
</dl>
</div>
<div class="div3">
<h4><a name="static-typing-extensions" id=
"static-typing-extensions"></a>2.3.22 Static typing extensions</h4>
<dl>
<dd>
<p>XQuery 3.0 <a href="#terminology-may">MAY</a> extend static
typing rules.</p>
<p><img src="http://www.w3.org/Icons/red-ball.gif" alt=
"red status" /> <em>Status:</em> this requirement has not been met.
Static typing is no longer a normative part of XQuery 3.0.</p>
</dd>
</dl>
</div>
</div>
</div>
<div class="div1">
<h2><a name="references" id="references"></a>3 References</h2>
<div class="div2">
<h3><a name="normative-references" id=
"normative-references"></a>3.1 Normative</h3>
<dl>
<dt class="label"><a name="XQ10" id="XQ10"></a>XQuery 1.0</dt>
<dd><a href="http://www.w3.org/TR/xquery/">XQuery 1.0: An XML Query
Language</a>, W3C Recommendation, 23 January 2007 and references
therein. (See http://www.w3.org/TR/xquery.)</dd>
<dt class="label"><a name="XSLT20" id="XSLT20"></a>XSLT 2.0</dt>
<dd><a href="http://www.w3.org/TR/xslt20/">XSL Transformations
(XSLT) Version 2.0</a>, W3C Recommendation, 23 January 2007 and
references therein. (See http://www.w3.org/TR/xslt20/.)</dd>
<dt class="label"><a name="XDM" id="XDM"></a>XDM</dt>
<dd><a href="http://www.w3.org/TR/xpath-datamodel/">XQuery 1.0 and
XPath 2.0 Data Model (XDM)</a>, W3C Recommendation, 23 January 2007
(See http://www.w3.org/TR/xpath-datamodel/.)</dd>
<dt class="label"><a name="XQ10R" id="XQ10R"></a>XQuery 1.0
requirements</dt>
<dd><a href="http://www.w3.org/TR/xquery-requirements/">XML Query
(XQuery) Requirements</a>, W3C Working Draft 3 June 2005 (See
http://www.w3.org/TR/xquery-requirements.)</dd>
<dt class="label"><a name="UpdateRequirements" id=
"UpdateRequirements"></a>Update Requirements</dt>
<dd><a href=
"http://www.w3.org/TR/xquery-update-requirements/">XQuery Update
Facility Requirements</a>, W3C Working Draft, Feb. 2005. (See
http://www.w3.org/TR/xquery-update-requirements.)</dd>
<dt class="label"><a name="FullTextRequirements" id=
"FullTextRequirements"></a>Full-Text Requirements</dt>
<dd><a href=
"http://www.w3.org/TR/xquery-full-text-requirements/">XQuery and
XPath Full-Text Requirements</a>, W3C Working Draft, May 2003. (See
http://www.w3.org/TR/xquery-full-text-requirements.)</dd>
</dl>
</div>
<div class="div2">
<h3><a name="non-normative-references" id=
"non-normative-references"></a>3.2 Non-normative</h3>
<p>The following references are some of the works considered by the
WG in deriving its requirements.</p>
<dl>
<dt class="label"><a name="XML" id="XML"></a>XML</dt>
<dd><a href="http://www.w3.org/TR/REC-xml/">Extensible Markup
Language (XML) 1.0 (Fourth Edition)</a>. W3C Recommendation, 29
September 2006. (See
http://www.w3.org/TR/1998/REC-xml-19980210.)</dd>
<dt class="label"><a name="XMLSchema0" id="XMLSchema0"></a>XML
Schema Part 0</dt>
<dd><a href="http://www.w3.org/TR/xmlschema-0/">XML Schema Part 0:
Primer Second Edition</a>, W3C Recommendation 28 October 2004. (See
http://www.w3.org/TR/xmlschema-0/.)</dd>
<dt class="label"><a name="XMLSchema1" id="XMLSchema1"></a>XML
Schema Part 1</dt>
<dd><a href="http://www.w3.org/TR/xmlschema-1/">XML Schema Part 1:
Structures Second Edition</a>, W3C Recommendation 28 October 2004.
(See http://www.w3.org/TR/xmlschema-1/.)</dd>
<dt class="label"><a name="XMLSchema2" id="XMLSchema2"></a>XML
Schema Part 2</dt>
<dd><a href="http://www.w3.org/TR/xmlschema-2/">XML Schema Part 2:
Datatypes Second Edition</a>, W3C Recommendation 28 October 2004.
(See http://www.w3.org/TR/xmlschema-2/.)</dd>
<dt class="label"><a name="XMLSchema11rec" id=
"XMLSchema11rec"></a>XML Schema 1.1 requirements</dt>
<dd><a href="http://www.w3.org/TR/xmlschema-11-req/">Requirements
for XML Schema 1.1</a>, W3C Working Draft, 2003. (See
http://www.w3.org/TR/xmlschema-11-req/.)</dd>
<dt class="label"><a name="Kay06" id="Kay06"></a>Kay06</dt>
<dd>"Positional Grouping in XQuery", Kay, M.H. XIME-P International
workshop proceedings, 2006</dd>
<dt class="label"><a name="Colby05" id="Colby05"></a>Colby05</dt>
<dd>"Extending XQuery for Analytics", Beyer K., Chamberlin D. et
al. SIGMOD 2005</dd>
<dt class="label"><a name="Borkar04" id=
"Borkar04"></a>Borkar04</dt>
<dd>"Extending XQuery for Grouping, Duplicate Elimination, and
Outer Joins.", Borkar V. and Carey M. XML 2004, Idealliance</dd>
</dl>
</div>
</div>
</div>
</body>
</html>