Merge lp:~sorin.marian.nasoi/zorba/implementation_defined_features into lp:zorba

Proposed by Sorin Marian Nasoi
Status: Merged
Approved by: Matthias Brantner
Approved revision: 10492
Merged at revision: 10491
Proposed branch: lp:~sorin.marian.nasoi/zorba/implementation_defined_features
Merge into: lp:zorba
Diff against target: 2762 lines (+1778/-494)
9 files modified
doc/zorba/impl_dep_features.dox (+575/-112)
scripts/sanity_checks/README.txt (+1/-2)
scripts/sanity_checks/generate_implementation_defined_features_dox.xq (+23/-23)
test/rbkt/Scripts/w3c/XQFTTS.xml (+733/-117)
test/rbkt/Scripts/w3c/XQTS.xml (+373/-196)
test/rbkt/Scripts/w3c/generate-submission-xqftts.xq (+18/-11)
test/rbkt/Scripts/w3c/generate-submission-xqts.xq (+11/-11)
test/update/Scripts/XQUTS.xml (+32/-10)
test/update/Scripts/generate-submission-xquts.xq (+12/-12)
To merge this branch: bzr merge lp:~sorin.marian.nasoi/zorba/implementation_defined_features
Reviewer Review Type Date Requested Status
Matthias Brantner Approve
Review via email: mp+78133@code.launchpad.net

Commit message

Fixed the implementation defined features, context properties.
Fixed the issues related to the documentation and conformance reports for W3C.

Description of the change

Fixed the implementation defined features, context properties.
Fixed the issues related to the documentation and conformance reports for W3C.

To post a comment you must log in.
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

I suggest adding some further improvements:

- The first column is always called "Feature" although it's not clear that W3C XQuery update Facility 1.0 is a feature.
- The "Features" of the context properties are wrong. For example, "Default function namespace" seems to be in W3C XQuery and XPath Full Text 1.0

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

See comments.

review: Needs Fixing
Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

> I suggest adding some further improvements:
>
> - The first column is always called "Feature" although it's not clear that W3C
> XQuery update Facility 1.0 is a feature.
Can you please suggest a better name for it?
Is "W3C Specifications" a better table header than "Feature" ?

> - The "Features" of the context properties are wrong. For example, "Default
> function namespace" seems to be in W3C XQuery and XPath Full Text 1.0
It is also part of the W3C XQuery and XPath Full Text 1.0, please check out the W3C XQuery and XPath Full Text 1.0 catalog from the XQFTTS.

The W3C XQuery and XPath Full Text 1.0 also includes the XQuery 1.0 context properties.
If you think it's better I can remove the "Feature" column all together.

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

> > I suggest adding some further improvements:
> >
> > - The first column is always called "Feature" although it's not clear that
> W3C
> > XQuery update Facility 1.0 is a feature.
> Can you please suggest a better name for it?
> Is "W3C Specifications" a better table header than "Feature" ?
Yes, "W3C Specification" is better.

>
> > - The "Features" of the context properties are wrong. For example, "Default
> > function namespace" seems to be in W3C XQuery and XPath Full Text 1.0
> It is also part of the W3C XQuery and XPath Full Text 1.0, please check out
> the W3C XQuery and XPath Full Text 1.0 catalog from the XQFTTS.
Yes, but this is a bug in the W3C test suite. Please also see Dana's email
"problems with implementation dependent stuff page" from 9/9/11.

>
> The W3C XQuery and XPath Full Text 1.0 also includes the XQuery 1.0 context
> properties.
> If you think it's better I can remove the "Feature" column all together.
I think it should be called "W3C Specification" and the context properties
should indicate properly to which specification they belong. For example,
"Default function namespace" belongs to XQuery 1.0.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

> > > I suggest adding some further improvements:
> > >
> > > - The first column is always called "Feature" although it's not clear that
> > W3C
> > > XQuery update Facility 1.0 is a feature.
> > Can you please suggest a better name for it?
> > Is "W3C Specifications" a better table header than "Feature" ?
> Yes, "W3C Specification" is better.
>
> >
> > > - The "Features" of the context properties are wrong. For example,
> "Default
> > > function namespace" seems to be in W3C XQuery and XPath Full Text 1.0
> > It is also part of the W3C XQuery and XPath Full Text 1.0, please check out
> > the W3C XQuery and XPath Full Text 1.0 catalog from the XQFTTS.
> Yes, but this is a bug in the W3C test suite. Please also see Dana's email
> "problems with implementation dependent stuff page" from 9/9/11.
>
> >
> > The W3C XQuery and XPath Full Text 1.0 also includes the XQuery 1.0 context
> > properties.
> > If you think it's better I can remove the "Feature" column all together.
> I think it should be called "W3C Specification" and the context properties
> should indicate properly to which specification they belong. For example,
> "Default function namespace" belongs to XQuery 1.0.

All Done: please review the changes.

Thanks for the help.

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

- The statically known namespaces are wrong: zerr is bound to http://www.zorba-xquery.com/errors

- availale-collections => available-collections

- The current local time on the computer running Zorba. => The current local time (when the XQuery execution is actually started) on the computer running Zorba.

- ...to the context itemvia the... => ...to the context item via the...

- some more space between columns would make it more readable

- we should make the font in the table headers bold

- Implementation Defined Items
Column header "Value" => "Description of the Implementation in Zorba"

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

> - The statically known namespaces are wrong: zerr is bound to http://www
> .zorba-xquery.com/errors
>
> - availale-collections => available-collections
>
> - The current local time on the computer running Zorba. => The current local
> time (when the XQuery execution is actually started) on the computer running
> Zorba.
>
> - ...to the context itemvia the... => ...to the context item via the...
>
> - some more space between columns would make it more readable
>
> - we should make the font in the table headers bold
>
> - Implementation Defined Items
> Column header "Value" => "Description of the Implementation in Zorba"

All fixed.

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :

> - The statically known namespaces are wrong: zerr is bound to http://www
> .zorba-xquery.com/errors
>
> - availale-collections => available-collections
>
> - The current local time on the computer running Zorba. => The current local
> time (when the XQuery execution is actually started) on the computer running
> Zorba.
>
> - ...to the context itemvia the... => ...to the context item via the...
>
> - some more space between columns would make it more readable
>
> - we should make the font in the table headers bold
>
> - Implementation Defined Items
> Column header "Value" => "Description of the Implementation in Zorba"

All Done: please review the changes.

Thanks for the help.

Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

Looks good to me now.

review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job implementation_defined_features-2011-10-05T22-58-03.228Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/zorba/impl_dep_features.dox'
2--- doc/zorba/impl_dep_features.dox 2011-08-26 23:36:24 +0000
3+++ doc/zorba/impl_dep_features.dox 2011-10-05 20:32:28 +0000
4@@ -6,279 +6,742 @@
5 <li> \ref Context_properties </li>
6 </ul>
7 \section IDI Implementation Defined Items
8-<table bgcolor="lightcyan">
9- <tr>
10- <td>Feature</td>
11- <td>Name</td>
12- <td>Value/Description</td>
13- </tr>
14- <tr>
15+<table bgcolor="white" cellpadding="2">
16+ <tr bgcolor="lightcyan">
17+ <td>
18+ <strong>W3C Specification</strong>
19+ </td>
20+ <td>
21+ <strong>Description</strong>
22+ </td>
23+ <td>
24+ <strong>Description of the Implementation in Zorba</strong>
25+ </td>
26+ </tr>
27+ <tr bgcolor="lightcyan">
28+ <td>W3C XQuery 1.0</td>
29+ <td>The version of Unicode that is used to construct expressions.</td>
30+ <td>Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0.</td>
31+ </tr>
32+ <tr bgcolor="lightcyan">
33+ <td>W3C XQuery 1.0</td>
34+ <td>The statically-known collations.</td>
35+ <td>http://www.w3.org/2005/xpath-functions/collation/codepoint</td>
36+ </tr>
37+ <tr bgcolor="lightcyan">
38+ <td>W3C XQuery 1.0</td>
39+ <td>The implicit timezone.</td>
40+ <td>The implicit timezone is computed based on the current local time of the computer running Zorba.</td>
41+ </tr>
42+ <tr bgcolor="lightcyan">
43+ <td>W3C XQuery 1.0</td>
44+ <td>The circumstances in which warnings are raised, and the ways in which warnings are handled.</td>
45+ <td>Warnings are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html and http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_warnings.html.</td>
46+ </tr>
47+ <tr bgcolor="lightcyan">
48+ <td>W3C XQuery 1.0</td>
49+ <td>The method by which errors are reported to the external processing environment.</td>
50+ <td>Errors are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html.</td>
51+ </tr>
52+ <tr bgcolor="lightcyan">
53+ <td>W3C XQuery 1.0</td>
54+ <td>Whether the implementation is based on the rules of [XML 1.0] and [XML Names] or the rules of [XML 1.1] and [XML Names 1.1]. One of these sets of rules must be applied consistently by all aspects of the implementation.</td>
55+ <td>XML 1.0</td>
56+ </tr>
57+ <tr bgcolor="lightcyan">
58+ <td>W3C XQuery 1.0</td>
59+ <td>Any components of the static context or dynamic context that are overwritten or augmented by the implementation.</td>
60+ <td>The following static context components are overwritten/augmented: 1. Statically known namespaces: Augmented with zerr –&gt; http://www.zorba-xquery.com/errors 2. Context item static type: item() 3. Default order for empty sequences: empty_greatest 4. Static Base URI: We use the rules in 4.5, where the implementation-defined default mentioned there is http://www.zorba-xquery.com, 5. Statically known default collection type: item()*</td>
61+ </tr>
62+ <tr bgcolor="lightcyan">
63+ <td>W3C XQuery 1.0</td>
64+ <td>Which of the optional axes are supported by the implementation, if the Full-Axis Feature is not supported.</td>
65+ <td>All axes are supported</td>
66+ </tr>
67+ <tr bgcolor="lightcyan">
68+ <td>W3C XQuery 1.0</td>
69+ <td>The default handling of empty sequences returned by an ordering key (sortspec) in an order by clause (empty least or empty greatest).</td>
70+ <td>empty_greatest</td>
71+ </tr>
72+ <tr bgcolor="lightcyan">
73+ <td>W3C XQuery 1.0</td>
74+ <td>The names and semantics of any extension expressions (pragmas) recognized by the implementation.</td>
75+ <td>No pragmas are recognized.</td>
76+ </tr>
77+ <tr bgcolor="lightcyan">
78+ <td>W3C XQuery 1.0</td>
79+ <td>The names and semantics of any option declarations recognized by the implementation.</td>
80+ <td>See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/options_and_annotations.html.</td>
81+ </tr>
82+ <tr bgcolor="lightcyan">
83+ <td>W3C XQuery 1.0</td>
84+ <td>Protocols (if any) by which parameters can be passed to an external function, and the result of the function can returned to the invoking query.</td>
85+ <td>See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/external_functions.html.</td>
86+ </tr>
87+ <tr bgcolor="lightcyan">
88+ <td>W3C XQuery 1.0</td>
89+ <td>The process by which the specific modules to be imported by a module import are identified, if the Module Feature is supported (includes processing of location hints, if any.)</td>
90+ <td>See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/modules_top.html.</td>
91+ </tr>
92+ <tr bgcolor="lightcyan">
93+ <td>W3C XQuery 1.0</td>
94+ <td>Any static typing extensions supported by the implementation, if the Static Typing Feature is supported.</td>
95+ <td>Static typing is not supported.</td>
96+ </tr>
97+ <tr bgcolor="lightcyan">
98+ <td>W3C XQuery 1.0</td>
99+ <td>The means by which serialization is invoked, if the Serialization Feature is supported.</td>
100+ <td>The result of an XQuery program can be serialized via the zorba::XQuery::execute methods (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1XQuery.html). Sequence of items can be serialized via the zorba::Serializer::serialize method (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1Serializer.html).</td>
101+ </tr>
102+ <tr bgcolor="lightcyan">
103+ <td>W3C XQuery 1.0</td>
104+ <td>The default values for the byte-order-mark, encoding, media-type, normalization-form, omit-xml-declaration, standalone, and version parameters, if the Serialization Feature is supported.</td>
105+ <td>Serialization Feature is supported. Implicit values are: byte-order-mark = no, encoding = UTF-8, media-type = '', normalization-form = '', omix-xml-declaration = no, standalone = omit, version = '1.0', method = xml, doctype-system = '', doctype-public = '', cdata-section-elements = empty list, include-content-type = no, undeclare-prefixes = no, indent = no</td>
106+ </tr>
107+ <tr bgcolor="lightcyan">
108+ <td>W3C XQuery 1.0</td>
109+ <td>The result of an unsuccessful call to an external function (for example, if the function implementation cannot be found or does not return a value of the declared type).</td>
110+ <td>An error is raised using the regular error handling mechanism of zorba. The kind of error depends on the kind of failure. For example, zerr:ZXQP0008 if the function implementation is not found, or err:XPTY0004 if the result of the function does not match the declared returned type.</td>
111+ </tr>
112+ <tr bgcolor="lightcyan">
113+ <td>W3C XQuery 1.0</td>
114+ <td>Limits on ranges of values for various data types, as enumerated in 5.3 Data Model Conformance.</td>
115+ <td>totalDigits = 2^63, xs:string length = available memory.</td>
116+ </tr>
117+ <tr bgcolor="lightcyan">
118+ <td>W3C XQuery 1.0</td>
119+ <td>The destination of the trace output is implementation-defined. See 4 The Trace Function.</td>
120+ <td>By default, it is std:cerr. Users can modify this via the StaticContext::setTraceStream method.</td>
121+ </tr>
122+ <tr bgcolor="lightcyan">
123+ <td>W3C XQuery 1.0</td>
124+ <td>For xs:integer operations, implementations that support limited-precision integer operations must either raise an error [err:FOAR0002] or provide an implementation-defined mechanism that allows users to choose between raising an error and returning a result that is modulo the largest representable integer value. See 6.2 Operators on Numeric Values.</td>
125+ <td>Zorba raises [err:FOAR0002]</td>
126+ </tr>
127+ <tr bgcolor="lightcyan">
128+ <td>W3C XQuery 1.0</td>
129+ <td>For xs:decimal values the number of digits of precision returned by the numeric operators is implementation-defined. See 6.2 Operators on Numeric Values. See also 17.1.3.3 Casting to xs:decimal and 17.1.3.4 Casting to xs:integer.</td>
130+ <td>On a 32-bit system, the number of digits of precision is 2^31; on a 64-bit system, the number of digits of precision is 2^63.</td>
131+ </tr>
132+ <tr bgcolor="lightcyan">
133+ <td>W3C XQuery 1.0</td>
134+ <td>If the number of digits in the result exceeds the number of digits that the implementation supports, the result is truncated or rounded in an implementation-defined manner. See 6.2 Operators on Numeric Values. See also 17.1.3.3 Casting to xs:decimal and 17.1.3.4 Casting to xs:integer.</td>
135+ <td>It does whatever the underlying C++ implementation does.</td>
136+ </tr>
137+ <tr bgcolor="lightcyan">
138+ <td>W3C XQuery 1.0</td>
139+ <td>It is implementation-defined which version of Unicode is supported by the features defined in this specification, but it is recommended that the most recent version of Unicode be used. See 7.1 String Types.</td>
140+ <td>Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0.</td>
141+ </tr>
142+ <tr bgcolor="lightcyan">
143+ <td>W3C XQuery 1.0</td>
144+ <td>For 7.4.6 fn:normalize-unicode, conforming implementations must support normalization form "NFC" and may support normalization forms "NFD", "NFKC", "NFKD", "FULLY-NORMALIZED". They may also support other normalization forms with implementation-defined semantics.</td>
145+ <td>Zorba supports NFC, NFKC, NFD, NFKD normalization forms.</td>
146+ </tr>
147+ <tr bgcolor="lightcyan">
148+ <td>W3C XQuery 1.0</td>
149+ <td>The ability to decompose strings into collation units suitable for substring matching is an implementation-defined property of a collation. See 7.5 Functions Based on Substring Matching.</td>
150+ <td>Zorba does not support this.</td>
151+ </tr>
152+ <tr bgcolor="lightcyan">
153+ <td>W3C XQuery 1.0</td>
154+ <td>All minimally conforming processors must support year values with a minimum of 4 digits (i.e., YYYY) and a minimum fractional second precision of 1 millisecond or three digits (i.e., s.sss). However, conforming processors may set larger implementation-defined limits on the maximum number of digits they support in these two situations. See 10.1.1 Limits and Precision.</td>
155+ <td>Year values: Zorba supports 9 digits (32bit maxint). Fractional second: Zorba supports 6 digits.</td>
156+ </tr>
157+ <tr bgcolor="lightcyan">
158+ <td>W3C XQuery 1.0</td>
159+ <td>The result of casting a string to xs:decimal, when the resulting value is not too large or too small but nevertheless has too many decimal digits to be accurately represented, is implementation-defined. See 17.1.1 Casting from xs:string and xs:untypedAtomic.</td>
160+ <td>On a 32-bit system, the number of digits of precision is 2^31; on a 64-bit system, the number of digits of precision is 2^63.</td>
161+ </tr>
162+ <tr bgcolor="lightcyan">
163+ <td>W3C XQuery 1.0</td>
164+ <td>Various aspects of the processing provided by 15.5.4 fn:doc are implementation-defined. Implementations may provide external configuration options that allow any aspect of the processing to be controlled by the user.</td>
165+ <td>Zorba provides no configuration options for 15.5.4 fn:doc.</td>
166+ </tr>
167+ <tr bgcolor="lightcyan">
168+ <td>W3C XQuery 1.0</td>
169+ <td>The manner in which implementations provide options to weaken the stable characteristic of 15.5.6 fn:collection and 15.5.4 fn:doc are implementation-defined.</td>
170+ <td>Zorba provides no options to weaken the stable characteristics of 15.5.6 fn:collection or 15.5.4 fn:doc.</td>
171+ </tr>
172+ <tr bgcolor="lightcyan">
173+ <td>W3C XQuery 1.0</td>
174+ <td>Support for additional user-defined or implementation-defined types is implementation-defined. (See 2.6.1 Representation of Types)</td>
175+ <td>There are no implementation-defined types. User-defined types are created and become “in-scope” when “import schema” statements are processed. User-defined types (including anonymous types) are created within a static context and they are destroyed when their containing static context is destroyed.</td>
176+ </tr>
177+ <tr bgcolor="lightcyan">
178+ <td>W3C XQuery 1.0</td>
179+ <td>Some typed values in the data model are undefined. Attempting to access an undefined property is always an error. Behavior in these cases is implementation-defined and the host language is responsible for determining the result. (See 5 Accessors)</td>
180+ <td>err:FOTY0012</td>
181+ </tr>
182+ <tr bgcolor="lightcyan">
183+ <td>W3C XQuery 1.0</td>
184+ <td>For any implementation-defined output method, it is implementation-defined whether sequence normalization process takes place. (See 2 Sequence Normalization)</td>
185+ <td>Zorba performs sequence normalization for the 'binary' serialization method. Zorba's Data Converters module performs sequence normalization for JSON and JSONML (but these are not serialization output methods, i.e. they cannot be invoked with the help of '-z method=JSON')</td>
186+ </tr>
187+ <tr bgcolor="lightcyan">
188+ <td>W3C XQuery 1.0</td>
189+ <td>If the namespace URI is non-null for the method serialization parameter, then the parameter specifies an implementation-defined output method. (See 3 Serialization Parameters)</td>
190+ <td>Zorba's only implementation-defined output method is 'binary' and it is used unqualified (URI is null).</td>
191+ </tr>
192+ <tr bgcolor="lightcyan">
193+ <td>W3C XQuery 1.0</td>
194+ <td>If the value of the normalization-form form parameter is not NFC, NFD, NFKC, NFKD, fully-normalized, or none then the meaning of the value and it's effect is implementation-defined. (See 4 Phases of Serialization)</td>
195+ <td>Zorba has no implementation-defined values for the normalization-form parameter.</td>
196+ </tr>
197+ <tr bgcolor="lightcyan">
198+ <td>W3C XQuery 1.0</td>
199+ <td>The effect of additional serialization parameters on the output of the serializer, where the name of such a parameter must be namespace-qualified, is implementation-defined or implementation-dependent. The extent of this effect on the output must not override the provisions of this specification. (See 3 Serialization Parameters)</td>
200+ <td>Zorba has no implementation-defined serialization parameters.</td>
201+ </tr>
202+ <tr bgcolor="lightcyan">
203+ <td>W3C XQuery 1.0</td>
204+ <td>The effect of providing an option that allows the encoding phase to be skipped, so that the result of serialization is a stream of Unicode characters, is implementation-defined. The serializer is not required to support such an option. (See 4 Phases of Serialization)</td>
205+ <td>Zorba has no such option.</td>
206+ </tr>
207+ <tr bgcolor="lightcyan">
208+ <td>W3C XQuery 1.0</td>
209+ <td>An serializer may provide an implementation-defined mechanism to place CDATA sections in the result tree. (See 5.1.4 XML Output Method: the cdata-section-elements Parameter)</td>
210+ <td>Input CDATA sections are treated and serialized as text. Text nodes can be serialized as cdata sections if explicitly requested through the cdata-section-elements parameter.</td>
211+ </tr>
212+ <tr bgcolor="lightcyan">
213 <td>W3C XQuery Update Facility 1.0</td>
214- <td>supportedRevalidationModes</td>
215+ <td>The revalidation modes that are supported by this implementation.</td>
216 <td>lax, skip, strict</td>
217 </tr>
218- <tr>
219+ <tr bgcolor="lightcyan">
220 <td>W3C XQuery Update Facility 1.0</td>
221- <td>defaultRevalidationMode</td>
222+ <td>The default revalidation mode for this implementation.</td>
223 <td>lax</td>
224 </tr>
225- <tr>
226+ <tr bgcolor="lightcyan">
227 <td>W3C XQuery Update Facility 1.0</td>
228- <td>externalFunctionXDMPUL</td>
229+ <td>The mechanism (if any) by which an external function can return an XDM instance and/or a pending update list to the invoking query.</td>
230 <td>Zorba allows external functions to be implemented in C++. Such functions may return XDM instances. However, it is not possible to implement an updating external function.</td>
231 </tr>
232- <tr>
233+ <tr bgcolor="lightcyan">
234 <td>W3C XQuery Update Facility 1.0</td>
235- <td>fnPutSemantics</td>
236+ <td>The semantics of fn:put(), including the kinds of nodes accepted as operands by this function.</td>
237 <td>fn:put stores a copy (preserving type, preserving namespaces, and inheriting namespace) of the given document or element in Zorba's store. That is it binds the node to the URI passed as first argument. If the URI is relative it's resolved against the base uri. The result of fn:put become effective at the end of the XQuery program or if they are applied using Zorba's made persistent.</td>
238 </tr>
239+ <tr bgcolor="lightcyan">
240+ <td>W3C XQuery and XPath Full Text 1.0</td>
241+ <td>Tokenization, including the definition of the term "tokens", SHOULD be implementation-defined. Implementations SHOULD expose the rules and sample results of tokenization as much as possible to enable users to predict and interpret the results of tokenization.</td>
242+ <td>Zorba uses ICU for word tokenization, so what ever ICU's rules are are Zorba's rules. ICU uses the 'Unicode Standard Annex #29: Unicode Text Segmentation' rules found here http://www.unicode.org/reports/tr29 .</td>
243+ </tr>
244+ <tr bgcolor="lightcyan">
245+ <td>W3C XQuery and XPath Full Text 1.0</td>
246+ <td>A phrase is an ordered sequence of any number of tokens. Beyond that, phrases are implementation-defined.</td>
247+ <td>A phrase in nothing more that 1+ tokens separated by text boundaries as defined by http://www.unicode.org/reports/tr29 .</td>
248+ </tr>
249+ <tr bgcolor="lightcyan">
250+ <td>W3C XQuery and XPath Full Text 1.0</td>
251+ <td>A sentence is an ordered sequence of any number of tokens. Beyond that, sentences are implementation-defined. An implementation is not required to support sentences.</td>
252+ <td>Zorba uses ICU for sentence tokenization, so what ever ICU's rules are are Zorba's rules. ICU uses the 'Unicode Standard Annex #29: Unicode Text Segmentation' rules found here http://www.unicode.org/reports/tr29 .</td>
253+ </tr>
254+ <tr bgcolor="lightcyan">
255+ <td>W3C XQuery and XPath Full Text 1.0</td>
256+ <td>A paragraph is an ordered sequence of any number of tokens. Beyond that, paragraphs are implementation-defined. An implementation is not required to support paragraphs.</td>
257+ <td>Zorba considers XML elements to be paragraph delimiters. For example: &lt;p&gt;It was the best of times. It wat the worse of times.&lt;/p&gt; is 1 paragraph; however: &lt;p&gt;That was a &lt;b&gt;bold&lt;/b&gt; is 3 paragraphs since Zorba attaches no semantic meaning to any particular XML elements.</td>
258+ </tr>
259+ <tr bgcolor="lightcyan">
260+ <td>W3C XQuery and XPath Full Text 1.0</td>
261+ <td>Implementations are free to provide implementation-defined ways to differentiate between markup's effect on token boundaries during tokenization.</td>
262+ <td>Markup delimits paragraphs and, by implication, sentences and tokens.</td>
263+ </tr>
264+ <tr bgcolor="lightcyan">
265+ <td>W3C XQuery and XPath Full Text 1.0</td>
266+ <td>The set of expressions (of form ExprSingle) that can be assigned to a score variable in a let-clause is implementation-defined. The result of passing an expression to the scoring algorithm that it does not support is implementation-defined.</td>
267+ <td>Score variables are not currently supported.</td>
268+ </tr>
269+ <tr bgcolor="lightcyan">
270+ <td>W3C XQuery and XPath Full Text 1.0</td>
271+ <td>When a sequence of query tokens is considered as a phrase, it matches a sequence of tokens in the tokenized form of the text being searched only if the two sequences correspond in an implementation-defined way.</td>
272+ <td>Given the tokens: A B C they have to match: A B C exactly; no more, no less.</td>
273+ </tr>
274+ <tr bgcolor="lightcyan">
275+ <td>W3C XQuery and XPath Full Text 1.0</td>
276+ <td>The match option application order, subject to the stated constraints, is implementation-defined.</td>
277+ <td>Match options are applied in the following order: Stop Word Option, Stemming Option, Case Option, Diacritics Option, Wildcard Option, Language Option.</td>
278+ </tr>
279+ <tr bgcolor="lightcyan">
280+ <td>W3C XQuery and XPath Full Text 1.0</td>
281+ <td>The "language" option influences tokenization, stemming, and stop words in an implementation-defined way. It MAY influence the behavior of other match options in an implementation-defined way.</td>
282+ <td>The Language Option: * Affects tokenization as performed by ICU. * Selects the stemming algorithm to be used.* Selects the default set of stop-words to be used. The Language Option does not affect any other Match Option.</td>
283+ </tr>
284+ <tr bgcolor="lightcyan">
285+ <td>W3C XQuery and XPath Full Text 1.0</td>
286+ <td>The set of valid language identifiers is implementation-defined.</td>
287+ <td>Zorba recognizes the ISO 639-1 and 639-2 language identifiers for the following languages: Danish, Dutch, English, Finnish, German, Hungarian, Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish.</td>
288+ </tr>
289+ <tr bgcolor="lightcyan">
290+ <td>W3C XQuery and XPath Full Text 1.0</td>
291+ <td>If an invalid language identifier is specified, then the behavior is implementation-defined.</td>
292+ <td>Zorba raises err::XPTY0004 for a string that can not be cast to xs:language and err::FTST0009 for an unsupported language.</td>
293+ </tr>
294+ <tr bgcolor="lightcyan">
295+ <td>W3C XQuery and XPath Full Text 1.0</td>
296+ <td>When a processor evaluates text in a document that is governed by an xml:lang attribute and the portion of the full-text query doing that evaluation contains an FTLanguageOption that specifies a different language from the language specified by the governing xml:lang attribute, the language-related behavior of that full-text query is implementation-defined.</td>
297+ <td>xml:lang always wins.</td>
298+ </tr>
299+ <tr bgcolor="lightcyan">
300+ <td>W3C XQuery and XPath Full Text 1.0</td>
301+ <td>It is implementation-defined which thesaurus relationships an implementation supports.</td>
302+ <td>This is covered in the Zorba Full Text Thesaurus documentation, http://www.zorba-xquery.com/site2/doc/latest/zorba/html/ft_thesaurus.html</td>
303+ </tr>
304+ <tr bgcolor="lightcyan">
305+ <td>W3C XQuery and XPath Full Text 1.0</td>
306+ <td>If a query specifies thesaurus relationships or levels not supported by the thesaurus, or does not specify a relationship, the behavior is implementation-defined.</td>
307+ <td>Unsupported thesaurus relationships are treated as no relationship. All levels are supported. When no relationship is specified, all related words are returned.</td>
308+ </tr>
309+ <tr bgcolor="lightcyan">
310+ <td>W3C XQuery and XPath Full Text 1.0</td>
311+ <td>If a query does not specify the number of levels, and the implementation does not follow the default of querying all levels of hierarchical relationships, then the number of levels of hierarchical relationships queries is implementation-defined.</td>
312+ <td>Zorba uses 2 levels by default.</td>
313+ </tr>
314+ <tr bgcolor="lightcyan">
315+ <td>W3C XQuery and XPath Full Text 1.0</td>
316+ <td>It is implementation-defined what a stem of a token is and whether stemming will based on an algorithm, dictionary, or mixed approach.</td>
317+ <td>Zorba uses the publicly available Snowball stemmers found here http://snowball.tartarus.org.</td>
318+ </tr>
319+ <tr bgcolor="lightcyan">
320+ <td>W3C XQuery and XPath Full Text 1.0</td>
321+ <td>An implementation-defined comparison is used to determine whether a query token appears in the collection of stop words defined by the applicable stop word option.</td>
322+ <td>The query token is compared (case insensitively) against the list of stop words for an exact match.</td>
323+ </tr>
324+ <tr bgcolor="lightcyan">
325+ <td>W3C XQuery and XPath Full Text 1.0</td>
326+ <td>Normally a stop word matches exactly one token, but there may be implementation-defined conditions, under which a stop word may match a different number of tokens.</td>
327+ <td>Zorba has no such conditions.</td>
328+ </tr>
329+ <tr bgcolor="lightcyan">
330+ <td>W3C XQuery and XPath Full Text 1.0</td>
331+ <td>The "stop words default" option specifies that an implementation-defined collection of stop words is used.</td>
332+ <td>For each of the supported languages, Zorba defines a set of default stop-words (too big to be listed here).</td>
333+ </tr>
334+ <tr bgcolor="lightcyan">
335+ <td>W3C XQuery and XPath Full Text 1.0</td>
336+ <td>An implementation recognizes an implementation-defined set of namespace URIs used to denote extension options. The effect of each, including its error behavior, is implementation-defined.</td>
337+ <td>Zorba implements no extension options.</td>
338+ </tr>
339+ <tr bgcolor="lightcyan">
340+ <td>W3C XQuery and XPath Full Text 1.0</td>
341+ <td>An implementation recognizes an implementation-defined set of namespace URIs used to denote extension selection pragmas. The effect of each, including its error behavior, is implementation-defined.</td>
342+ <td>Zorba implements no extension pragmas.</td>
343+ </tr>
344+ <tr bgcolor="lightcyan">
345+ <td>W3C XQuery and XPath Full Text 1.0</td>
346+ <td>The conditions under which tokenization of two equal items produces different tokens is implementation-defined.</td>
347+ <td>If items are equal, the tokens will also be equal.</td>
348+ </tr>
349+ <tr bgcolor="lightcyan">
350+ <td>W3C XQuery and XPath Full Text 1.0</td>
351+ <td>An implementation may impose an implementation-defined restriction on the operand of FTIgnoreOption.</td>
352+ <td>Zorba imposes no restriction; however, the FTIgnoreOption implementation is incomplete.</td>
353+ </tr>
354+ <tr bgcolor="lightcyan">
355+ <td>W3C XQuery and XPath Full Text 1.0</td>
356+ <td>For certain full-text components of the static context (see C Static Context Components), the default initial value of the component can be overwritten or augmented with an implementation-defined value or values.</td>
357+ <td>FTThesaurusOption has no default value. FTLanguageOption is set to whatever the host's language is. Statically known languages: The ISO 639-1 codes are: da, de, en, es, fi, hu, it, nl, no, pt, sv, ru.</td>
358+ </tr>
359 </table>
360 \section Features Supported Features
361-<table bgcolor="lightcyan">
362- <tr>
363- <td>Feature</td>
364- <td>Name</td>
365- <td>Value</td>
366+<table bgcolor="white" cellpadding="2">
367+ <tr bgcolor="lightcyan">
368+ <td>
369+ <strong>W3C Specification</strong>
370+ </td>
371+ <td>
372+ <strong>Name</strong>
373+ </td>
374+ <td>
375+ <strong>Value</strong>
376+ </td>
377 </tr>
378- <tr>
379+ <tr bgcolor="lightcyan">
380 <td>W3C XQuery 1.0</td>
381 <td>Minimal Conformance</td>
382 <td bgcolor="mediumseagreen">true</td>
383 </tr>
384- <tr>
385+ <tr bgcolor="lightcyan">
386 <td>W3C XQuery 1.0</td>
387 <td>Schema Import</td>
388 <td bgcolor="mediumseagreen">true</td>
389 </tr>
390- <tr>
391+ <tr bgcolor="lightcyan">
392 <td>W3C XQuery 1.0</td>
393 <td>Schema Validation</td>
394 <td bgcolor="mediumseagreen">true</td>
395 </tr>
396- <tr>
397+ <tr bgcolor="lightcyan">
398 <td>W3C XQuery 1.0</td>
399 <td>Static Typing</td>
400 <td bgcolor="white">false</td>
401 </tr>
402- <tr>
403+ <tr bgcolor="lightcyan">
404 <td>W3C XQuery 1.0</td>
405 <td>Static Typing Extensions</td>
406 <td bgcolor="white">false</td>
407 </tr>
408- <tr>
409+ <tr bgcolor="lightcyan">
410 <td>W3C XQuery 1.0</td>
411 <td>Full Axis</td>
412 <td bgcolor="mediumseagreen">true</td>
413 </tr>
414- <tr>
415+ <tr bgcolor="lightcyan">
416 <td>W3C XQuery 1.0</td>
417 <td>Module</td>
418 <td bgcolor="mediumseagreen">true</td>
419 </tr>
420- <tr>
421+ <tr bgcolor="lightcyan">
422 <td>W3C XQuery 1.0</td>
423 <td>Serialization</td>
424 <td bgcolor="mediumseagreen">true</td>
425 </tr>
426- <tr>
427+ <tr bgcolor="lightcyan">
428 <td>W3C XQuery Update Facility 1.0</td>
429 <td>Minimal Conformance</td>
430 <td bgcolor="mediumseagreen">true</td>
431 </tr>
432- <tr>
433+ <tr bgcolor="lightcyan">
434 <td>W3C XQuery Update Facility 1.0</td>
435 <td>Update Facility Static Typing Feature</td>
436 <td bgcolor="white">false</td>
437 </tr>
438- <tr>
439+ <tr bgcolor="lightcyan">
440 <td>W3C XQuery and XPath Full Text 1.0</td>
441 <td>Minimal Conformance</td>
442 <td bgcolor="mediumseagreen">true</td>
443 </tr>
444- <tr>
445+ <tr bgcolor="lightcyan">
446 <td>W3C XQuery and XPath Full Text 1.0</td>
447 <td>FTMildNot Operator</td>
448 <td bgcolor="mediumseagreen">true</td>
449 </tr>
450- <tr>
451+ <tr bgcolor="lightcyan">
452 <td>W3C XQuery and XPath Full Text 1.0</td>
453 <td>FTUnaryNot Operator</td>
454 <td bgcolor="mediumseagreen">true</td>
455 </tr>
456- <tr>
457+ <tr bgcolor="lightcyan">
458 <td>W3C XQuery and XPath Full Text 1.0</td>
459 <td>FTUnit and FTBigUnit</td>
460 <td bgcolor="mediumseagreen">true</td>
461 </tr>
462- <tr>
463+ <tr bgcolor="lightcyan">
464 <td>W3C XQuery and XPath Full Text 1.0</td>
465 <td>FTOrder Operator</td>
466 <td bgcolor="mediumseagreen">true</td>
467 </tr>
468- <tr>
469+ <tr bgcolor="lightcyan">
470 <td>W3C XQuery and XPath Full Text 1.0</td>
471 <td>FTScope Operator</td>
472 <td bgcolor="mediumseagreen">true</td>
473 </tr>
474- <tr>
475+ <tr bgcolor="lightcyan">
476 <td>W3C XQuery and XPath Full Text 1.0</td>
477 <td>FTWindow Operator</td>
478 <td bgcolor="mediumseagreen">true</td>
479 </tr>
480- <tr>
481+ <tr bgcolor="lightcyan">
482 <td>W3C XQuery and XPath Full Text 1.0</td>
483 <td>FTDistance Operator</td>
484 <td bgcolor="mediumseagreen">true</td>
485 </tr>
486- <tr>
487+ <tr bgcolor="lightcyan">
488 <td>W3C XQuery and XPath Full Text 1.0</td>
489 <td>FTTimes Operator</td>
490 <td bgcolor="mediumseagreen">true</td>
491 </tr>
492- <tr>
493+ <tr bgcolor="lightcyan">
494 <td>W3C XQuery and XPath Full Text 1.0</td>
495 <td>FTContent Operator</td>
496 <td bgcolor="mediumseagreen">true</td>
497 </tr>
498- <tr>
499+ <tr bgcolor="lightcyan">
500 <td>W3C XQuery and XPath Full Text 1.0</td>
501 <td>FTCaseOption</td>
502 <td bgcolor="mediumseagreen">true</td>
503 </tr>
504- <tr>
505+ <tr bgcolor="lightcyan">
506 <td>W3C XQuery and XPath Full Text 1.0</td>
507 <td>FTStopwordOption</td>
508 <td bgcolor="mediumseagreen">true</td>
509 </tr>
510- <tr>
511+ <tr bgcolor="lightcyan">
512 <td>W3C XQuery and XPath Full Text 1.0</td>
513 <td>FTLanguageOption</td>
514 <td bgcolor="mediumseagreen">true</td>
515 </tr>
516- <tr>
517+ <tr bgcolor="lightcyan">
518 <td>W3C XQuery and XPath Full Text 1.0</td>
519 <td>FTIgnoreOption</td>
520 <td bgcolor="white">false</td>
521 </tr>
522- <tr>
523+ <tr bgcolor="lightcyan">
524 <td>W3C XQuery and XPath Full Text 1.0</td>
525 <td>Scoring</td>
526 <td bgcolor="white">false</td>
527 </tr>
528- <tr>
529+ <tr bgcolor="lightcyan">
530 <td>W3C XQuery and XPath Full Text 1.0</td>
531 <td>Weights</td>
532 <td bgcolor="white">false</td>
533 </tr>
534 </table>
535 \section Context_properties Context Properties
536-<table bgcolor="lightcyan">
537- <tr>
538- <td>Feature</td>
539- <td>Name</td>
540- <td>Context Type</td>
541- <td>Value</td>
542- </tr>
543- <tr>
544+<table bgcolor="white" cellpadding="2">
545+ <tr bgcolor="lightcyan">
546+ <td>
547+ <strong>W3C Specification</strong>
548+ </td>
549+ <td>
550+ <strong>Name</strong>
551+ </td>
552+ <td>
553+ <strong>Context Type</strong>
554+ </td>
555+ <td>
556+ <strong>Value</strong>
557+ </td>
558+ </tr>
559+ <tr bgcolor="lightcyan">
560+ <td>W3C XQuery 1.0</td>
561+ <td>Statically known namespaces</td>
562+ <td>static</td>
563+ <td>fn –&gt; http://www.w3.org/2005/xpath-functions, xml –&gt; http://www.w3.org/XML/1998/namespace, xs –&gt; http://www.w3.org/2001/XMLSchema, xsi –&gt; http://www.w3.org/2001/XMLSchema-instance, local –&gt; http://www.w3.org/2005/xquery-local-functions, zerr –&gt; http://www.zorba-xquery.com/errors</td>
564+ </tr>
565+ <tr bgcolor="lightcyan">
566+ <td>W3C XQuery 1.0</td>
567+ <td>Default element/type namespace</td>
568+ <td>static</td>
569+ <td>None.</td>
570+ </tr>
571+ <tr bgcolor="lightcyan">
572 <td>W3C XQuery 1.0</td>
573 <td>Default function namespace</td>
574 <td>static</td>
575- <td>http://www.w3.org/2005/xpath-functions</td>
576- </tr>
577- <tr>
578+ <td>http://www.w3.org/2005/xpath-functions .</td>
579+ </tr>
580+ <tr bgcolor="lightcyan">
581+ <td>W3C XQuery 1.0</td>
582+ <td>In-scope schema types</td>
583+ <td>static</td>
584+ <td>Built-in types in xs.</td>
585+ </tr>
586+ <tr bgcolor="lightcyan">
587+ <td>W3C XQuery 1.0</td>
588+ <td>In-scope element declarations</td>
589+ <td>static</td>
590+ <td>None.</td>
591+ </tr>
592+ <tr bgcolor="lightcyan">
593+ <td>W3C XQuery 1.0</td>
594+ <td>In-scope attribute declarations</td>
595+ <td>static</td>
596+ <td>None.</td>
597+ </tr>
598+ <tr bgcolor="lightcyan">
599+ <td>W3C XQuery 1.0</td>
600+ <td>In-scope variables</td>
601+ <td>static</td>
602+ <td>None.</td>
603+ </tr>
604+ <tr bgcolor="lightcyan">
605 <td>W3C XQuery 1.0</td>
606 <td>Context item static type</td>
607 <td>static</td>
608 <td>item()</td>
609 </tr>
610- <tr>
611+ <tr bgcolor="lightcyan">
612+ <td>W3C XQuery 1.0</td>
613+ <td>Function signatures</td>
614+ <td>static</td>
615+ <td>Functions in fn namespace, and constructors for built-in atomic types.</td>
616+ </tr>
617+ <tr bgcolor="lightcyan">
618+ <td>W3C XQuery 1.0</td>
619+ <td>Statically known collations</td>
620+ <td>static</td>
621+ <td>Initially, the only available collation is the codepoint collection: http://www.w3.org/2005/xpath-functions/collation/codepoint. More collations can be added to a static context via the StaticContext::addCollation() method of the C++ API.</td>
622+ </tr>
623+ <tr bgcolor="lightcyan">
624 <td>W3C XQuery 1.0</td>
625 <td>Default collation</td>
626 <td>static</td>
627 <td>http://www.w3.org/2005/xpath-functions/collation/codepoint</td>
628 </tr>
629- <tr>
630+ <tr bgcolor="lightcyan">
631 <td>W3C XQuery 1.0</td>
632 <td>Construction mode</td>
633 <td>static</td>
634 <td>preserve</td>
635 </tr>
636- <tr>
637+ <tr bgcolor="lightcyan">
638 <td>W3C XQuery 1.0</td>
639 <td>Ordering mode</td>
640 <td>static</td>
641 <td>ordered</td>
642 </tr>
643- <tr>
644+ <tr bgcolor="lightcyan">
645 <td>W3C XQuery 1.0</td>
646 <td>Default order for empty sequences</td>
647 <td>static</td>
648 <td>empty greatest</td>
649 </tr>
650- <tr>
651+ <tr bgcolor="lightcyan">
652 <td>W3C XQuery 1.0</td>
653 <td>Boundary-space policy</td>
654 <td>static</td>
655 <td>strip</td>
656 </tr>
657- <tr>
658+ <tr bgcolor="lightcyan">
659 <td>W3C XQuery 1.0</td>
660 <td>Copy-namespaces mode</td>
661 <td>static</td>
662 <td>inherit preserve</td>
663 </tr>
664- <tr>
665+ <tr bgcolor="lightcyan">
666+ <td>W3C XQuery 1.0</td>
667+ <td>Base URI</td>
668+ <td>static</td>
669+ <td>Uses the rules in http://www.w3.org/TR/xquery-30/#id-base-uri-decl, where the implementation-defined default mentioned there is http://www.zorba-xquery.com</td>
670+ </tr>
671+ <tr bgcolor="lightcyan">
672+ <td>W3C XQuery 1.0</td>
673+ <td>Statically known documents</td>
674+ <td>static</td>
675+ <td>None.</td>
676+ </tr>
677+ <tr bgcolor="lightcyan">
678+ <td>W3C XQuery 1.0</td>
679+ <td>Statically known collections</td>
680+ <td>static</td>
681+ <td>None.</td>
682+ </tr>
683+ <tr bgcolor="lightcyan">
684+ <td>W3C XQuery 1.0</td>
685+ <td>Statically known default collection type</td>
686+ <td>static</td>
687+ <td>item()*</td>
688+ </tr>
689+ <tr bgcolor="lightcyan">
690+ <td>W3C XQuery 1.0</td>
691+ <td>Context item</td>
692+ <td>dynamic</td>
693+ <td>None. Before execution of a query, a value can be assigned to the context item via the DynamicContext::setContextItem method.</td>
694+ </tr>
695+ <tr bgcolor="lightcyan">
696+ <td>W3C XQuery 1.0</td>
697+ <td>Context position</td>
698+ <td>dynamic</td>
699+ <td>None.</td>
700+ </tr>
701+ <tr bgcolor="lightcyan">
702+ <td>W3C XQuery 1.0</td>
703+ <td>Context size</td>
704+ <td>dynamic</td>
705+ <td>None.</td>
706+ </tr>
707+ <tr bgcolor="lightcyan">
708+ <td>W3C XQuery 1.0</td>
709+ <td>Variable values</td>
710+ <td>dynamic</td>
711+ <td>None.</td>
712+ </tr>
713+ <tr bgcolor="lightcyan">
714+ <td>W3C XQuery 1.0</td>
715+ <td>Function implementations</td>
716+ <td>dynamic</td>
717+ <td>Functions in fn namespace, and constructors for built-in atomic types.</td>
718+ </tr>
719+ <tr bgcolor="lightcyan">
720+ <td>W3C XQuery 1.0</td>
721+ <td>Current dateTime</td>
722+ <td>dynamic</td>
723+ <td>The current local time (when the XQuery execution is actually started) on the computer running Zorba.</td>
724+ </tr>
725+ <tr bgcolor="lightcyan">
726+ <td>W3C XQuery 1.0</td>
727+ <td>Implicit timezone</td>
728+ <td>dynamic</td>
729+ <td>Computed based on the current local time on the computer running Zorba.</td>
730+ </tr>
731+ <tr bgcolor="lightcyan">
732+ <td>W3C XQuery 1.0</td>
733+ <td>Available documents</td>
734+ <td>dynamic</td>
735+ <td>The URIs returned by the availale-documents function of module http://www.zorba-xquery.com/modules/store/dynamic/documents (see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_store_dynamic_documents.html)</td>
736+ </tr>
737+ <tr bgcolor="lightcyan">
738+ <td>W3C XQuery 1.0</td>
739+ <td>Available collections</td>
740+ <td>dynamic</td>
741+ <td>The URIs returned by the available-collections function of module http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl (see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_store_dynamic_collections_w3c_ddl.html)</td>
742+ </tr>
743+ <tr bgcolor="lightcyan">
744+ <td>W3C XQuery 1.0</td>
745+ <td>Default collection</td>
746+ <td>dynamic</td>
747+ <td>None.</td>
748+ </tr>
749+ <tr bgcolor="lightcyan">
750 <td>W3C XQuery Update Facility 1.0</td>
751 <td>Revalidation mode</td>
752 <td>static</td>
753 <td>lax</td>
754 </tr>
755- <tr>
756- <td>W3C XQuery and XPath Full Text 1.0</td>
757- <td>Default function namespace</td>
758- <td>static</td>
759- <td>http://www.w3.org/2005/xpath-functions</td>
760- </tr>
761- <tr>
762- <td>W3C XQuery and XPath Full Text 1.0</td>
763- <td>Context item static type</td>
764- <td>static</td>
765- <td>item()</td>
766- </tr>
767- <tr>
768- <td>W3C XQuery and XPath Full Text 1.0</td>
769- <td>Default collation</td>
770- <td>static</td>
771- <td>http://www.w3.org/2005/xpath-functions/collation/codepoint</td>
772- </tr>
773- <tr>
774- <td>W3C XQuery and XPath Full Text 1.0</td>
775- <td>Construction mode</td>
776- <td>static</td>
777- <td>preserve</td>
778- </tr>
779- <tr>
780- <td>W3C XQuery and XPath Full Text 1.0</td>
781- <td>Ordering mode</td>
782- <td>static</td>
783- <td>ordered</td>
784- </tr>
785- <tr>
786- <td>W3C XQuery and XPath Full Text 1.0</td>
787- <td>Default order for empty sequences</td>
788- <td>static</td>
789- <td>empty greatest</td>
790- </tr>
791- <tr>
792- <td>W3C XQuery and XPath Full Text 1.0</td>
793- <td>Boundary-space policy</td>
794- <td>static</td>
795- <td>strip</td>
796- </tr>
797- <tr>
798- <td>W3C XQuery and XPath Full Text 1.0</td>
799- <td>Copy-namespaces mode</td>
800- <td>static</td>
801- <td>inherit preserve</td>
802- </tr>
803-</table>*/
804+ <tr bgcolor="lightcyan">
805+ <td>W3C XQuery and XPath Full Text 1.0</td>
806+ <td>FTCaseOption</td>
807+ <td>static</td>
808+ <td>case insensitive</td>
809+ </tr>
810+ <tr bgcolor="lightcyan">
811+ <td>W3C XQuery and XPath Full Text 1.0</td>
812+ <td>FTDiacriticsOption</td>
813+ <td>static</td>
814+ <td>diacritics insensitive</td>
815+ </tr>
816+ <tr bgcolor="lightcyan">
817+ <td>W3C XQuery and XPath Full Text 1.0</td>
818+ <td>FTStemOption</td>
819+ <td>static</td>
820+ <td>no stemming</td>
821+ </tr>
822+ <tr bgcolor="lightcyan">
823+ <td>W3C XQuery and XPath Full Text 1.0</td>
824+ <td>Statically known thesauri</td>
825+ <td>static</td>
826+ <td>http://wordnet.princeton.edu/</td>
827+ </tr>
828+ <tr bgcolor="lightcyan">
829+ <td>W3C XQuery and XPath Full Text 1.0</td>
830+ <td>FTStopWordOption</td>
831+ <td>static</td>
832+ <td>no stop words</td>
833+ </tr>
834+ <tr bgcolor="lightcyan">
835+ <td>W3C XQuery and XPath Full Text 1.0</td>
836+ <td>Statically known stop word lists</td>
837+ <td>static</td>
838+ <td>Zorba uses the publicly available lists found here http://snowball.tartarus.org.</td>
839+ </tr>
840+ <tr bgcolor="lightcyan">
841+ <td>W3C XQuery and XPath Full Text 1.0</td>
842+ <td>FTLanguageOption</td>
843+ <td>static</td>
844+ <td>Whatever the host's language is.</td>
845+ </tr>
846+ <tr bgcolor="lightcyan">
847+ <td>W3C XQuery and XPath Full Text 1.0</td>
848+ <td>Statically known languages</td>
849+ <td>static</td>
850+ <td>The ISO 639-1 codes are: da, de, en, es, fi, hu, it, nl, no, pt, sv, ru.</td>
851+ </tr>
852+ <tr bgcolor="lightcyan">
853+ <td>W3C XQuery and XPath Full Text 1.0</td>
854+ <td>FTWildcardOption</td>
855+ <td>static</td>
856+ <td>no wildcards </td>
857+ </tr>
858+</table>*/
859\ No newline at end of file
860
861=== modified file 'scripts/sanity_checks/README.txt'
862--- scripts/sanity_checks/README.txt 2011-08-17 13:51:42 +0000
863+++ scripts/sanity_checks/README.txt 2011-10-05 20:32:28 +0000
864@@ -20,5 +20,4 @@
865
866 generate_implementation_defined_features_dox.xq
867 Run it in order to generate the docygen page:
868-./zorba --indent -z method=xml --omit-xml-declaration
869--f -q ../../scripts/sanity_checks/generate_implementation_defined_features_dox.xq > /home/spungi/work/zorba2/doc/zorba/impl_dep_features.dox
870\ No newline at end of file
871+./zorba --indent -z method=xml --omit-xml-declaration -f -q ../../scripts/sanity_checks/generate_implementation_defined_features_dox.xq > ../../doc/zorba/impl_dep_features.dox
872\ No newline at end of file
873
874=== modified file 'scripts/sanity_checks/generate_implementation_defined_features_dox.xq'
875--- scripts/sanity_checks/generate_implementation_defined_features_dox.xq 2011-08-18 20:31:17 +0000
876+++ scripts/sanity_checks/generate_implementation_defined_features_dox.xq 2011-10-05 20:32:28 +0000
877@@ -20,7 +20,7 @@
878
879 return
880 ("",
881-"/** \page impl_dep_features Information about Implementation Dependent Features and Properties
882+"/** \page impl_dep_features Implementation Dependent Features and Properties
883
884 ",
885 <ul>
886@@ -30,35 +30,35 @@
887 </ul>,
888 "
889 \section IDI Implementation Defined Items",
890- <table bgcolor="lightcyan">
891- <tr><td>Feature</td><td>Name</td><td>Value/Description</td></tr>
892+ <table bgcolor="white" cellpadding="2">
893+ <tr bgcolor="lightcyan"><td><strong>W3C Specification</strong></td><td><strong>Description</strong></td><td><strong>Description of the Implementation in Zorba</strong></td></tr>
894 {
895 for $idi in $XQTSZorba//*:implementation-defined-item
896 where not(data($idi/@value) = "")
897 return
898- <tr>
899+ <tr bgcolor="lightcyan">
900 <td>W3C XQuery 1.0</td>
901- <td>{data($idi/@name)}</td>
902- <td>{data($idi/@value)}</td>
903+ <td>{normalize-space($idi/*:description/text())}</td>
904+ <td>{data($idi/@value)}</td>
905 </tr>
906 }
907 {
908 for $idi in $XQUTSZorba//*:implementation-defined-item
909 where not(data($idi/@value) = "")
910 return
911- <tr>
912+ <tr bgcolor="lightcyan">
913 <td>W3C XQuery Update Facility 1.0</td>
914- <td>{data($idi/@name)}</td>
915+ <td>{normalize-space($idi/*:description/text())}</td>
916 <td>{data($idi/@value)}</td>
917 </tr>
918 }
919 {
920 for $idi in $XQFTTSZorba//*:implementation-defined-item
921- where not(data($idi/@value) = "")
922+ where not(data($idi/@value) = "") and data($idi/@spec) = "XQueryFullText"
923 return
924- <tr>
925+ <tr bgcolor="lightcyan">
926 <td>W3C XQuery and XPath Full Text 1.0</td>
927- <td>{data($idi/@name)}</td>
928+ <td>{normalize-space($idi/*:description/text())}</td>
929 <td>{data($idi/@value)}</td>
930 </tr>
931 }
932@@ -66,12 +66,12 @@
933 ,
934 "
935 \section Features Supported Features",
936- <table bgcolor="lightcyan">
937- <tr><td>Feature</td><td>Name</td><td>Value</td></tr>
938+ <table bgcolor="white" cellpadding="2">
939+ <tr bgcolor="lightcyan"><td><strong>W3C Specification</strong></td><td><strong>Name</strong></td><td><strong>Value</strong></td></tr>
940 {
941 for $feature in $XQTSZorba//*:feature
942 return
943- <tr>
944+ <tr bgcolor="lightcyan">
945 <td>W3C XQuery 1.0</td>
946 <td>{data($feature/@name)}</td>
947 <td bgcolor="{if(xs:boolean(data($feature/@supported))) then 'mediumseagreen' else 'white'}">{data($feature/@supported)}</td>
948@@ -80,7 +80,7 @@
949 {
950 for $feature in $XQUTSZorba//*:feature
951 return
952- <tr>
953+ <tr bgcolor="lightcyan">
954 <td>W3C XQuery Update Facility 1.0</td>
955 <td>{data($feature/@name)}</td>
956 <td bgcolor="{if(xs:boolean(data($feature/@supported))) then 'mediumseagreen' else 'white'}">{data($feature/@supported)}</td>
957@@ -89,7 +89,7 @@
958 {
959 for $feature in $XQFTTSZorba//*:feature
960 return
961- <tr>
962+ <tr bgcolor="lightcyan">
963 <td>W3C XQuery and XPath Full Text 1.0</td>
964 <td>{data($feature/@name)}</td>
965 <td bgcolor="{if(xs:boolean(data($feature/@supported))) then 'mediumseagreen' else 'white'}">{data($feature/@supported)}</td>
966@@ -98,13 +98,13 @@
967 </table>,
968 "
969 \section Context_properties Context Properties",
970- <table bgcolor="lightcyan">
971- <tr><td>Feature</td><td>Name</td><td>Context Type</td><td>Value</td></tr>
972- {
973+ <table bgcolor="white" cellpadding="2">
974+ <tr bgcolor="lightcyan"><td><strong>W3C Specification</strong></td><td><strong>Name</strong></td><td><strong>Context Type</strong></td><td><strong>Value</strong></td></tr>
975+ {
976 for $property in $XQTSZorba//*:context-property
977 where not(data($property/@value) = "")
978 return
979- <tr>
980+ <tr bgcolor="lightcyan">
981 <td>W3C XQuery 1.0</td>
982 <td>{data($property/@name)}</td>
983 <td>{data($property/@context-type)}</td>
984@@ -115,7 +115,7 @@
985 for $property in $XQUTSZorba//*:context-property
986 where not(data($property/@value) = "")
987 return
988- <tr>
989+ <tr bgcolor="lightcyan">
990 <td>W3C XQuery Update Facility 1.0</td>
991 <td>{data($property/@name)}</td>
992 <td>{data($property/@context-type)}</td>
993@@ -124,9 +124,9 @@
994 }
995 {
996 for $property in $XQFTTSZorba//*:context-property
997- where not(data($property/@value) = "")
998+ where not(data($property/@value) = "") and data($property/@spec) = "XQueryFullText"
999 return
1000- <tr>
1001+ <tr bgcolor="lightcyan">
1002 <td>W3C XQuery and XPath Full Text 1.0</td>
1003 <td>{data($property/@name)}</td>
1004 <td>{data($property/@context-type)}</td>
1005
1006=== modified file 'test/rbkt/Scripts/w3c/XQFTTS.xml'
1007--- test/rbkt/Scripts/w3c/XQFTTS.xml 2011-09-08 20:49:34 +0000
1008+++ test/rbkt/Scripts/w3c/XQFTTS.xml 2011-10-05 20:32:28 +0000
1009@@ -2,128 +2,744 @@
1010 <zorba xmlns="http://www.w3.org/2005/02/query-test-XQTSResult">
1011
1012 <implementation-defined-items>
1013- <implementation-defined-item name="expressionUnicode" value="Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0."/>
1014- <implementation-defined-item name="collations" value="http://www.w3.org/2005/xpath-functions/collation/codepoint"/>
1015- <implementation-defined-item name="implicitTimezone" value="The implicit timezone is computed based on the current local time of the computer running Zorba."/>
1016- <implementation-defined-item name="warningsMethod" value="Warnings are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html. Currently, there are only 2 warnings: 1. ZWST0002: generated when an unknown annotation is encountered in an XQuery program. 2. ZWST0003: generated when a non-external user-defined function is declared as sequential, but its implementation is not really sequential."/>
1017- <implementation-defined-item name="errorsMethod" value="Errors are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html."/>
1018- <implementation-defined-item name="XMLVersion" value="XML 1.0"/>
1019- <implementation-defined-item name="overwrittenContextComponents" value="The following static context components are overwrtten/augmented: 1. Statically known namespaces: Augmented with zerr –> http://www.zorba-xquery.com/ 2. Context item static type: item() 3. Default order for empty sequences: empty_greatest 4. Static Base URI: We use the rules in 4.5, where the implementation-defined default mentioned there is http://www.zorba-xquery.com, 5. Statically known default collection type: item()*"/>
1020- <implementation-defined-item name="axes" value="All axes are supported."/>
1021- <implementation-defined-item name="defaultOrderEmpty" value="empty_greatest"/>
1022- <implementation-defined-item name="pragmas" value="No pragmas are recognized."/>
1023- <implementation-defined-item name="optionDeclarations" value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/options_and_annotations.html."/>
1024- <implementation-defined-item name="externalFunctionProtocols" value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/external_functions.html"/>
1025- <implementation-defined-item name="moduleLocationHints" value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/modules_top.html."/>
1026- <implementation-defined-item name="staticTypingExtensions" value="Static typing is not supported."/>
1027- <implementation-defined-item name="serializationInvocation" value="The result of an XQuery program can be serialized via the zorba::XQuery::execute methods (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1XQuery.html). Sequence of items can be serialized via the zorba::Serializer::serialize method (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1Serializer.html)."/>
1028- <implementation-defined-item name="serializationDefaults" value="Serialization Feature is supported. Implicit values are: byte-order-mark = no, encoding = UTF-8, media-type = '', normalization-form = '', omix-xml-declaration = no, standalone = omit, version = '1.0', method = xml, doctype-system = '', doctype-public = '', cdata-section-elements = empty list, include-content-type = no, undeclare-prefixes = no, indent = no"/>
1029- <implementation-defined-item name="externalFunctionCall" value="An error is raised using the regular error handling mechanism of zorba. The kind of error depends on the kind of failure. For example, zerr:ZXQP0008 if the function implementation is not found, or err:XPTY0004 if the result of the function does not match the declared returned type."/>
1030- <implementation-defined-item name="limits" value=""/>
1031- <implementation-defined-item name="traceDestination" value="By default, it is std:cerr. Users can modify this via the StaticContext::setTraceStream method."/>
1032- <implementation-defined-item name="integerOperations" value="Zorba raises [err:FOAR0002]"/>
1033- <implementation-defined-item name="decimalDigits" value=""/>
1034- <implementation-defined-item name="roundOrTruncate" value=""/>
1035- <implementation-defined-item name="Unicode" value="Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0."/>
1036- <implementation-defined-item name="normalizationForms" value="Zorba supports NFC, NFKC, NFD, NFKD normalization forms."/>
1037- <implementation-defined-item name="collationUnits" value=""/>
1038- <implementation-defined-item name="secondsDigits" value="Year values: Zorba supports 9 digits (32bit maxint). Fractional second: Zorba supports 6 digits."/>
1039- <implementation-defined-item name="stringToDecimal" value=""/>
1040- <implementation-defined-item name="docProcessing" value=""/>
1041- <implementation-defined-item name="weakenStable" value=""/>
1042- <implementation-defined-item name="additionalTypes" value="There are no implementation-defined types. User-defined types are created and become “in-scope” when “import schema” statements are processed. User-defined types (including anonymous types) are created within a static context and they are destroyed when their containing static context is destroyed."/>
1043- <implementation-defined-item name="undefinedProperties" value="err:FOTY0012"/>
1044- <implementation-defined-item name="sequenceNormalization" value="Zorba performs sequence normalization for the 'binary' serialization method. Zorba's Data Converters module performs sequence normalization for JSON and JSONML (but these are not serialization output methods, i.e. they cannot be invoked with the help of '-z method=JSON')"/>
1045- <implementation-defined-item name="outputMethods" value="Zorba's only implementation-defined output method is 'binary' and it is used unqualified (URI is null)."/>
1046- <implementation-defined-item name="normalizationFormBehavior" value="Zorba has no implementation-defined values for the normalization-form parameter."/>
1047- <implementation-defined-item name="additionalParams" value="Zorba has no implementation-defined serialization parameters."/>
1048- <implementation-defined-item name="encodingPhase" value="Zorba has no such option."/>
1049- <implementation-defined-item name="CDATASerialization" value="Zorba has no such mechanism."/>
1050- <implementation-defined-item name="Tokenization" value="Zorba uses ICU for word tokenization, so what ever ICU's rules are are Zorba's rules. ICU uses the 'Unicode Standard Annex #29: Unicode Text Segmentation' rules found here http://www.unicode.org/reports/tr29 ."/>
1051- <implementation-defined-item name="phrase" value="A phrase in nothing more that 1+ tokens separated by text boundaries as defined by http://www.unicode.org/reports/tr29 ."/>
1052- <implementation-defined-item name="sentence" value="Zorba uses ICU for sentence tokenization, so what ever ICU's rules are are Zorba's rules. ICU uses the 'Unicode Standard Annex #29: Unicode Text Segmentation' rules found here http://www.unicode.org/reports/tr29 ."/>
1053- <implementation-defined-item name="paragraph" value="Zorba considers XML elements to be paragraph delimiters. For example: &lt;p&gt;It was the best of times. It wat the worse of times.&lt;/p&gt; is 1 paragraph; however: &lt;p&gt;That was a &lt;b&gt;bold&lt;/b&gt; is 3 paragraphs since Zorba attaches no semantic meaning to any particular XML elements."/>
1054- <implementation-defined-item name="Markup Effect Token Boundaries" value="Markup delimits paragraphs and, by implication, sentences and tokens."/>
1055- <implementation-defined-item name="Scoring Expressions" value="Score variables are not currently supported."/>
1056- <implementation-defined-item name="Matching" value="Given the tokens: A B C they have to match: A B C exactly; no more, no less."/>
1057- <implementation-defined-item name="Match Option Order" value="Match options are applied in the following order: Stop Word Option, Stemming Option, Case Option, Diacritics Option, Wildcard Option, Language Option."/>
1058- <implementation-defined-item name="Language Option Tokenization" value="The Language Option: * Affects tokenization as performed by ICU. * Selects the stemming algorithm to be used.* Selects the default set of stop-words to be used. The Language Option does not affect any other Match Option."/>
1059- <implementation-defined-item name="Language Option Valid ID" value="Zorba recognizes the ISO 639-1 and 639-2 language identifiers for the following languages: Danish, Dutch, English, Finnish, German, Hungarian, Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish."/>
1060- <implementation-defined-item name="Language Option Undefined" value="Zorba raises err::XPTY0004 for a string that can not be cast to xs:language and err::FTST0009 for an unsupported language."/>
1061- <implementation-defined-item name="Mismatched Languages" value="xml:lang always wins."/>
1062- <implementation-defined-item name="Thesaurus Option" value="This is covered in the Zorba Full Text Thesaurus documentation, http://www.zorba-xquery.com/site2/doc/latest/zorba/html/ft_thesaurus.html"/>
1063- <implementation-defined-item name="Thesaurus Relationships" value="Unsupported thesaurus relationships are treated as no relationship. All levels are supported. When no relationship is specified, all related words are returned."/>
1064- <implementation-defined-item name="Thesaurus Levels" value="Zorba uses 2 levels by default."/>
1065- <implementation-defined-item name="Stemming Option" value="Zorba uses the publicly available Snowball stemmers found here http://snowball.tartarus.org."/>
1066- <implementation-defined-item name="Query Token In Stopword List" value="The query token is compared (case insensitively) against the list of stop words for an exact match."/>
1067- <implementation-defined-item name="StopWord Option Match Number" value="Zorba has no such conditions."/>
1068- <implementation-defined-item name="StopWord Option Default" value="For each of the supported languages, Zorba defines a set of default stop-words (too big to be listed here)."/>
1069- <implementation-defined-item name="Extension Option" value="Zorba implements no extension options."/>
1070- <implementation-defined-item name="Extension Selection" value="Zorba implements no extension pragmas."/>
1071- <implementation-defined-item name="Equal Items Different Tokens" value=""/>
1072- <implementation-defined-item name="FTIgnoreOption" value="Zorba imposes no restriction; however, the FTIgnoreOption implementation is incomplete."/>
1073- <implementation-defined-item name="Static Context Items" value=""/>
1074+ <implementation-defined-item
1075+ name="expressionUnicode"
1076+ spec="XQuery"
1077+ value="Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0.">
1078+ <description last-mod="2005-04-04">The version of Unicode that is used to construct expressions.</description>
1079+ </implementation-defined-item>
1080+
1081+ <implementation-defined-item
1082+ name="collations"
1083+ spec="XQuery"
1084+ value="http://www.w3.org/2005/xpath-functions/collation/codepoint">
1085+ <description last-mod="2005-04-04">The statically-known collations.</description>
1086+ </implementation-defined-item>
1087+
1088+ <implementation-defined-item
1089+ name="implicitTimezone"
1090+ spec="XQuery"
1091+ value="The implicit timezone is computed based on the current local time of the computer running Zorba.">
1092+ <description last-mod="2005-04-04">The implicit timezone.</description>
1093+ </implementation-defined-item>
1094+
1095+ <implementation-defined-item
1096+ name="warningsMethod"
1097+ spec="XQuery"
1098+ value="Warnings are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html and http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_warnings.html.">
1099+ <description last-mod="2005-04-04">The circumstances in which warnings are raised, and the ways in which warnings are handled.</description>
1100+ </implementation-defined-item>
1101+
1102+ <implementation-defined-item
1103+ name="errorsMethod"
1104+ spec="XQuery"
1105+ value="Errors are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html.">
1106+ <description last-mod="2005-04-04">The method by which errors are reported to the external processing environment.</description>
1107+ </implementation-defined-item>
1108+
1109+ <implementation-defined-item
1110+ name="XMLVersion"
1111+ spec="XQuery"
1112+ value="XML 1.0">
1113+ <description last-mod="2005-10-10">Whether the implementation is based on the rules of [XML 1.0] and [XML Names] or the rules of [XML 1.1] and [XML Names 1.1]. One of these sets of rules must be applied consistently by all aspects of the implementation.</description>
1114+ </implementation-defined-item>
1115+
1116+ <implementation-defined-item
1117+ name="overwrittenContextComponents"
1118+ spec="XQuery"
1119+ value="The following static context components are overwritten/augmented: 1. Statically known namespaces: Augmented with zerr –> http://www.zorba-xquery.com/errors 2. Context item static type: item() 3. Default order for empty sequences: empty_greatest 4. Static Base URI: We use the rules in 4.5, where the implementation-defined default mentioned there is http://www.zorba-xquery.com, 5. Statically known default collection type: item()*">
1120+ <description last-mod="2005-04-04">Any components of the static context or dynamic context that are overwritten or augmented by the implementation.</description>
1121+ </implementation-defined-item>
1122+
1123+ <implementation-defined-item
1124+ name="axes"
1125+ spec="XQuery"
1126+ value="All axes are supported.">
1127+ <description last-mod="2005-04-04">Which of the optional axes are supported by the implementation, if the Full-Axis Feature is not supported.</description>
1128+ </implementation-defined-item>
1129+
1130+ <implementation-defined-item
1131+ name="defaultOrderEmpty"
1132+ spec="XQuery"
1133+ value="empty_greatest">
1134+ <description last-mod="2005-04-04">The default handling of empty sequences returned by an ordering key (sortspec) in an order by clause (empty least or empty greatest).</description>
1135+ </implementation-defined-item>
1136+
1137+ <implementation-defined-item
1138+ name="pragmas"
1139+ spec="XQuery"
1140+ value="No pragmas are recognized.">
1141+ <description last-mod="2005-04-04">The names and semantics of any extension expressions (pragmas) recognized by the implementation.</description>
1142+ </implementation-defined-item>
1143+
1144+ <implementation-defined-item
1145+ name="optionDeclarations"
1146+ spec="XQuery"
1147+ value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/options_and_annotations.html.">
1148+ <description last-mod="2005-04-04">The names and semantics of any option declarations recognized by the implementation.</description>
1149+ </implementation-defined-item>
1150+
1151+ <implementation-defined-item
1152+ name="externalFunctionProtocols"
1153+ spec="XQuery"
1154+ value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/external_functions.html">
1155+ <description last-mod="2005-04-04">Protocols (if any) by which parameters can be passed to an external function, and the result of the function can returned to the invoking query.</description>
1156+ </implementation-defined-item>
1157+
1158+ <implementation-defined-item
1159+ name="moduleLocationHints"
1160+ spec="XQuery"
1161+ value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/modules_top.html.">
1162+ <description last-mod="2005-11-01">The process by which the specific modules to be imported by a module import are identified, if the Module Feature is supported (includes processing of location hints, if any.)</description>
1163+ </implementation-defined-item>
1164+
1165+ <implementation-defined-item
1166+ name="staticTypingExtensions"
1167+ spec="XQuery"
1168+ value="Static typing is not supported.">
1169+ <description last-mod="2005-04-04">Any static typing extensions supported by the implementation, if the Static Typing Feature is supported.</description>
1170+ </implementation-defined-item>
1171+
1172+ <implementation-defined-item
1173+ name="serializationInvocation"
1174+ spec="XQuery"
1175+ value="The result of an XQuery program can be serialized via the zorba::XQuery::execute methods (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1XQuery.html). Sequence of items can be serialized via the zorba::Serializer::serialize method (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1Serializer.html).">
1176+ <description last-mod="2005-04-04">The means by which serialization is invoked, if the Serialization Feature is supported.</description>
1177+ </implementation-defined-item>
1178+
1179+ <implementation-defined-item
1180+ name="serializationDefaults"
1181+ spec="XQuery"
1182+ value="Serialization Feature is supported. Implicit values are: byte-order-mark = no, encoding = UTF-8, media-type = '', normalization-form = '', omix-xml-declaration = no, standalone = omit, version = '1.0', method = xml, doctype-system = '', doctype-public = '', cdata-section-elements = empty list, include-content-type = no, undeclare-prefixes = no, indent = no">
1183+ <description last-mod="2005-10-10">The default values for the byte-order-mark, encoding, media-type, normalization-form, omit-xml-declaration, standalone, and version parameters, if the Serialization Feature is supported.</description>
1184+ </implementation-defined-item>
1185+
1186+ <implementation-defined-item
1187+ name="externalFunctionCall"
1188+ spec="XQuery"
1189+ value="An error is raised using the regular error handling mechanism of zorba. The kind of error depends on the kind of failure. For example, zerr:ZXQP0008 if the function implementation is not found, or err:XPTY0004 if the result of the function does not match the declared returned type.">
1190+ <description last-mod="2006-08-09">The result of an unsuccessful call to an external function (for example, if the function implementation cannot be found or does not return a value of the declared type).</description>
1191+ </implementation-defined-item>
1192+
1193+ <implementation-defined-item
1194+ name="limits"
1195+ spec="XQuery"
1196+ value="totalDigits = 2^63, xs:string length = available memory.">
1197+ <description last-mod="2005-11-01">Limits on ranges of values for various data types, as enumerated in 5.3 Data Model Conformance.</description>
1198+ </implementation-defined-item>
1199+
1200+ <implementation-defined-item
1201+ name="traceDestination"
1202+ spec="FuncOps"
1203+ value="By default, it is std:cerr. Users can modify this via the StaticContext::setTraceStream method.">
1204+ <description last-mod="2005-10-10">The destination of the trace output is implementation-defined. See 4 The Trace Function.</description>
1205+ </implementation-defined-item>
1206+
1207+ <implementation-defined-item
1208+ name="integerOperations"
1209+ spec="FuncOps"
1210+ value="Zorba raises [err:FOAR0002]">
1211+ <description last-mod="2005-10-10">For xs:integer operations, implementations that support limited-precision integer operations must either raise an error [err:FOAR0002] or provide an implementation-defined mechanism that allows users to choose between raising an error and returning a result that is modulo the largest representable integer value. See 6.2 Operators on Numeric Values.</description>
1212+ </implementation-defined-item>
1213+
1214+ <implementation-defined-item
1215+ name="decimalDigits"
1216+ spec="FuncOps"
1217+ value="On a 32-bit system, the number of digits of precision is 2^31; on a 64-bit system, the number of digits of precision is 2^63.">
1218+ <description last-mod="2005-11-01">For xs:decimal values the number of digits of precision returned by the numeric operators is implementation-defined. See 6.2 Operators on Numeric Values. See also 17.1.3.3 Casting to xs:decimal and 17.1.3.4 Casting to xs:integer.</description>
1219+ </implementation-defined-item>
1220+
1221+ <implementation-defined-item
1222+ name="roundOrTruncate"
1223+ spec="FuncOps"
1224+ value="It does whatever the underlying C++ implementation does.">
1225+ <description last-mod="2005-10-10">If the number of digits in the result exceeds the number of digits that the implementation supports, the result is truncated or rounded in an implementation-defined manner. See 6.2 Operators on Numeric Values. See also 17.1.3.3 Casting to xs:decimal and 17.1.3.4 Casting to xs:integer.</description>
1226+ </implementation-defined-item>
1227+
1228+ <implementation-defined-item
1229+ name="Unicode"
1230+ spec="FuncOps"
1231+ value="Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0.">
1232+ <description last-mod="2005-11-01">It is implementation-defined which version of Unicode is supported by the features defined in this specification, but it is recommended that the most recent version of Unicode be used. See 7.1 String Types.</description>
1233+ </implementation-defined-item>
1234+
1235+ <implementation-defined-item
1236+ name="normalizationForms"
1237+ spec="FuncOps"
1238+ value="Zorba supports NFC, NFKC, NFD, NFKD normalization forms.">
1239+ <description last-mod="2005-10-10">For 7.4.6 fn:normalize-unicode, conforming implementations must support normalization form "NFC" and may support normalization forms "NFD", "NFKC", "NFKD", "FULLY-NORMALIZED". They may also support other normalization forms with implementation-defined semantics.</description>
1240+ </implementation-defined-item>
1241+
1242+ <implementation-defined-item
1243+ name="collationUnits"
1244+ spec="FuncOps"
1245+ value="Zorba does not support this.">
1246+ <description last-mod="2005-10-10">The ability to decompose strings into collation units suitable for substring matching is an implementation-defined property of a collation. See 7.5 Functions Based on Substring Matching.</description>
1247+ </implementation-defined-item>
1248+
1249+ <implementation-defined-item
1250+ name="secondsDigits"
1251+ spec="FuncOps"
1252+ value="Year values: Zorba supports 9 digits (32bit maxint). Fractional second: Zorba supports 6 digits.">
1253+ <description last-mod="2005-10-10">All minimally conforming processors must support year values with a minimum of 4 digits (i.e., YYYY) and a minimum fractional second precision of 1 millisecond or three digits (i.e., s.sss). However, conforming processors may set larger implementation-defined limits on the maximum number of digits they support in these two situations. See 10.1.1 Limits and Precision.</description>
1254+ </implementation-defined-item>
1255+
1256+ <implementation-defined-item
1257+ name="stringToDecimal"
1258+ spec="FuncOps"
1259+ value="On a 32-bit system, the number of digits of precision is 2^31; on a 64-bit system, the number of digits of precision is 2^63.">
1260+ <description last-mod="2006-08-09">The result of casting a string to xs:decimal, when the resulting value is not too large or too small but nevertheless has too many decimal digits to be accurately represented, is implementation-defined. See 17.1.1 Casting from xs:string and xs:untypedAtomic.</description>
1261+ </implementation-defined-item>
1262+
1263+ <implementation-defined-item
1264+ name="docProcessing"
1265+ spec="FuncOps"
1266+ value="Zorba provides no configuration options for 15.5.4 fn:doc.">
1267+ <description last-mod="2005-10-10">Various aspects of the processing provided by 15.5.4 fn:doc are implementation-defined. Implementations may provide external configuration options that allow any aspect of the processing to be controlled by the user.</description>
1268+ </implementation-defined-item>
1269+
1270+ <implementation-defined-item
1271+ name="weakenStable"
1272+ spec="FuncOps"
1273+ value="Zorba provides no options to weaken the stable characteristics of 15.5.6 fn:collection or 15.5.4 fn:doc.">
1274+ <description last-mod="2006-08-09">The manner in which implementations provide options to weaken the stable characteristic of 15.5.6 fn:collection and 15.5.4 fn:doc are implementation-defined.</description>
1275+ </implementation-defined-item>
1276+
1277+ <implementation-defined-item
1278+ name="additionalTypes"
1279+ spec="DataModel"
1280+ value="There are no implementation-defined types. User-defined types are created and become “in-scope” when “import schema” statements are processed. User-defined types (including anonymous types) are created within a static context and they are destroyed when their containing static context is destroyed.">
1281+ <description last-mod="2005-04-04">Support for additional user-defined or implementation-defined types is implementation-defined. (See 2.6.1 Representation of Types)</description>
1282+ </implementation-defined-item>
1283+
1284+ <implementation-defined-item
1285+ name="undefinedProperties"
1286+ spec="DataModel"
1287+ value="err:FOTY0012">
1288+ <description last-mod="2005-04-04">Some typed values in the data model are undefined. Attempting to access an undefined property is always an error. Behavior in these cases is implementation-defined and the host language is responsible for determining the result. (See 5 Accessors)</description>
1289+ </implementation-defined-item>
1290+
1291+ <implementation-defined-item
1292+ name="sequenceNormalization"
1293+ spec="Serialization"
1294+ value="Zorba performs sequence normalization for the 'binary' serialization method. Zorba's Data Converters module performs sequence normalization for JSON and JSONML (but these are not serialization output methods, i.e. they cannot be invoked with the help of '-z method=JSON')">
1295+ <description last-mod="2005-04-04">For any implementation-defined output method, it is implementation-defined whether sequence normalization process takes place. (See 2 Sequence Normalization)</description>
1296+ </implementation-defined-item>
1297+
1298+ <implementation-defined-item
1299+ name="outputMethods"
1300+ spec="Serialization"
1301+ value="Zorba's only implementation-defined output method is 'binary' and it is used unqualified (URI is null).">
1302+ <description last-mod="2005-04-04">If the namespace URI is non-null for the method serialization parameter, then the parameter specifies an implementation-defined output method. (See 3 Serialization Parameters)</description>
1303+ </implementation-defined-item>
1304+
1305+ <implementation-defined-item
1306+ name="normalizationFormBehavior"
1307+ spec="Serialization"
1308+ value="Zorba has no implementation-defined values for the normalization-form parameter.">
1309+ <description last-mod="2005-04-04">If the value of the normalization-form form parameter is not NFC, NFD, NFKC, NFKD, fully-normalized, or none then the meaning of the value and it's effect is implementation-defined. (See 4 Phases of Serialization)</description>
1310+ </implementation-defined-item>
1311+
1312+ <implementation-defined-item
1313+ name="additionalParams"
1314+ spec="Serialization"
1315+ value="Zorba has no implementation-defined serialization parameters.">
1316+ <description last-mod="2005-11-01">The effect of additional serialization parameters on the output of the serializer, where the name of such a parameter must be namespace-qualified, is implementation-defined or implementation-dependent. The extent of this effect on the output must not override the provisions of this specification. (See 3 Serialization Parameters)</description>
1317+ </implementation-defined-item>
1318+
1319+ <implementation-defined-item
1320+ name="encodingPhase"
1321+ spec="Serialization"
1322+ value="Zorba has no such option.">
1323+ <description last-mod="2005-04-04">The effect of providing an option that allows the encoding phase to be skipped, so that the result of serialization is a stream of Unicode characters, is implementation-defined. The serializer is not required to support such an option. (See 4 Phases of Serialization)</description>
1324+ </implementation-defined-item>
1325+
1326+ <implementation-defined-item
1327+ name="CDATASerialization"
1328+ spec="Serialization"
1329+ value="Input CDATA sections are treated and serialized as text. Text nodes can be serialized as cdata sections if explicitly requested through the cdata-section-elements parameter.">
1330+ <description last-mod="2005-04-04">An serializer may provide an implementation-defined mechanism to place CDATA sections in the result tree. (See 5.1.4 XML Output Method: the cdata-section-elements Parameter)</description>
1331+ </implementation-defined-item>
1332+
1333+ <implementation-defined-item
1334+ name="Tokenization"
1335+ spec="XQueryFullText"
1336+ value="Zorba uses ICU for word tokenization, so what ever ICU's rules are are Zorba's rules. ICU uses the 'Unicode Standard Annex #29: Unicode Text Segmentation' rules found here http://www.unicode.org/reports/tr29 .">
1337+ <description last-mod="2010-09-17">Tokenization, including the definition of the term "tokens", SHOULD be implementation-defined. Implementations SHOULD expose the rules and sample results of tokenization as much as possible to enable users to predict and interpret the results of tokenization.</description>
1338+ </implementation-defined-item>
1339+
1340+ <implementation-defined-item
1341+ name="phrase"
1342+ spec="XQueryFullText"
1343+ value="A phrase in nothing more that 1+ tokens separated by text boundaries as defined by http://www.unicode.org/reports/tr29 .">
1344+ <description last-mod="2008-02-18">A phrase is an ordered sequence of any number of tokens. Beyond that, phrases are implementation-defined.</description>
1345+ </implementation-defined-item>
1346+
1347+ <implementation-defined-item
1348+ name="sentence"
1349+ spec="XQueryFullText"
1350+ value="Zorba uses ICU for sentence tokenization, so what ever ICU's rules are are Zorba's rules. ICU uses the 'Unicode Standard Annex #29: Unicode Text Segmentation' rules found here http://www.unicode.org/reports/tr29 .">
1351+ <description last-mod="2010-09-16">A sentence is an ordered sequence of any number of tokens. Beyond that, sentences are implementation-defined. An implementation is not required to support sentences.</description>
1352+ </implementation-defined-item>
1353+
1354+ <implementation-defined-item
1355+ name="paragraph"
1356+ spec="XQueryFullText"
1357+ value="Zorba considers XML elements to be paragraph delimiters. For example: &lt;p&gt;It was the best of times. It wat the worse of times.&lt;/p&gt; is 1 paragraph; however: &lt;p&gt;That was a &lt;b&gt;bold&lt;/b&gt; is 3 paragraphs since Zorba attaches no semantic meaning to any particular XML elements.">
1358+ <description last-mod="2010-09-16">A paragraph is an ordered sequence of any number of tokens. Beyond that, paragraphs are implementation-defined. An implementation is not required to support paragraphs.</description>
1359+ </implementation-defined-item>
1360+
1361+ <implementation-defined-item
1362+ name="Markup Effect Token Boundaries"
1363+ spec="XQueryFullText"
1364+ value="Markup delimits paragraphs and, by implication, sentences and tokens.">
1365+ <description last-mod="2010-09-16">Implementations are free to provide implementation-defined ways to differentiate between markup's effect on token boundaries during tokenization.</description>
1366+ </implementation-defined-item>
1367+
1368+ <implementation-defined-item
1369+ name="Scoring Expressions"
1370+ spec="XQueryFullText"
1371+ value="Score variables are not currently supported.">
1372+ <description last-mod="2010-09-16">The set of expressions (of form ExprSingle) that can be assigned to a score variable in a let-clause is implementation-defined. The result of passing an expression to the scoring algorithm that it does not support is implementation-defined.</description>
1373+ </implementation-defined-item>
1374+
1375+ <implementation-defined-item
1376+ name="Matching"
1377+ spec="XQueryFullText"
1378+ value="Given the tokens: A B C they have to match: A B C exactly; no more, no less.">
1379+ <description last-mod="2010-09-17">When a sequence of query tokens is considered as a phrase, it matches a sequence of tokens in the tokenized form of the text being searched only if the two sequences correspond in an implementation-defined way.</description>
1380+ </implementation-defined-item>
1381+
1382+ <implementation-defined-item
1383+ name="Match Option Order"
1384+ spec="XQueryFullText"
1385+ value="Match options are applied in the following order: Stop Word Option, Stemming Option, Case Option, Diacritics Option, Wildcard Option, Language Option.">
1386+ <description last-mod="2010-09-16">The match option application order, subject to the stated constraints, is implementation-defined.</description>
1387+ </implementation-defined-item>
1388+
1389+ <implementation-defined-item
1390+ name="Language Option Tokenization"
1391+ spec="XQueryFullText"
1392+ value="The Language Option: * Affects tokenization as performed by ICU. * Selects the stemming algorithm to be used.* Selects the default set of stop-words to be used. The Language Option does not affect any other Match Option.">
1393+ <description last-mod="2010-09-16">The "language" option influences tokenization, stemming, and stop words in an implementation-defined way. It MAY influence the behavior of other match options in an implementation-defined way.</description>
1394+ </implementation-defined-item>
1395+
1396+ <implementation-defined-item
1397+ name="Language Option Valid ID"
1398+ spec="XQueryFullText"
1399+ value="Zorba recognizes the ISO 639-1 and 639-2 language identifiers for the following languages: Danish, Dutch, English, Finnish, German, Hungarian, Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Turkish.">
1400+ <description last-mod="2010-09-16">The set of valid language identifiers is implementation-defined.</description>
1401+ </implementation-defined-item>
1402+
1403+ <implementation-defined-item
1404+ name="Language Option Undefined"
1405+ spec="XQueryFullText"
1406+ value="Zorba raises err::XPTY0004 for a string that can not be cast to xs:language and err::FTST0009 for an unsupported language.">
1407+ <description last-mod="2010-09-17">If an invalid language identifier is specified, then the behavior is implementation-defined.</description>
1408+ </implementation-defined-item>
1409+
1410+ <implementation-defined-item
1411+ name="Mismatched Languages"
1412+ spec="XQueryFullText"
1413+ value="xml:lang always wins.">
1414+ <description last-mod="2010-09-17">When a processor evaluates text in a document that is governed by an xml:lang attribute and the portion of the full-text query doing that evaluation contains an FTLanguageOption that specifies a different language from the language specified by the governing xml:lang attribute, the language-related behavior of that full-text query is implementation-defined.</description>
1415+ </implementation-defined-item>
1416+
1417+ <implementation-defined-item
1418+ name="Thesaurus Option"
1419+ spec="XQueryFullText"
1420+ value="This is covered in the Zorba Full Text Thesaurus documentation, http://www.zorba-xquery.com/site2/doc/latest/zorba/html/ft_thesaurus.html">
1421+ <description last-mod="2010-09-16">It is implementation-defined which thesaurus relationships an implementation supports.</description>
1422+ </implementation-defined-item>
1423+
1424+ <implementation-defined-item
1425+ name="Thesaurus Relationships"
1426+ spec="XQueryFullText"
1427+ value="Unsupported thesaurus relationships are treated as no relationship. All levels are supported. When no relationship is specified, all related words are returned.">
1428+ <description last-mod="2010-09-17">If a query specifies thesaurus relationships or levels not supported by the thesaurus, or does not specify a relationship, the behavior is implementation-defined.</description>
1429+ </implementation-defined-item>
1430+
1431+ <implementation-defined-item
1432+ name="Thesaurus Levels"
1433+ spec="XQueryFullText"
1434+ value="Zorba uses 2 levels by default.">
1435+ <description last-mod="2011-01-04">If a query does not specify the number of levels, and the implementation does not follow the default of querying all levels of hierarchical relationships, then the number of levels of hierarchical relationships queries is implementation-defined.</description>
1436+ </implementation-defined-item>
1437+
1438+ <implementation-defined-item
1439+ name="Stemming Option"
1440+ spec="XQueryFullText"
1441+ value="Zorba uses the publicly available Snowball stemmers found here http://snowball.tartarus.org.">
1442+ <description last-mod="2010-09-16">It is implementation-defined what a stem of a token is and whether stemming will based on an algorithm, dictionary, or mixed approach.</description>
1443+ </implementation-defined-item>
1444+
1445+ <implementation-defined-item
1446+ name="Query Token In Stopword List"
1447+ spec="XQueryFullText"
1448+ value="The query token is compared (case insensitively) against the list of stop words for an exact match.">
1449+ <description last-mod="2010-09-16">An implementation-defined comparison is used to determine whether a query token appears in the collection of stop words defined by the applicable stop word option.</description>
1450+ </implementation-defined-item>
1451+
1452+ <implementation-defined-item
1453+ name="StopWord Option Match Number"
1454+ spec="XQueryFullText"
1455+ value="Zorba has no such conditions.">
1456+ <description last-mod="2010-09-17">Normally a stop word matches exactly one token, but there may be implementation-defined conditions, under which a stop word may match a different number of tokens.</description>
1457+ </implementation-defined-item>
1458+
1459+ <implementation-defined-item
1460+ name="StopWord Option Default"
1461+ spec="XQueryFullText"
1462+ value="For each of the supported languages, Zorba defines a set of default stop-words (too big to be listed here).">
1463+ <description last-mod="2010-09-17">The "stop words default" option specifies that an implementation-defined collection of stop words is used.</description>
1464+ </implementation-defined-item>
1465+
1466+ <implementation-defined-item
1467+ name="Extension Option"
1468+ spec="XQueryFullText"
1469+ value="Zorba implements no extension options.">
1470+ <description last-mod="2010-09-17">An implementation recognizes an implementation-defined set of namespace URIs used to denote extension options. The effect of each, including its error behavior, is implementation-defined.</description>
1471+ </implementation-defined-item>
1472+
1473+ <implementation-defined-item
1474+ name="Extension Selection"
1475+ spec="XQueryFullText"
1476+ value="Zorba implements no extension pragmas.">
1477+ <description last-mod="2010-09-17">An implementation recognizes an implementation-defined set of namespace URIs used to denote extension selection pragmas. The effect of each, including its error behavior, is implementation-defined.</description>
1478+ </implementation-defined-item>
1479+
1480+ <implementation-defined-item
1481+ name="Equal Items Different Tokens"
1482+ spec="XQueryFullText"
1483+ value="If items are equal, the tokens will also be equal.">
1484+ <description last-mod="2010-09-16">The conditions under which tokenization of two equal items produces different tokens is implementation-defined.</description>
1485+ </implementation-defined-item>
1486+
1487+ <implementation-defined-item
1488+ name="FTIgnoreOption"
1489+ spec="XQueryFullText"
1490+ value="Zorba imposes no restriction; however, the FTIgnoreOption implementation is incomplete.">
1491+ <description last-mod="2010-09-17">An implementation may impose an implementation-defined restriction on the operand of FTIgnoreOption.</description>
1492+ </implementation-defined-item>
1493+
1494+ <implementation-defined-item
1495+ name="Static Context Items"
1496+ spec="XQueryFullText"
1497+ value="FTThesaurusOption has no default value. FTLanguageOption is set to whatever the host's language is. Statically known languages: The ISO 639-1 codes are: da, de, en, es, fi, hu, it, nl, no, pt, sv, ru.">
1498+ <description last-mod="2010-09-17">For certain full-text components of the static context (see C Static Context Components), the default initial value of the component can be overwritten or augmented with an implementation-defined value or values.</description>
1499+ </implementation-defined-item>
1500+
1501 </implementation-defined-items>
1502
1503+
1504 <features>
1505- <feature name="Minimal Conformance" supported='true' />
1506- <feature name="FTMildNot Operator" supported='true' />
1507- <feature name="FTUnaryNot Operator" supported='true' />
1508- <feature name="FTUnit and FTBigUnit" supported='true' />
1509- <feature name="FTOrder Operator" supported='true' />
1510- <feature name="FTScope Operator" supported='true' />
1511- <feature name="FTWindow Operator" supported='true' />
1512- <feature name="FTDistance Operator" supported='true' />
1513- <feature name="FTTimes Operator" supported='true' />
1514- <feature name="FTContent Operator" supported='true' />
1515- <feature name="FTCaseOption" supported='true' />
1516- <feature name="FTStopwordOption" supported='true' />
1517- <feature name="FTLanguageOption" supported='true' />
1518- <feature name="FTIgnoreOption" supported='false' />
1519- <feature name="Scoring" supported='false' />
1520- <feature name="Weights" supported='false' />
1521+ <feature
1522+ name="Minimal Conformance"
1523+ supported='true' />
1524+
1525+ <feature
1526+ name="FTMildNot Operator"
1527+ supported='true' />
1528+
1529+ <feature
1530+ name="FTUnaryNot Operator"
1531+ supported='true' />
1532+
1533+ <feature
1534+ name="FTUnit and FTBigUnit"
1535+ supported='true' />
1536+
1537+ <feature
1538+ name="FTOrder Operator"
1539+ supported='true' />
1540+
1541+ <feature
1542+ name="FTScope Operator"
1543+ supported='true' />
1544+
1545+ <feature
1546+ name="FTWindow Operator"
1547+ supported='true' />
1548+
1549+ <feature
1550+ name="FTDistance Operator"
1551+ supported='true' />
1552+
1553+ <feature
1554+ name="FTTimes Operator"
1555+ supported='true' />
1556+
1557+ <feature
1558+ name="FTContent Operator"
1559+ supported='true' />
1560+
1561+ <feature
1562+ name="FTCaseOption"
1563+ supported='true' />
1564+
1565+ <feature
1566+ name="FTStopwordOption"
1567+ supported='true' />
1568+
1569+ <feature
1570+ name="FTLanguageOption"
1571+ supported='true' />
1572+
1573+ <feature
1574+ name="FTIgnoreOption"
1575+ supported='false' />
1576+
1577+ <feature
1578+ name="Scoring"
1579+ supported='false' />
1580+
1581+ <feature
1582+ name="Weights"
1583+ supported='false' />
1584+
1585 </features>
1586
1587 <context-properties>
1588- <context-property name="Statically known namespaces" context-type="static" value="fn –> http://www.w3.org/2005/xpath-functions, xml –> http://www.w3.org/XML/1998/namespace, xs –> http://www.w3.org/2001/XMLSchema, xsi –> http://www.w3.org/2001/XMLSchema-instance, local –> http://www.w3.org/2005/xquery-local-functions, zerr –> http://www.zorba-xquery.com/"/>
1589- <context-property name="Default element/type namespace" context-type="static" value="None."/>
1590- <context-property name="Default function namespace" context-type="static" value="http://www.w3.org/2005/xpath-functions ."/>
1591- <context-property name="In-scope schema types" context-type="static" value="Built-in types in xs."/>
1592- <context-property name="In-scope element declarations" context-type="static" value="None."/>
1593- <context-property name="In-scope attribute declarations" context-type="static" value="None."/>
1594- <context-property name="In-scope variables" context-type="static" value="None."/>
1595- <context-property name="Context item static type" context-type="static" value="item()"/>
1596- <context-property name="Function signatures" context-type="static" value="Functions in fn namespace, and constructors for built-in atomic types."/>
1597- <context-property name="Statically known collations" context-type="static" value="http://www.w3.org/2005/xpath-functions/collation/codepoint"/>
1598- <context-property name="Default collation" context-type="static" value="http://www.w3.org/2005/xpath-functions/collation/codepoint"/>
1599- <context-property name="Construction mode" context-type="static" value="preserve"/>
1600- <context-property name="Ordering mode" context-type="static" value="ordered"/>
1601- <context-property name="Default order for empty sequences" context-type="static" value="empty greatest"/>
1602- <context-property name="Boundary-space policy" context-type="static" value="strip"/>
1603- <context-property name="Copy-namespaces mode" context-type="static" value="inherit preserve"/>
1604- <context-property name="Base URI" context-type="static" value="Uses the rules in http://www.w3.org/TR/xquery-30/#id-base-uri-decl, where the implementation-defined default mentioned there is http://www.zorba-xquery.com"/>
1605- <context-property name="Statically known documents" context-type="static" value="None."/>
1606- <context-property name="Statically known collections" context-type="static" value="None."/>
1607- <context-property name="Statically known default collection type" context-type="static" value="item()*"/>
1608- <context-property name="Context item" context-type="dynamic" value="None. Before execution of a query, a value can be assigned to the context itemvia the DynamicContext::setContextItem method."/>
1609- <context-property name="Context position" context-type="dynamic" value="None."/>
1610- <context-property name="Context size" context-type="dynamic" value="None."/>
1611- <context-property name="Variable values" context-type="dynamic" value="None."/>
1612- <context-property name="Function implementations" context-type="dynamic" value="Functions in fn namespace, and constructors for built-in atomic types."/>
1613- <context-property name="Current dateTime" context-type="dynamic" value="The current local time on the computer running Zorba."/>
1614- <context-property name="Implicit timezone" context-type="dynamic" value="Computed based on the current local time on the computer running Zorba."/>
1615- <context-property name="Available documents" context-type="dynamic" value="The URIs returned by the availale-documents function of module http://www.zorba-xquery.com/modules/store/dynamic/documents (see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_store_dynamic_documents.html)"/>
1616- <context-property name="Available collections" context-type="dynamic" value="The URIs returned by the availale-collections function of module http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl (see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_store_dynamic_collections_w3c_ddl.html)"/>
1617- <context-property name="Default collection" context-type="dynamic" value="None."/>
1618- <context-property name="FTCaseOption" context-type="static" value=""/>
1619- <context-property name="FTDiacriticsOption" context-type="static" value=""/>
1620- <context-property name="FTStemOption" context-type="static" value=""/>
1621- <context-property name="FTThesaurusOption" context-type="static" value=""/>
1622- <context-property name="Statically known thesauri" context-type="static" value="http://wordnet.princeton.edu/"/>
1623- <context-property name="FTStopWordOption" context-type="static" value=""/>
1624- <context-property name="Statically known stop word lists" context-type="static" value="Zorba uses the publicly available lists found here http://snowball.tartarus.org."/>
1625- <context-property name="FTLanguageOption" context-type="static" value=""/>
1626- <context-property name="Statically known languages" context-type="static" value=""/>
1627- <context-property name="FTWildcardOption" context-type="static" value=""/>
1628+ <context-property
1629+ spec="XQuery"
1630+ name="Statically known namespaces"
1631+ context-type="static"
1632+ value="fn –> http://www.w3.org/2005/xpath-functions, xml –> http://www.w3.org/XML/1998/namespace, xs –> http://www.w3.org/2001/XMLSchema, xsi –> http://www.w3.org/2001/XMLSchema-instance, local –> http://www.w3.org/2005/xquery-local-functions, zerr –> http://www.zorba-xquery.com/errors"/>
1633+
1634+ <context-property
1635+ spec="XQuery"
1636+ name="Default element/type namespace"
1637+ context-type="static"
1638+ value="None."/>
1639+
1640+ <context-property
1641+ spec="XQuery"
1642+ name="Default function namespace"
1643+ context-type="static"
1644+ value="http://www.w3.org/2005/xpath-functions ."/>
1645+
1646+ <context-property
1647+ spec="XQuery"
1648+ name="In-scope schema types"
1649+ context-type="static"
1650+ value="Built-in types in xs."/>
1651+
1652+ <context-property
1653+ spec="XQuery"
1654+ name="In-scope element declarations"
1655+ context-type="static"
1656+ value="None."/>
1657+
1658+ <context-property
1659+ spec="XQuery"
1660+ name="In-scope attribute declarations"
1661+ context-type="static"
1662+ value="None."/>
1663+
1664+ <context-property
1665+ spec="XQuery"
1666+ name="In-scope variables"
1667+ context-type="static"
1668+ value="None."/>
1669+
1670+ <context-property
1671+ spec="XQuery"
1672+ name="Context item static type"
1673+ context-type="static"
1674+ value="item()"/>
1675+
1676+ <context-property
1677+ spec="XQuery"
1678+ name="Function signatures"
1679+ context-type="static"
1680+ value="Functions in fn namespace, and constructors for built-in atomic types."/>
1681+
1682+ <context-property
1683+ spec="XQuery"
1684+ name="Statically known collations"
1685+ context-type="static"
1686+ value="Initially, the only available collation is the codepoint collection: http://www.w3.org/2005/xpath-functions/collation/codepoint. More collations can be added to a static context via the StaticContext::addCollation() method of the C++ API."/>
1687+
1688+ <context-property
1689+ spec="XQuery"
1690+ name="Default collation"
1691+ context-type="static"
1692+ value="http://www.w3.org/2005/xpath-functions/collation/codepoint"/>
1693+
1694+ <context-property
1695+ spec="XQuery"
1696+ name="Construction mode"
1697+ context-type="static"
1698+ value="preserve"/>
1699+
1700+ <context-property
1701+ spec="XQuery"
1702+ name="Ordering mode"
1703+ context-type="static"
1704+ value="ordered"/>
1705+
1706+ <context-property
1707+ spec="XQuery"
1708+ name="Default order for empty sequences"
1709+ context-type="static"
1710+ value="empty greatest"/>
1711+
1712+ <context-property
1713+ spec="XQuery"
1714+ name="Boundary-space policy"
1715+ context-type="static"
1716+ value="strip"/>
1717+
1718+ <context-property
1719+ spec="XQuery"
1720+ name="Copy-namespaces mode"
1721+ context-type="static"
1722+ value="inherit preserve"/>
1723+
1724+ <context-property
1725+ spec="XQuery"
1726+ name="Base URI"
1727+ context-type="static"
1728+ value="Uses the rules in http://www.w3.org/TR/xquery-30/#id-base-uri-decl, where the implementation-defined default mentioned there is http://www.zorba-xquery.com"/>
1729+
1730+ <context-property
1731+ spec="XQuery"
1732+ name="Statically known documents"
1733+ context-type="static"
1734+ value="None."/>
1735+
1736+ <context-property
1737+ spec="XQuery"
1738+ name="Statically known collections"
1739+ context-type="static"
1740+ value="None."/>
1741+
1742+ <context-property
1743+ spec="XQuery"
1744+ name="Statically known default collection type"
1745+ context-type="static"
1746+ value="item()*"/>
1747+
1748+ <context-property
1749+ spec="XQuery"
1750+ name="Context item"
1751+ context-type="dynamic"
1752+ value="None. Before execution of a query, a value can be assigned to the context item via the DynamicContext::setContextItem method."/>
1753+
1754+ <context-property
1755+ spec="XQuery"
1756+ name="Context position"
1757+ context-type="dynamic"
1758+ value="None."/>
1759+
1760+ <context-property
1761+ spec="XQuery"
1762+ name="Context size"
1763+ context-type="dynamic"
1764+ value="None."/>
1765+
1766+ <context-property
1767+ spec="XQuery"
1768+ name="Variable values"
1769+ context-type="dynamic"
1770+ value="None."/>
1771+
1772+ <context-property
1773+ spec="XQuery"
1774+ name="Function implementations"
1775+ context-type="dynamic"
1776+ value="Functions in fn namespace, and constructors for built-in atomic types."/>
1777+
1778+ <context-property
1779+ spec="XQuery"
1780+ name="Current dateTime"
1781+ context-type="dynamic"
1782+ value="The current local time (when the XQuery execution is actually started) on the computer running Zorba."/>
1783+
1784+ <context-property
1785+ spec="XQuery"
1786+ name="Implicit timezone"
1787+ context-type="dynamic"
1788+ value="Computed based on the current local time on the computer running Zorba."/>
1789+
1790+ <context-property
1791+ spec="XQuery"
1792+ name="Available documents"
1793+ context-type="dynamic"
1794+ value="The URIs returned by the availale-documents function of module http://www.zorba-xquery.com/modules/store/dynamic/documents (see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_store_dynamic_documents.html)"/>
1795+
1796+ <context-property
1797+ spec="XQuery"
1798+ name="Available collections"
1799+ context-type="dynamic"
1800+ value="The URIs returned by the available-collections function of module http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl (see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_store_dynamic_collections_w3c_ddl.html)"/>
1801+
1802+ <context-property
1803+ spec="XQuery"
1804+ name="Default collection"
1805+ context-type="dynamic"
1806+ value="None."/>
1807+
1808+ <context-property
1809+ spec="XQueryFullText"
1810+ name="FTCaseOption"
1811+ context-type="static"
1812+ value="case insensitive"/>
1813+
1814+ <context-property
1815+ spec="XQueryFullText"
1816+ name="FTDiacriticsOption"
1817+ context-type="static"
1818+ value="diacritics insensitive"/>
1819+
1820+ <context-property
1821+ spec="XQueryFullText"
1822+ name="FTStemOption"
1823+ context-type="static"
1824+ value="no stemming"/>
1825+
1826+ <context-property
1827+ spec="XQueryFullText"
1828+ name="FTThesaurusOption"
1829+ context-type="static"
1830+ value=""/>
1831+
1832+ <context-property
1833+ spec="XQueryFullText"
1834+ name="Statically known thesauri"
1835+ context-type="static"
1836+ value="http://wordnet.princeton.edu/"/>
1837+
1838+ <context-property
1839+ spec="XQueryFullText"
1840+ name="FTStopWordOption"
1841+ context-type="static"
1842+ value="no stop words"/>
1843+
1844+ <context-property
1845+ spec="XQueryFullText"
1846+ name="Statically known stop word lists"
1847+ context-type="static"
1848+ value="Zorba uses the publicly available lists found here http://snowball.tartarus.org."/>
1849+
1850+ <context-property
1851+ spec="XQueryFullText"
1852+ name="FTLanguageOption"
1853+ context-type="static"
1854+ value="Whatever the host's language is."/>
1855+
1856+ <context-property
1857+ spec="XQueryFullText"
1858+ name="Statically known languages"
1859+ context-type="static"
1860+ value="The ISO 639-1 codes are: da, de, en, es, fi, hu, it, nl, no, pt, sv, ru."/>
1861+
1862+ <context-property
1863+ spec="XQueryFullText"
1864+ name="FTWildcardOption"
1865+ context-type="static"
1866+ value="no wildcards "/>
1867+
1868 </context-properties>
1869+
1870 </zorba>
1871
1872=== modified file 'test/rbkt/Scripts/w3c/XQTS.xml'
1873--- test/rbkt/Scripts/w3c/XQTS.xml 2011-09-22 16:08:42 +0000
1874+++ test/rbkt/Scripts/w3c/XQTS.xml 2011-10-05 20:32:28 +0000
1875@@ -1,273 +1,450 @@
1876 <?xml version="1.0" encoding="UTF-8"?>
1877 <zorba xmlns="http://www.w3.org/2005/02/query-test-XQTSResult">
1878 <implementation-defined-items>
1879-
1880 <implementation-defined-item
1881 name="expressionUnicode"
1882- value="Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0."/>
1883-
1884- <implementation-defined-item
1885- name="collations"
1886- value="Initially, the only available collation is the codepoint collection: http://www.w3.org/2005/xpath-functions/collation/codepoint. More collations can be added to a static context via the StaticContext::addCollation() method of the C++ API."/>
1887-
1888- <implementation-defined-item
1889- name="implicitTimezone"
1890- value="The implicit timezone is computed based on the current local time of the computer running Zorba."/>
1891-
1892- <implementation-defined-item
1893- name="warningsMethod"
1894- value="Warnings are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html. For the list of all warnings, see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_warnings.html"/>
1895-
1896- <implementation-defined-item
1897- name="errorsMethod"
1898- value="Errors are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html."/>
1899-
1900- <implementation-defined-item
1901- name="XMLVersion"
1902- value="XML 1.0"/>
1903-
1904- <implementation-defined-item
1905- name="overwrittenContextComponents"
1906- value="The following static context components are overwrtten/augmented: 1. Statically known namespaces: Augmented with zerr –> http://www.zorba-xquery.com/errors 2. Context item static type: item() 3. Default order for empty sequences: empty_greatest 4. Static Base URI: We use the rules in 4.5, where the implementation-defined default mentioned there is http://www.zorba-xquery.com, 5. Statically known default collection type: item()*"/>
1907-
1908- <implementation-defined-item
1909- name="axes"
1910- value="All axes are supported"/>
1911-
1912- <implementation-defined-item
1913- name="defaultOrderEmpty"
1914- value="empty_greatest"/>
1915-
1916- <implementation-defined-item
1917- name="pragmas"
1918- value="No pragmas are recognized."/>
1919-
1920- <implementation-defined-item
1921- name="optionDeclarations"
1922- value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/options_and_annotations.html."/>
1923-
1924- <implementation-defined-item
1925- name="externalFunctionProtocols"
1926- value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/external_functions.html."/>
1927-
1928- <implementation-defined-item
1929- name="moduleLocationHints"
1930- value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/modules_top.html."/>
1931-
1932- <implementation-defined-item
1933- name="staticTypingExtensions"
1934- value="Static typing is not supported."/>
1935-
1936- <implementation-defined-item
1937- name="serializationInvocation"
1938- value="The result of an XQuery program can be serialized via the zorba::XQuery::execute methods (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1XQuery.html). Sequence of items can be serialized via the zorba::Serializer::serialize method (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1Serializer.html)."/>
1939-
1940+ spec="XQuery"
1941+ value="Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0.">
1942+ <description last-mod="2005-04-04">The version of Unicode that is used to construct expressions.</description>
1943+ </implementation-defined-item>
1944+
1945+ <implementation-defined-item
1946+ name="collations"
1947+ spec="XQuery"
1948+ value="http://www.w3.org/2005/xpath-functions/collation/codepoint">
1949+ <description last-mod="2005-04-04">The statically-known collations.</description>
1950+ </implementation-defined-item>
1951+
1952+ <implementation-defined-item
1953+ name="implicitTimezone"
1954+ spec="XQuery"
1955+ value="The implicit timezone is computed based on the current local time of the computer running Zorba.">
1956+ <description last-mod="2005-04-04">The implicit timezone.</description>
1957+ </implementation-defined-item>
1958+
1959+ <implementation-defined-item
1960+ name="warningsMethod"
1961+ spec="XQuery"
1962+ value="Warnings are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html and http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_warnings.html.">
1963+ <description last-mod="2005-04-04">The circumstances in which warnings are raised, and the ways in which warnings are handled.</description>
1964+ </implementation-defined-item>
1965+
1966+ <implementation-defined-item
1967+ name="errorsMethod"
1968+ spec="XQuery"
1969+ value="Errors are handled via instances of the zorba::DiagnosticHandler class. For details, see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1DiagnosticHandler.html.">
1970+ <description last-mod="2005-04-04">The method by which errors are reported to the external processing environment.</description>
1971+ </implementation-defined-item>
1972+
1973+ <implementation-defined-item
1974+ name="XMLVersion"
1975+ spec="XQuery"
1976+ value="XML 1.0">
1977+ <description last-mod="2005-10-10">Whether the implementation is based on the rules of [XML 1.0] and [XML Names] or the rules of [XML 1.1] and [XML Names 1.1]. One of these sets of rules must be applied consistently by all aspects of the implementation.</description>
1978+ </implementation-defined-item>
1979+
1980+ <implementation-defined-item
1981+ name="overwrittenContextComponents"
1982+ spec="XQuery"
1983+ value="The following static context components are overwritten/augmented: 1. Statically known namespaces: Augmented with zerr –> http://www.zorba-xquery.com/errors 2. Context item static type: item() 3. Default order for empty sequences: empty_greatest 4. Static Base URI: We use the rules in 4.5, where the implementation-defined default mentioned there is http://www.zorba-xquery.com, 5. Statically known default collection type: item()*">
1984+ <description last-mod="2005-04-04">Any components of the static context or dynamic context that are overwritten or augmented by the implementation.</description>
1985+ </implementation-defined-item>
1986+
1987+ <implementation-defined-item
1988+ name="axes"
1989+ spec="XQuery"
1990+ value="All axes are supported">
1991+ <description last-mod="2005-04-04">Which of the optional axes are supported by the implementation, if the Full-Axis Feature is not supported.</description>
1992+ </implementation-defined-item>
1993+
1994+ <implementation-defined-item
1995+ name="defaultOrderEmpty"
1996+ spec="XQuery"
1997+ value="empty_greatest">
1998+ <description last-mod="2005-04-04">The default handling of empty sequences returned by an ordering key (sortspec) in an order by clause (empty least or empty greatest).</description>
1999+ </implementation-defined-item>
2000+
2001+ <implementation-defined-item
2002+ name="pragmas"
2003+ spec="XQuery"
2004+ value="No pragmas are recognized.">
2005+ <description last-mod="2005-04-04">The names and semantics of any extension expressions (pragmas) recognized by the implementation.</description>
2006+ </implementation-defined-item>
2007+
2008+ <implementation-defined-item
2009+ name="optionDeclarations"
2010+ spec="XQuery"
2011+ value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/options_and_annotations.html.">
2012+ <description last-mod="2005-04-04">The names and semantics of any option declarations recognized by the implementation.</description>
2013+ </implementation-defined-item>
2014+
2015+ <implementation-defined-item
2016+ name="externalFunctionProtocols"
2017+ spec="XQuery"
2018+ value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/external_functions.html.">
2019+ <description last-mod="2005-04-04">Protocols (if any) by which parameters can be passed to an external function, and the result of the function can returned to the invoking query.</description>
2020+ </implementation-defined-item>
2021+
2022+ <implementation-defined-item
2023+ name="moduleLocationHints"
2024+ spec="XQuery"
2025+ value="See http://www.zorba-xquery.com/site2/doc/latest/zorba/html/modules_top.html.">
2026+ <description last-mod="2005-11-01">The process by which the specific modules to be imported by a module import are identified, if the Module Feature is supported (includes processing of location hints, if any.)</description>
2027+ </implementation-defined-item>
2028+
2029+ <implementation-defined-item
2030+ name="staticTypingExtensions"
2031+ spec="XQuery"
2032+ value="Static typing is not supported.">
2033+ <description last-mod="2005-04-04">Any static typing extensions supported by the implementation, if the Static Typing Feature is supported.</description>
2034+ </implementation-defined-item>
2035+
2036+ <implementation-defined-item
2037+ name="serializationInvocation"
2038+ spec="XQuery"
2039+ value="The result of an XQuery program can be serialized via the zorba::XQuery::execute methods (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1XQuery.html). Sequence of items can be serialized via the zorba::Serializer::serialize method (see http://www.zorba-xquery.com/site2/doc/latest/cxx/html/classzorba_1_1Serializer.html).">
2040+ <description last-mod="2005-04-04">The means by which serialization is invoked, if the Serialization Feature is supported.</description>
2041+ </implementation-defined-item>
2042+
2043 <implementation-defined-item
2044 name="serializationDefaults"
2045- value="Serialization Feature is supported. Implicit values are: byte-order-mark = no, encoding = UTF-8, media-type = '', normalization-form = '', omix-xml-declaration = no, standalone = omit, version = '1.0', method = xml, doctype-system = '', doctype-public = '', cdata-section-elements = empty list, include-content-type = no, undeclare-prefixes = no, indent = no"/>
2046-
2047- <implementation-defined-item
2048- name="externalFunctionCall"
2049- value="An error is raised using the regular error handling mechanism of zorba. The kind of error depends on the kind of failure. For example, zerr:ZXQP0008 if the function implementation is not found, or err:XPTY0004 if the result of the function does not match the declared returned type."/>
2050-
2051- <implementation-defined-item name="limits" value=""/>
2052-
2053- <implementation-defined-item
2054- name="traceDestination"
2055- value="By default, it is std:cerr. Users can modify this via the StaticContext::setTraceStream method."/>
2056-
2057- <implementation-defined-item
2058- name="integerOperations"
2059- value="Zorba raises [err:FOAR0002]"/>
2060-
2061- <implementation-defined-item name="decimalDigits" value=""/>
2062-
2063- <implementation-defined-item name="roundOrTruncate" value=""/>
2064-
2065- <implementation-defined-item
2066- name="Unicode"
2067- value="Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0."/>
2068-
2069- <implementation-defined-item
2070- name="normalizationForms"
2071- value="Zorba supports NFC, NFKC, NFD, NFKD normalization forms."/>
2072-
2073- <implementation-defined-item name="collationUnits" value=""/>
2074-
2075+ spec="XQuery"
2076+ value="Serialization Feature is supported. Implicit values are: byte-order-mark = no, encoding = UTF-8, media-type = '', normalization-form = '', omix-xml-declaration = no, standalone = omit, version = '1.0', method = xml, doctype-system = '', doctype-public = '', cdata-section-elements = empty list, include-content-type = no, undeclare-prefixes = no, indent = no">
2077+ <description last-mod="2005-10-10">The default values for the byte-order-mark, encoding, media-type, normalization-form, omit-xml-declaration, standalone, and version parameters, if the Serialization Feature is supported.</description>
2078+ </implementation-defined-item>
2079+
2080+ <implementation-defined-item
2081+ name="externalFunctionCall"
2082+ spec="XQuery"
2083+ value="An error is raised using the regular error handling mechanism of zorba. The kind of error depends on the kind of failure. For example, zerr:ZXQP0008 if the function implementation is not found, or err:XPTY0004 if the result of the function does not match the declared returned type.">
2084+ <description last-mod="2006-08-09">The result of an unsuccessful call to an external function (for example, if the function implementation cannot be found or does not return a value of the declared type).</description>
2085+ </implementation-defined-item>
2086+
2087+ <implementation-defined-item
2088+ name="limits"
2089+ spec="XQuery"
2090+ value="totalDigits = 2^63, xs:string length = available memory.">
2091+ <description last-mod="2005-11-01">Limits on ranges of values for various data types, as enumerated in 5.3 Data Model Conformance.</description>
2092+ </implementation-defined-item>
2093+
2094+ <implementation-defined-item
2095+ name="traceDestination"
2096+ spec="FuncOps"
2097+ value="By default, it is std:cerr. Users can modify this via the StaticContext::setTraceStream method.">
2098+ <description last-mod="2005-10-10">The destination of the trace output is implementation-defined. See 4 The Trace Function.</description>
2099+ </implementation-defined-item>
2100+
2101+ <implementation-defined-item
2102+ name="integerOperations"
2103+ spec="FuncOps"
2104+ value="Zorba raises [err:FOAR0002]">
2105+ <description last-mod="2005-10-10">For xs:integer operations, implementations that support limited-precision integer operations must either raise an error [err:FOAR0002] or provide an implementation-defined mechanism that allows users to choose between raising an error and returning a result that is modulo the largest representable integer value. See 6.2 Operators on Numeric Values.</description>
2106+ </implementation-defined-item>
2107+
2108+ <implementation-defined-item
2109+ name="decimalDigits"
2110+ spec="FuncOps"
2111+ value="On a 32-bit system, the number of digits of precision is 2^31; on a 64-bit system, the number of digits of precision is 2^63.">
2112+ <description last-mod="2005-11-01">For xs:decimal values the number of digits of precision returned by the numeric operators is implementation-defined. See 6.2 Operators on Numeric Values. See also 17.1.3.3 Casting to xs:decimal and 17.1.3.4 Casting to xs:integer.</description>
2113+ </implementation-defined-item>
2114+
2115+ <implementation-defined-item
2116+ name="roundOrTruncate"
2117+ spec="FuncOps"
2118+ value="It does whatever the underlying C++ implementation does.">
2119+ <description last-mod="2005-10-10">If the number of digits in the result exceeds the number of digits that the implementation supports, the result is truncated or rounded in an implementation-defined manner. See 6.2 Operators on Numeric Values. See also 17.1.3.3 Casting to xs:decimal and 17.1.3.4 Casting to xs:integer.</description>
2120+ </implementation-defined-item>
2121+
2122+ <implementation-defined-item
2123+ name="Unicode"
2124+ spec="FuncOps"
2125+ value="Zorba's Unicode version is whatever ICU's Unicode is. Latest ICU supports Unicode 6.0.">
2126+ <description last-mod="2005-11-01">It is implementation-defined which version of Unicode is supported by the features defined in this specification, but it is recommended that the most recent version of Unicode be used. See 7.1 String Types.</description>
2127+ </implementation-defined-item>
2128+
2129+ <implementation-defined-item
2130+ name="normalizationForms"
2131+ spec="FuncOps"
2132+ value="Zorba supports NFC, NFKC, NFD, NFKD normalization forms.">
2133+ <description last-mod="2005-10-10">For 7.4.6 fn:normalize-unicode, conforming implementations must support normalization form "NFC" and may support normalization forms "NFD", "NFKC", "NFKD", "FULLY-NORMALIZED". They may also support other normalization forms with implementation-defined semantics.</description>
2134+ </implementation-defined-item>
2135+
2136+ <implementation-defined-item
2137+ name="collationUnits"
2138+ spec="FuncOps"
2139+ value="Zorba does not support this.">
2140+ <description last-mod="2005-10-10">The ability to decompose strings into collation units suitable for substring matching is an implementation-defined property of a collation. See 7.5 Functions Based on Substring Matching.</description>
2141+ </implementation-defined-item>
2142+
2143 <implementation-defined-item
2144 name="secondsDigits"
2145- value="Year values: Zorba supports 9 digits (32bit maxint). Fractional second: Zorba supports 6 digits."/>
2146-
2147- <implementation-defined-item name="stringToDecimal" value=""/>
2148-
2149- <implementation-defined-item name="docProcessing" value=""/>
2150-
2151- <implementation-defined-item name="weakenStable" value=""/>
2152-
2153- <implementation-defined-item
2154- name="additionalTypes"
2155- value="There are no implementation-defined types. User-defined types are created and become “in-scope” when “import schema” statements are processed. User-defined types (including anonymous types) are created within a static context and they are destroyed when their containing static context is destroyed."/>
2156-
2157- <implementation-defined-item
2158- name="undefinedProperties"
2159- value="err:FOTY0012"/>
2160-
2161- <implementation-defined-item
2162- name="sequenceNormalization"
2163- value="Zorba performs sequence normalization for the 'binary' serialization method. Zorba's Data Converters module performs sequence normalization for JSON and JSONML (but these are not serialization output methods, i.e. they cannot be invoked with the help of '-z method=JSON')"/>
2164-
2165- <implementation-defined-item
2166- name="outputMethods"
2167- value="Zorba's only implementation-defined output method is 'binary' and it is used unqualified (URI is null)."/>
2168-
2169- <implementation-defined-item
2170- name="normalizationFormBehavior"
2171- value="Zorba has no implementation-defined values for the normalization-form parameter."/>
2172-
2173- <implementation-defined-item
2174- name="additionalParams"
2175- value="Zorba has no implementation-defined serialization parameters."/>
2176-
2177- <implementation-defined-item
2178- name="encodingPhase"
2179- value="Zorba has no such option."/>
2180-
2181- <implementation-defined-item
2182- name="CDATASerialization"
2183- value="Zorba has no such mechanism."/>
2184+ spec="FuncOps"
2185+ value="Year values: Zorba supports 9 digits (32bit maxint). Fractional second: Zorba supports 6 digits.">
2186+ <description last-mod="2005-10-10">All minimally conforming processors must support year values with a minimum of 4 digits (i.e., YYYY) and a minimum fractional second precision of 1 millisecond or three digits (i.e., s.sss). However, conforming processors may set larger implementation-defined limits on the maximum number of digits they support in these two situations. See 10.1.1 Limits and Precision.</description>
2187+ </implementation-defined-item>
2188+
2189+ <implementation-defined-item
2190+ name="stringToDecimal"
2191+ spec="FuncOps"
2192+ value="On a 32-bit system, the number of digits of precision is 2^31; on a 64-bit system, the number of digits of precision is 2^63.">
2193+ <description last-mod="2006-08-09">The result of casting a string to xs:decimal, when the resulting value is not too large or too small but nevertheless has too many decimal digits to be accurately represented, is implementation-defined. See 17.1.1 Casting from xs:string and xs:untypedAtomic.</description>
2194+ </implementation-defined-item>
2195+
2196+ <implementation-defined-item
2197+ name="docProcessing"
2198+ spec="FuncOps"
2199+ value="Zorba provides no configuration options for 15.5.4 fn:doc.">
2200+ <description last-mod="2005-10-10">Various aspects of the processing provided by 15.5.4 fn:doc are implementation-defined. Implementations may provide external configuration options that allow any aspect of the processing to be controlled by the user.</description>
2201+ </implementation-defined-item>
2202+
2203+ <implementation-defined-item
2204+ name="weakenStable"
2205+ spec="FuncOps"
2206+ value="Zorba provides no options to weaken the stable characteristics of 15.5.6 fn:collection or 15.5.4 fn:doc.">
2207+ <description last-mod="2006-08-09">The manner in which implementations provide options to weaken the stable characteristic of 15.5.6 fn:collection and 15.5.4 fn:doc are implementation-defined.</description>
2208+ </implementation-defined-item>
2209+
2210+ <implementation-defined-item
2211+ name="additionalTypes"
2212+ spec="DataModel"
2213+ value="There are no implementation-defined types. User-defined types are created and become “in-scope” when “import schema” statements are processed. User-defined types (including anonymous types) are created within a static context and they are destroyed when their containing static context is destroyed.">
2214+ <description last-mod="2005-04-04">Support for additional user-defined or implementation-defined types is implementation-defined. (See 2.6.1 Representation of Types)</description>
2215+ </implementation-defined-item>
2216+
2217+ <implementation-defined-item
2218+ name="undefinedProperties"
2219+ spec="DataModel"
2220+ value="err:FOTY0012">
2221+ <description last-mod="2005-04-04">Some typed values in the data model are undefined. Attempting to access an undefined property is always an error. Behavior in these cases is implementation-defined and the host language is responsible for determining the result. (See 5 Accessors)</description>
2222+ </implementation-defined-item>
2223+
2224+ <implementation-defined-item
2225+ name="sequenceNormalization"
2226+ spec="Serialization"
2227+ value="Zorba performs sequence normalization for the 'binary' serialization method. Zorba's Data Converters module performs sequence normalization for JSON and JSONML (but these are not serialization output methods, i.e. they cannot be invoked with the help of '-z method=JSON')">
2228+ <description last-mod="2005-04-04">For any implementation-defined output method, it is implementation-defined whether sequence normalization process takes place. (See 2 Sequence Normalization)</description>
2229+ </implementation-defined-item>
2230+
2231+ <implementation-defined-item
2232+ name="outputMethods"
2233+ spec="Serialization"
2234+ value="Zorba's only implementation-defined output method is 'binary' and it is used unqualified (URI is null).">
2235+ <description last-mod="2005-04-04">If the namespace URI is non-null for the method serialization parameter, then the parameter specifies an implementation-defined output method. (See 3 Serialization Parameters)</description>
2236+ </implementation-defined-item>
2237+
2238+ <implementation-defined-item
2239+ name="normalizationFormBehavior"
2240+ spec="Serialization"
2241+ value="Zorba has no implementation-defined values for the normalization-form parameter.">
2242+ <description last-mod="2005-04-04">If the value of the normalization-form form parameter is not NFC, NFD, NFKC, NFKD, fully-normalized, or none then the meaning of the value and it's effect is implementation-defined. (See 4 Phases of Serialization)</description>
2243+ </implementation-defined-item>
2244+
2245+ <implementation-defined-item
2246+ name="additionalParams"
2247+ spec="Serialization"
2248+ value="Zorba has no implementation-defined serialization parameters.">
2249+ <description last-mod="2005-11-01">The effect of additional serialization parameters on the output of the serializer, where the name of such a parameter must be namespace-qualified, is implementation-defined or implementation-dependent. The extent of this effect on the output must not override the provisions of this specification. (See 3 Serialization Parameters)</description>
2250+ </implementation-defined-item>
2251+
2252+ <implementation-defined-item
2253+ name="encodingPhase"
2254+ spec="Serialization"
2255+ value="Zorba has no such option.">
2256+ <description last-mod="2005-04-04">The effect of providing an option that allows the encoding phase to be skipped, so that the result of serialization is a stream of Unicode characters, is implementation-defined. The serializer is not required to support such an option. (See 4 Phases of Serialization)</description>
2257+ </implementation-defined-item>
2258+
2259+ <implementation-defined-item
2260+ name="CDATASerialization"
2261+ spec="Serialization"
2262+ value="Input CDATA sections are treated and serialized as text. Text nodes can be serialized as cdata sections if explicitly requested through the cdata-section-elements parameter.">
2263+ <description last-mod="2005-04-04">An serializer may provide an implementation-defined mechanism to place CDATA sections in the result tree. (See 5.1.4 XML Output Method: the cdata-section-elements Parameter)</description>
2264+ </implementation-defined-item>
2265
2266 </implementation-defined-items>
2267
2268 <features>
2269- <feature name="Minimal Conformance" supported="true"/>
2270- <feature name="Schema Import" supported="true"/>
2271- <feature name="Schema Validation" supported="true"/>
2272- <feature name="Static Typing" supported="false"/>
2273- <feature name="Static Typing Extensions" supported="false"/>
2274- <feature name="Full Axis" supported="true"/>
2275- <feature name="Module" supported="true"/>
2276- <feature name="Serialization" supported="true"/>
2277+ <feature
2278+ name="Minimal Conformance"
2279+ supported="true"/>
2280+
2281+ <feature
2282+ name="Schema Import"
2283+ supported="true"/>
2284+
2285+ <feature
2286+ name="Schema Validation"
2287+ supported="true"/>
2288+
2289+ <feature
2290+ name="Static Typing"
2291+ supported="false"/>
2292+
2293+ <feature
2294+ name="Static Typing Extensions"
2295+ supported="false"/>
2296+
2297+ <feature
2298+ name="Full Axis"
2299+ supported="true"/>
2300+
2301+ <feature
2302+ name="Module"
2303+ supported="true"/>
2304+
2305+ <feature
2306+ name="Serialization"
2307+ supported="true"/>
2308 </features>
2309
2310 <context-properties>
2311 <context-property
2312- name="Statically known namespaces" context-type="static"
2313- value="fn –> http://www.w3.org/2005/xpath-functions, xml –> http://www.w3.org/XML/1998/namespace, xs –> http://www.w3.org/2001/XMLSchema, xsi –> http://www.w3.org/2001/XMLSchema-instance, local –> http://www.w3.org/2005/xquery-local-functions, zerr –> http://www.zorba-xquery.com/"/>
2314+ name="Statically known namespaces"
2315+ context-type="static"
2316+ value="fn –> http://www.w3.org/2005/xpath-functions, xml –> http://www.w3.org/XML/1998/namespace, xs –> http://www.w3.org/2001/XMLSchema, xsi –> http://www.w3.org/2001/XMLSchema-instance, local –> http://www.w3.org/2005/xquery-local-functions, zerr –> http://www.zorba-xquery.com/errors"/>
2317
2318 <context-property
2319- name="Default element/type namespace" context-type="static"
2320+ name="Default element/type namespace"
2321+ context-type="static"
2322 value="None."/>
2323
2324 <context-property
2325- name="Default function namespace" context-type="static"
2326+ name="Default function namespace"
2327+ context-type="static"
2328 value="http://www.w3.org/2005/xpath-functions ."/>
2329
2330 <context-property
2331- name="In-scope schema types" context-type="static"
2332+ name="In-scope schema types"
2333+ context-type="static"
2334 value="Built-in types in xs."/>
2335
2336 <context-property
2337- name="In-scope element declarations" context-type="static"
2338- value="None."/>
2339-
2340- <context-property
2341- name="In-scope attribute declarations" context-type="static"
2342- value="None."/>
2343-
2344- <context-property
2345- name="In-scope variables" context-type="static"
2346- value="None."/>
2347-
2348- <context-property
2349- name="Context item static type" context-type="static"
2350+ name="In-scope element declarations"
2351+ context-type="static"
2352+ value="None."/>
2353+
2354+ <context-property
2355+ name="In-scope attribute declarations"
2356+ context-type="static"
2357+ value="None."/>
2358+
2359+ <context-property
2360+ name="In-scope variables"
2361+ context-type="static"
2362+ value="None."/>
2363+
2364+ <context-property
2365+ name="Context item static type"
2366+ context-type="static"
2367 value="item()"/>
2368
2369 <context-property
2370- name="Function signatures" context-type="static"
2371+ name="Function signatures"
2372+ context-type="static"
2373 value="Functions in fn namespace, and constructors for built-in atomic types."/>
2374
2375 <context-property
2376- name="Statically known collations" context-type="static"
2377+ name="Statically known collations"
2378+ context-type="static"
2379 value="Initially, the only available collation is the codepoint collection: http://www.w3.org/2005/xpath-functions/collation/codepoint. More collations can be added to a static context via the StaticContext::addCollation() method of the C++ API."/>
2380
2381 <context-property
2382- name="Default collation" context-type="static"
2383+ name="Default collation"
2384+ context-type="static"
2385 value="http://www.w3.org/2005/xpath-functions/collation/codepoint"/>
2386
2387 <context-property
2388- name="Construction mode" context-type="static"
2389+ name="Construction mode"
2390+ context-type="static"
2391 value="preserve"/>
2392
2393 <context-property
2394- name="Ordering mode" context-type="static"
2395+ name="Ordering mode"
2396+ context-type="static"
2397 value="ordered"/>
2398
2399 <context-property
2400- name="Default order for empty sequences" context-type="static"
2401+ name="Default order for empty sequences"
2402+ context-type="static"
2403 value="empty greatest"/>
2404
2405 <context-property
2406- name="Boundary-space policy" context-type="static"
2407+ name="Boundary-space policy"
2408+ context-type="static"
2409 value="strip"/>
2410
2411 <context-property
2412- name="Copy-namespaces mode" context-type="static"
2413+ name="Copy-namespaces mode"
2414+ context-type="static"
2415 value="inherit preserve"/>
2416
2417 <context-property
2418- name="Base URI" context-type="static"
2419+ name="Base URI"
2420+ context-type="static"
2421 value="Uses the rules in http://www.w3.org/TR/xquery-30/#id-base-uri-decl, where the implementation-defined default mentioned there is http://www.zorba-xquery.com"/>
2422
2423 <context-property
2424- name="Statically known documents" context-type="static"
2425- value="None."/>
2426-
2427- <context-property
2428- name="Statically known collections" context-type="static"
2429- value="None."/>
2430-
2431- <context-property
2432- name="Statically known default collection type" context-type="static"
2433+ name="Statically known documents"
2434+ context-type="static"
2435+ value="None."/>
2436+
2437+ <context-property
2438+ name="Statically known collections"
2439+ context-type="static"
2440+ value="None."/>
2441+
2442+ <context-property
2443+ name="Statically known default collection type"
2444+ context-type="static"
2445 value="item()*"/>
2446
2447 <context-property
2448- name="Context item" context-type="dynamic"
2449- value="None. Before execution of a query, a value can be assigned to the context itemvia the DynamicContext::setContextItem method."/>
2450-
2451- <context-property
2452- name="Context position" context-type="dynamic"
2453- value="None."/>
2454-
2455- <context-property
2456- name="Context size" context-type="dynamic"
2457- value="None."/>
2458-
2459- <context-property
2460- name="Variable values" context-type="dynamic"
2461- value="None."/>
2462-
2463- <context-property
2464- name="Function implementations" context-type="dynamic"
2465+ name="Context item"
2466+ context-type="dynamic"
2467+ value="None. Before execution of a query, a value can be assigned to the context item via the DynamicContext::setContextItem method."/>
2468+
2469+ <context-property
2470+ name="Context position"
2471+ context-type="dynamic"
2472+ value="None."/>
2473+
2474+ <context-property
2475+ name="Context size"
2476+ context-type="dynamic"
2477+ value="None."/>
2478+
2479+ <context-property
2480+ name="Variable values"
2481+ context-type="dynamic"
2482+ value="None."/>
2483+
2484+ <context-property
2485+ name="Function implementations"
2486+ context-type="dynamic"
2487 value="Functions in fn namespace, and constructors for built-in atomic types."/>
2488
2489 <context-property
2490- name="Current dateTime" context-type="dynamic"
2491- value="The current local time on the computer running Zorba."/>
2492+ name="Current dateTime"
2493+ context-type="dynamic"
2494+ value="The current local time (when the XQuery execution is actually started) on the computer running Zorba."/>
2495
2496 <context-property
2497- name="Implicit timezone" context-type="dynamic"
2498+ name="Implicit timezone"
2499+ context-type="dynamic"
2500 value="Computed based on the current local time on the computer running Zorba."/>
2501
2502 <context-property
2503- name="Available documents" context-type="dynamic"
2504+ name="Available documents"
2505+ context-type="dynamic"
2506 value="The URIs returned by the availale-documents function of module http://www.zorba-xquery.com/modules/store/dynamic/documents (see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_store_dynamic_documents.html)"/>
2507
2508 <context-property
2509- name="Available collections" context-type="dynamic"
2510- value="The URIs returned by the availale-collections function of module http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl (see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_store_dynamic_collections_w3c_ddl.html)"/>"/>
2511+ name="Available collections"
2512+ context-type="dynamic"
2513+ value="The URIs returned by the available-collections function of module http://www.zorba-xquery.com/modules/store/dynamic/collections/w3c/ddl (see http://www.zorba-xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.zorba-xquery.com_modules_store_dynamic_collections_w3c_ddl.html)"/>"/>
2514
2515 <context-property
2516- name="Default collection" context-type="dynamic"
2517+ name="Default collection"
2518+ context-type="dynamic"
2519 value="None."/>
2520 </context-properties>
2521
2522
2523=== modified file 'test/rbkt/Scripts/w3c/generate-submission-xqftts.xq'
2524--- test/rbkt/Scripts/w3c/generate-submission-xqftts.xq 2011-08-17 11:42:16 +0000
2525+++ test/rbkt/Scripts/w3c/generate-submission-xqftts.xq 2011-10-05 20:32:28 +0000
2526@@ -11,7 +11,7 @@
2527 <test-suite-result>
2528 <implementation
2529 name="Zorba"
2530- version='2.0 (svn rev. 11228)'
2531+ version='2.0.3'
2532 anonymous-result-column="false">
2533
2534 <organization
2535@@ -32,21 +32,28 @@
2536 database servers, XML message dispatchers, or smartphones.
2537 Its architecture employes a modular design, which allows customizing
2538 the Zorba query processor to the environment’s needs.
2539- In particular the architecture of the query processor allows a
2540- pluggable XML store (e.g. main memory, DOM stores, persistent
2541- disk-based large stores, S3 stores). Zorba runs on most platforms
2542- and is available under the Apache license v2. Currently, Zorba
2543- implements the following W3C specifications: XQuery 1.0, XQuery Update
2544- Facility 1.0, XQuery Scripting Extension 1.0, and XSLT 2.0 and XQuery 1.0
2545- Serialization.</p>
2546+ For more details please check out http://www.zorba-xquery.com.</p>
2547 </description>
2548
2549 {
2550 let $XQFTTSZorba := fn:doc("XQFTTS.xml")
2551 return
2552 (
2553- <implementation-defined-items>{$XQFTTSZorba//*:implementation-defined-item}</implementation-defined-items>,
2554+ <implementation-defined-items>
2555+ {
2556+ for $idi in $XQFTTSZorba//*:implementation-defined-item
2557+ return
2558+ <implementation-defined-item name="{data($idi/@name)}" value="{data($idi/@value)}" />
2559+ }
2560+ </implementation-defined-items>,
2561 <features>{$XQFTTSZorba//*:feature}</features>,
2562+ <context-properties>
2563+ {
2564+ for $cp in $XQFTTSZorba//*:context-property
2565+ return
2566+ <context-property name="{data($cp/@name)}" context-type="{data($cp/@context-type)}" value="{data($cp/@value)}" />
2567+ }
2568+ </context-properties>
2569 <context-properties>{$XQFTTSZorba//*:context-property}</context-properties>
2570 )
2571 }
2572@@ -55,11 +62,11 @@
2573
2574 <syntax>XQuery</syntax>
2575
2576- <test-run dateRun="2011-07-13">
2577+ <test-run dateRun="2011-09-23">
2578 <test-suite version="current"/>
2579 <transformation><p>Standard</p></transformation>
2580 <comparison><p>Standard</p></comparison>
2581- <otherComments><p>XQFTTS taken from W3C CVS as of 2011-07-13.</p></otherComments>
2582+ <otherComments><p>XQFTTS taken from W3C CVS as of 2011-09-21.</p></otherComments>
2583 </test-run>
2584
2585 {
2586
2587=== modified file 'test/rbkt/Scripts/w3c/generate-submission-xqts.xq'
2588--- test/rbkt/Scripts/w3c/generate-submission-xqts.xq 2011-08-17 11:42:16 +0000
2589+++ test/rbkt/Scripts/w3c/generate-submission-xqts.xq 2011-10-05 20:32:28 +0000
2590@@ -10,7 +10,7 @@
2591 validate {
2592 <test-suite-result>
2593 <implementation name="Zorba"
2594- version='2.0 (svn rev. 11228)'
2595+ version='2.0.3'
2596 anonymous-result-column="false">
2597
2598 <organization
2599@@ -31,20 +31,20 @@
2600 database servers, XML message dispatchers, or smartphones.
2601 Its architecture employes a modular design, which allows customizing
2602 the Zorba query processor to the environment’s needs.
2603- In particular the architecture of the query processor allows a
2604- pluggable XML store (e.g. main memory, DOM stores, persistent
2605- disk-based large stores, S3 stores). Zorba runs on most platforms
2606- and is available under the Apache license v2. Currently, Zorba
2607- implements the following W3C specifications: XQuery 1.0, XQuery Update
2608- Facility 1.0, XQuery Scripting Extension 1.0, and XSLT 2.0 and XQuery 1.0
2609- Serialization.</p>
2610+ For more details please check out http://www.zorba-xquery.com.</p>
2611 </description>
2612
2613 {
2614 let $XQTSZorba := fn:doc("XQTS.xml")
2615 return
2616 (
2617- <implementation-defined-items>{$XQTSZorba//*:implementation-defined-item}</implementation-defined-items>,
2618+ <implementation-defined-items>
2619+ {
2620+ for $idi in $XQTSZorba//*:implementation-defined-item
2621+ return
2622+ <implementation-defined-item name="{data($idi/@name)}" value="{data($idi/@value)}" />
2623+ }
2624+ </implementation-defined-items>,
2625 <features>{$XQTSZorba//*:feature}</features>,
2626 <context-properties>{$XQTSZorba//*:context-property}</context-properties>
2627 )
2628@@ -54,11 +54,11 @@
2629
2630 <syntax>XQuery</syntax>
2631
2632- <test-run dateRun="2011-07-13">
2633+ <test-run dateRun="2011-09-23">
2634 <test-suite version="current"/>
2635 <transformation><p>Standard</p></transformation>
2636 <comparison><p>Standard</p></comparison>
2637- <otherComments><p>XQTS taken from W3C CVS as of 2011-07-13.</p></otherComments>
2638+ <otherComments><p>XQTS taken from W3C CVS as of 2011-09-21.</p></otherComments>
2639 </test-run>
2640
2641 {
2642
2643=== modified file 'test/update/Scripts/XQUTS.xml'
2644--- test/update/Scripts/XQUTS.xml 2011-08-17 11:42:16 +0000
2645+++ test/update/Scripts/XQUTS.xml 2011-10-05 20:32:28 +0000
2646@@ -2,19 +2,41 @@
2647 <zorba xmlns="http://www.w3.org/2005/02/query-test-XQTSResult">
2648
2649 <implementation-defined-items>
2650- <implementation-defined-item name="supportedRevalidationModes"
2651- value="lax, skip, strict"/>
2652- <implementation-defined-item name="defaultRevalidationMode"
2653- value="lax"/>
2654- <implementation-defined-item name="externalFunctionXDMPUL"
2655- value="Zorba allows external functions to be implemented in C++. Such functions may return XDM instances. However, it is not possible to implement an updating external function."/>
2656- <implementation-defined-item name="fnPutSemantics"
2657- value="fn:put stores a copy (preserving type, preserving namespaces, and inheriting namespace) of the given document or element in Zorba's store. That is it binds the node to the URI passed as first argument. If the URI is relative it's resolved against the base uri. The result of fn:put become effective at the end of the XQuery program or if they are applied using Zorba's made persistent."/>
2658+ <implementation-defined-item
2659+ name="supportedRevalidationModes"
2660+ value="lax, skip, strict">
2661+ <description last-mod="2008-11-05">The revalidation modes that are supported by this
2662+ implementation.</description>
2663+ </implementation-defined-item>
2664+ <implementation-defined-item
2665+ name="defaultRevalidationMode"
2666+ value="lax">
2667+ <description last-mod="2008-11-05">The default revalidation mode for this
2668+ implementation.</description>
2669+ </implementation-defined-item>
2670+ <implementation-defined-item
2671+ name="externalFunctionXDMPUL"
2672+ value="Zorba allows external functions to be implemented in C++. Such functions may return XDM instances. However, it is not possible to implement an updating external function.">
2673+ <description last-mod="2008-11-05">The mechanism (if any) by which an external function can
2674+ return an XDM instance and/or a pending update list to the invoking query.</description>
2675+ </implementation-defined-item>
2676+ <implementation-defined-item
2677+ name="fnPutSemantics"
2678+ value="fn:put stores a copy (preserving type, preserving namespaces, and inheriting namespace) of the given document or element in Zorba's store. That is it binds the node to the URI passed as first argument. If the URI is relative it's resolved against the base uri. The result of fn:put become effective at the end of the XQuery program or if they are applied using Zorba's made persistent.">
2679+ <description last-mod="2008-11-05">The semantics of fn:put(), including the kinds of nodes
2680+ accepted as operands by this function.</description>
2681+ </implementation-defined-item>
2682 </implementation-defined-items>
2683
2684 <features>
2685- <feature name='Minimal Conformance' supported='true' />
2686- <feature name='Update Facility Static Typing Feature' supported='false' />
2687+ <feature
2688+ name='Minimal Conformance'
2689+ supported='true' />
2690+
2691+ <feature
2692+ name='Update Facility Static Typing Feature'
2693+ supported='false' />
2694+
2695 </features>
2696
2697 <context-properties>
2698
2699=== modified file 'test/update/Scripts/generate-submission-xquts.xq'
2700--- test/update/Scripts/generate-submission-xquts.xq 2011-08-17 11:42:16 +0000
2701+++ test/update/Scripts/generate-submission-xquts.xq 2011-10-05 20:32:28 +0000
2702@@ -10,7 +10,7 @@
2703 validate {
2704 <test-suite-result>
2705 <implementation name="Zorba"
2706- version='2.0 (svn rev. 11228)'
2707+ version='2.0.3'
2708 anonymous-result-column="false">
2709
2710 <organization
2711@@ -31,20 +31,20 @@
2712 database servers, XML message dispatchers, or smartphones.
2713 Its architecture employes a modular design, which allows customizing
2714 the Zorba query processor to the environment’s needs.
2715- In particular the architecture of the query processor allows a
2716- pluggable XML store (e.g. main memory, DOM stores, persistent
2717- disk-based large stores, S3 stores). Zorba runs on most platforms
2718- and is available under the Apache license v2. Currently, Zorba
2719- implements the following W3C specifications: XQuery 1.0, XQuery Update
2720- Facility 1.0, XQuery Scripting Extension 1.0, and XSLT 2.0 and XQuery 1.0
2721- Serialization.</p>
2722+ For more details please check out http://www.zorba-xquery.com.</p>
2723 </description>
2724
2725 {
2726 let $XQUTSZorba := fn:doc("XQUTS.xml")
2727 return
2728 (
2729- <implementation-defined-items>{$XQUTSZorba//*:implementation-defined-item}</implementation-defined-items>,
2730+ <implementation-defined-items>
2731+ {
2732+ for $idi in $XQUTSZorba//*:implementation-defined-item
2733+ return
2734+ <implementation-defined-item name="{data($idi/@name)}" value="{data($idi/@value)}" />
2735+ }
2736+ </implementation-defined-items>,
2737 <features>{$XQUTSZorba//*:feature}</features>,
2738 <context-properties>{$XQUTSZorba//*:context-property}</context-properties>
2739 )
2740@@ -54,11 +54,11 @@
2741
2742 <syntax>XQuery</syntax>
2743
2744- <test-run dateRun="2011-07-13">
2745+ <test-run dateRun="2011-09-23">
2746 <test-suite version="current"/>
2747 <transformation><p>Standard</p></transformation>
2748 <comparison><p>Standard</p></comparison>
2749- <otherComments><p>XQUTS version taken from CVS as of July 13th 2011.</p></otherComments>
2750+ <otherComments><p>XQUTS version taken from CVS as of 2011-09-21.</p></otherComments>
2751 </test-run>
2752
2753 {
2754@@ -70,7 +70,7 @@
2755 <test-case
2756 name="{$testname}"
2757 result="not applicable"
2758- comment="this test was not run by Zorba: please consult the 'Guidelines for Running the XML Query Update Test Suite' for more details."
2759+ comment="This test was not run by Zorba: please consult the 'Guidelines for Running the XML Query Update Test Suite' for more details."
2760 />
2761 else if (fn:contains(fn:data($test),'StaticTypingFeature')) then
2762 <test-case

Subscribers

People subscribed via source and target branches