Merge lp:~zorba-coders/zorba/bug-1189794-core into lp:zorba

Proposed by Chris Hillery
Status: Merged
Approved by: Luis Rodriguez Gonzalez
Approved revision: 11565
Merged at revision: 11557
Proposed branch: lp:~zorba-coders/zorba/bug-1189794-core
Merge into: lp:zorba
Diff against target: 4358 lines (+703/-731)
192 files modified
modules/CMakeLists.txt (+1/-1)
modules/atomic/CMakeLists.txt (+20/-0)
modules/atomic/math.xq (+423/-455)
modules/atomic/random.xq (+54/-50)
modules/base64/CMakeLists.txt (+0/-16)
modules/com/zorba-xquery/www/modules/CMakeLists.txt (+0/-4)
src/context/static_context.cpp (+2/-2)
src/functions/pregenerated/func_maths.cpp (+12/-12)
src/functions/pregenerated/func_random.cpp (+3/-3)
src/runtime/spec/mappings.xml (+2/-2)
test/rbkt/ExpQueryResults/zorba/random/seeded-random-between1.xml.res (+1/-1)
test/rbkt/Queries/zorba/annotations/annot-err-05.xq (+1/-1)
test/rbkt/Queries/zorba/annotations/annot-err-06.xq (+1/-1)
test/rbkt/Queries/zorba/annotations/annot-err-07.xq (+1/-1)
test/rbkt/Queries/zorba/jsoniq/roundtrip/roundtrip_02.xq (+1/-1)
test/rbkt/Queries/zorba/math/acosh1.xq (+1/-1)
test/rbkt/Queries/zorba/math/asinh1.xq (+1/-1)
test/rbkt/Queries/zorba/math/atanh1.xq (+1/-1)
test/rbkt/Queries/zorba/math/cosh1.xq (+1/-1)
test/rbkt/Queries/zorba/math/cosh2.xq (+1/-1)
test/rbkt/Queries/zorba/math/deg-to-rad.xq (+1/-1)
test/rbkt/Queries/zorba/math/fmod1.xq (+1/-1)
test/rbkt/Queries/zorba/math/fmod2.xq (+1/-1)
test/rbkt/Queries/zorba/math/fmod3.xq (+1/-1)
test/rbkt/Queries/zorba/math/frexp1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_avedev1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_ceiling1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_ceiling2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_ceiling3.spec (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_ceiling3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_ceiling4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_ceiling5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_ceiling6.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_ceiling7.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_even1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_even2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_even3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_even4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_even5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_even6.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_fact1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_fact2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_fact3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_fact4.spec (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_fact4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_fact5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_factdouble1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_factdouble2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_floor1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_floor2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_floor3.spec (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_floor3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_floor4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_floor5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_floor6.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_gcd1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_gcd2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_gcd3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_gcd4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_gcd5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_gcd6.spec (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_gcd6.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_gcd7.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_gcd8.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_int1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_int2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_int3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_int4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_large1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_large2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_large3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_lcm1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_lcm2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_lcm3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_lcm4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_lcm5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_median1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_median2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mod1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mod2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mod3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mod4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mode1.spec (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mode1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mode2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mode3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mround1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mround2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mround3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_mround4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_odd1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_odd2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_odd3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_odd4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_odd5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_odd6.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentile1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentile2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentile3.spec (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentile3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentrank1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentrank2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentrank3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentrank4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentrank5.spec (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_percentrank5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_prob1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_prob2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_product1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_product2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_product3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_product4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_product5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quartile1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quartile2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quartile3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quartile4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quartile5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quotient1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quotient2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quotient3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quotient4.spec (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_quotient4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rank1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rank2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rank3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rank4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rank5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_roman1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_roman2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_roman3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_round1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_round2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_round3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_round4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rounddown1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rounddown2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rounddown3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rounddown4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_rounddown5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_roundup1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_roundup2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_roundup3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_roundup4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_roundup5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_sign1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_sign2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_sign3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_slope1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_small1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_small2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_standardize1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_stdev1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_stdeva1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_stdevp1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_stdevpa1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal10.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal11.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal4.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal5.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal6.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal7.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal8.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_subtotal9.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_sumproduct2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_sumsq1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_trunc1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_trunc2.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_trunc3.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_var1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_vara1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_varp1.xq (+1/-1)
test/rbkt/Queries/zorba/math/from_excel/excel_varpa1.xq (+1/-1)
test/rbkt/Queries/zorba/math/is_inf1.xq (+1/-1)
test/rbkt/Queries/zorba/math/is_nan1.xq (+1/-1)
test/rbkt/Queries/zorba/math/ldexp1.xq (+1/-1)
test/rbkt/Queries/zorba/math/modf1.xq (+1/-1)
test/rbkt/Queries/zorba/math/sinh1.xq (+1/-1)
test/rbkt/Queries/zorba/math/tanh1.xq (+1/-1)
test/rbkt/Queries/zorba/random/random1.xq (+1/-1)
test/rbkt/Queries/zorba/random/seeded-random-between1.xq (+2/-2)
test/rbkt/Queries/zorba/random/seeded-random1.xq (+1/-1)
test/rbkt/Queries/zorba/random/uuid1.xq (+1/-1)
test/rbkt/Queries/zorba/random/uuid2.xq (+1/-1)
test/rbkt/Queries/zorba/reflection/reflection-invoke-10.xq (+2/-2)
test/rbkt/Queries/zorba/scripting/constr4.xq (+1/-1)
test/rbkt/Queries/zorba/string/AnalyzeString/http-client-doc.htm (+2/-2)
test/rbkt/Queries/zorba/xqxq/external-module.xq (+1/-1)
test/unit/invoke.cpp (+2/-2)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug-1189794-core
Reviewer Review Type Date Requested Status
Luis Rodriguez Gonzalez Approve
Chris Hillery Approve
Review via email: mp+175224@code.launchpad.net

Commit message

Update core math and random modules to Zorba 3.0 standards.

To post a comment you must log in.
Revision history for this message
Chris Hillery (ceejatec) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1189794-core/+merge/175224

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue

11559. By Chris Hillery

More JSONifying - remove xs:, bareword true/false, etc.

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

Voting criteria failed for the following merge proposals:

https://code.launchpad.net/~zorba-coders/zorba/bug-1189794-core/+merge/175224 :
Votes: {'Approve': 1}

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

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189794-core/+merge/175224

Stage "CommitZorba" failed.

Check console output at http://jenkins.lambda.nu/job/CommitZorba/39/console to view the results.

11560. By Chris Hillery

Update random module namespace URI.

11561. By Chris Hillery

JSONify random module.

11562. By Chris Hillery

Clean up XQDoc and error codes for random module.

11563. By Chris Hillery

s/INVALID_PARAMETER/INVALID_ARGUMENT/

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

Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1189794-core/+merge/175224

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue

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

Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1189794-core/+merge/175224

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue

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

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189794-core/+merge/175224

Stage "TestZorbaUbuntu" failed.
14 tests failed (8355 total tests run).

Check test results at http://jenkins.lambda.nu/job/TestZorbaUbuntu/96/testReport/ to view the results.

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

Voting criteria failed for the following merge proposals:

https://code.launchpad.net/~zorba-coders/zorba/bug-1189794-core/+merge/175224 :
Votes: {'Approve': 1}

https://code.launchpad.net/~zorba-coders/zorba/bug-1189794-oauth/+merge/175236 :
Votes: {'Approve': 1}

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

Validation queue result for https://code.launchpad.net/~zorba-coders/zorba/bug-1189794-core/+merge/175224

Stage "CommitZorba" failed.

Check console output at http://jenkins.lambda.nu/job/CommitZorba/40/console to view the results.

11564. By Chris Hillery

Merge from trunk.

11565. By Chris Hillery

Move base64 module into atomic/ directory.

Revision history for this message
Luis Rodriguez Gonzalez (kuraru) :
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 succeeded - proposal merged!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'modules/CMakeLists.txt'
2--- modules/CMakeLists.txt 2013-07-17 07:20:31 +0000
3+++ modules/CMakeLists.txt 2013-07-17 15:56:30 +0000
4@@ -12,6 +12,7 @@
5 # See the License for the specific language governing permissions and
6 # limitations under the License.
7
8+ADD_SUBDIRECTORY(atomic)
9 ADD_SUBDIRECTORY(com)
10 ADD_SUBDIRECTORY(org)
11 ADD_SUBDIRECTORY(functx)
12@@ -20,7 +21,6 @@
13 ADD_SUBDIRECTORY(full-text)
14 ADD_SUBDIRECTORY(json)
15 ADD_SUBDIRECTORY(nodes)
16-ADD_SUBDIRECTORY(base64)
17
18 # Add external module projects - any subdirectories of a directory
19 # named "zorba_modules" as a sibling to the main Zorba source
20
21=== added directory 'modules/atomic'
22=== added file 'modules/atomic/CMakeLists.txt'
23--- modules/atomic/CMakeLists.txt 1970-01-01 00:00:00 +0000
24+++ modules/atomic/CMakeLists.txt 2013-07-17 15:56:30 +0000
25@@ -0,0 +1,20 @@
26+# Copyright 2013 The FLWOR Foundation.
27+#
28+# Licensed under the Apache License, Version 2.0 (the "License");
29+# you may not use this file except in compliance with the License.
30+# You may obtain a copy of the License at
31+#
32+# http://www.apache.org/licenses/LICENSE-2.0
33+#
34+# Unless required by applicable law or agreed to in writing, software
35+# distributed under the License is distributed on an "AS IS" BASIS,
36+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
37+# See the License for the specific language governing permissions and
38+# limitations under the License.
39+
40+DECLARE_ZORBA_MODULE(FILE math.xq VERSION 1.0
41+ URI "http://zorba.io/modules/math")
42+DECLARE_ZORBA_MODULE(FILE random.xq VERSION 1.0
43+ URI "http://zorba.io/modules/random")
44+DECLARE_ZORBA_MODULE(FILE base64.xq VERSION 1.0
45+ URI "http://zorba.io/modules/base64")
46
47=== renamed file 'modules/base64/base64.xq' => 'modules/atomic/base64.xq'
48=== renamed file 'modules/com/zorba-xquery/www/modules/math.xq' => 'modules/atomic/math.xq'
49--- modules/com/zorba-xquery/www/modules/math.xq 2013-06-15 16:20:18 +0000
50+++ modules/atomic/math.xq 2013-07-17 15:56:30 +0000
51@@ -1,4 +1,4 @@
52-xquery version "3.0";
53+jsoniq version "1.0";
54
55 (:
56 : Copyright 2006-2009 The FLWOR Foundation.
57@@ -17,12 +17,12 @@
58 :)
59
60 (:~
61- : Extensive math library.
62+ : Extensive math library.<p/>
63 :
64 : @author Daniel Turcanu, Dan Muresan
65 : @project Zorba/XQuery Data Model/Atomic/Math
66 :)
67-module namespace math = "http://www.zorba-xquery.com/modules/math";
68+module namespace math = "http://zorba.io/modules/math";
69
70 (:~
71 : W3C Math namespace URI.
72@@ -30,42 +30,23 @@
73 declare namespace W3Cmath = "http://www.w3.org/2005/xpath-functions/math";
74
75 declare namespace ver = "http://www.zorba-xquery.com/options/versioning";
76-declare option ver:module-version "2.0";
77-
78-(:~
79- : Errors namespace URI.
80-:)
81-declare variable $math:errNS as xs:string := "http://www.zorba-xquery.com/modules/math";
82-
83-(:~
84- : xs:QName with namespace URI="http://www.zorba-xquery.com/modules/math" and local name "math:Value"
85-:)
86-declare variable $math:errValue as xs:QName := fn:QName($math:errNS, "math:Value");
87-
88-(:~
89- : xs:QName with namespace URI="http://www.zorba-xquery.com/modules/math" and local name "math:Num"
90-:)
91-declare variable $math:errNum as xs:QName := fn:QName($math:errNS, "math:Num");
92-
93-(:~
94- : xs:QName with namespace URI="http://www.zorba-xquery.com/modules/math" and local name "math:Div0"
95-:)
96-declare variable $math:errDiv0 as xs:QName := fn:QName($math:errNS, "math:Div0");
97-
98-(:~
99- : xs:QName with namespace URI="http://www.zorba-xquery.com/modules/math" and local name "math:NA"
100-:)
101-declare variable $math:errNA as xs:QName := fn:QName($math:errNS, "math:NA");
102-
103-
104-(:~
105- : Returns the hyperbolic cosine of x.
106+declare option ver:module-version "1.0";
107+
108+declare %private variable $math:errNS as string := "http://zorba.io/modules/math";
109+declare %private variable $math:VALUE_NOT_NUMERIC as QName := fn:QName($math:errNS, "math:VALUE_NOT_NUMERIC");
110+declare %private variable $math:INVALID_ARGUMENT as QName := fn:QName($math:errNS, "math:INVALID_ARGUMENT");
111+declare %private variable $math:DIVIDE_BY_0 as QName := fn:QName($math:errNS, "math:DIVIDE_BY_0");
112+declare %private variable $math:INVALID_INPUT as QName := fn:QName($math:errNS, "math:INVALID_INPUT");
113+
114+
115+(:~
116+ : Returns the hyperbolic cosine of x.<p/>
117 : If the result it too large, INF is returned.
118 :
119 : @param $arg must be smaller than 7.104760e+002
120 : @return cosh(arg)
121 :)
122-declare function math:cosh ($arg as xs:double) as xs:double external;
123+declare function math:cosh ($arg as double) as double external;
124
125 (:~
126 : Inverse hyperbolic cosine.
127@@ -73,7 +54,7 @@
128 : @param $arg the arg
129 : @return the result of acosh(arg)
130 :)
131-declare function math:acosh ($arg as xs:double) as xs:double external;
132+declare function math:acosh ($arg as double) as double external;
133
134 (:~
135 : Function performing the modulo operation between the two arguments.
136@@ -82,51 +63,51 @@
137 : @param $y the y
138 : @return The remainder of x/y.
139 :)
140-declare function math:fmod ($x as xs:double, $y as xs:double) as xs:double external;
141+declare function math:fmod ($x as double, $y as double) as double external;
142
143 (:~
144- : Returns the argument split as mantissa and exponent.
145+ : Returns the argument split as mantissa and exponent.<p/>
146 : The recombining formula is (mantissa * 2^exponent).
147 :
148 : @param $arg the double to be split.
149 : @return A sequence of two doubles (mantissa, exponent)
150 :)
151-declare function math:frexp ($arg as xs:double) as xs:double+ external;
152+declare function math:frexp ($arg as double) as double+ external;
153
154 (:~
155- : Computes a real number from the mantissa and exponent.
156+ : Computes a real number from the mantissa and exponent.<p/>
157 : The formula is (x * 2^i).
158 :
159 : @param $x the mantissa
160 : @param $i the exponent
161 : @return the computed real number
162 :)
163-declare function math:ldexp ($x as xs:double, $i as xs:integer) as xs:double external;
164+declare function math:ldexp ($x as double, $i as integer) as double external;
165
166 (:~
167- : Splits a floating-point value into fractional and integer parts.
168+ : Splits a floating-point value into fractional and integer parts.<p/>
169 : Both the fraction and integer keep the original sign of the value.
170 :
171 : @param $arg the double to be split.
172 : @return A sequence of two doubles (fraction, integer)
173 :)
174-declare function math:modf ($arg as xs:double) as xs:double+ external;
175+declare function math:modf ($arg as double) as double+ external;
176
177 (:~
178- : Calculate hyperbolic sine.
179+ : Calculate the hyperbolic sine.
180 :
181 : @param $arg the arg
182 : @return the result of sinh(arg)
183 :)
184-declare function math:sinh ($arg as xs:double) as xs:double external;
185+declare function math:sinh ($arg as double) as double external;
186
187 (:~
188- : Inverse hyperbolic sine of the number.
189+ : Calculate the inverse hyperbolic sine.
190 :
191 : @param $arg the arg
192 : @return the result of asinh(arg)
193 :)
194-declare function math:asinh($arg as xs:double) as xs:double external;
195+declare function math:asinh($arg as double) as double external;
196
197 (:~
198 : Calculate the hyperbolic tangent.
199@@ -134,7 +115,7 @@
200 : @param $arg the arg
201 : @return the result of tanh(arg)
202 :)
203-declare function math:tanh($arg as xs:double) as xs:double external;
204+declare function math:tanh($arg as double) as double external;
205
206 (:~
207 : Calculate the hyperbolic tangent.
208@@ -142,27 +123,27 @@
209 : @param $arg must be in range -1 ... +1 (exclusive)
210 : @return the result of atanh(arg)
211 :)
212-declare function math:atanh($arg as xs:double) as xs:double external;
213+declare function math:atanh($arg as double) as double external;
214
215 (:~
216- : Convert angle from degrees to radians. <br/>
217+ : Convert angle from degrees to radians. <p/>
218 : The parameter is first converted to value range of (-360, 360).
219 :
220 : @param $deg angle in degrees
221 : @return value in radians (-2PI, 2PI)
222 :)
223-declare function math:deg-to-rad($deg as xs:double) as xs:double
224+declare function math:deg-to-rad($deg as double) as double
225 {
226 ($deg mod 360) * 2 * W3Cmath:pi() div 360
227 };
228
229 (:~
230- : Convert angle from radians to degrees. <br/>
231+ : Convert angle from radians to degrees. <p/>
232 :
233 : @param $rad value in radians
234 : @return value in degrees (-360, 360)
235 :)
236-declare function math:rad-to-deg($rad as xs:double) as xs:double
237+declare function math:rad-to-deg($rad as double) as double
238 {
239 ($rad * 360 div 2 div W3Cmath:pi()) mod 360
240 };
241@@ -173,7 +154,7 @@
242 : @param $arg the double to be checked
243 : @return boolean true if argument is pos INF or neg INF
244 :)
245-declare function math:is_inf($arg as xs:double) as xs:boolean external;
246+declare function math:is_inf($arg as double) as boolean external;
247
248 (:~
249 : Checks if the double value is Not a Number (NaN).
250@@ -181,7 +162,7 @@
251 : @param $arg the arg
252 : @return boolean true if the double is NaN
253 :)
254-declare function math:is_nan($arg as xs:double) as xs:boolean external;
255+declare function math:is_nan($arg as double) as boolean external;
256
257
258
259@@ -189,58 +170,59 @@
260 (:Excel math functions:)
261
262 (:~
263- : Borrowed from excel module.<br/>
264- : Checks if the xs:anyAtomicType argument is actually a numeric type
265- : or can be converted to numeric.
266+ : Checks if the anyAtomicType argument is actually a numeric type
267+ : or can be converted to numeric.<p/>
268+ : Borrowed from excel module.
269 :
270 : @param $value Parameter to be checked.
271 : @return true if the value can be casted to numeric.
272 :)
273-declare function math:is-a-number($value as xs:anyAtomicType) as xs:boolean
274+declare function math:is-a-number($value as anyAtomicType) as boolean
275 {
276- fn:string(fn:number($value)) ne 'NaN'
277+ fn:string(fn:number($value)) ne "NaN"
278 };
279
280 (:~
281- : Borrowed from excel module.<br/>
282- : Cast the xs:anyAtomicType to a numeric type.
283+ : Cast the anyAtomicType to a numeric type.<p/>
284 : If the value is already of a numeric type then nothing is changed.
285 : Otherwise the value is casted to the numeric type that is most appropriate.
286+ : <p/>
287+ : Borrowed from excel module.
288 :
289 : @param $number The parameter can be a number, string, boolean value.
290 : @return The casted value.
291- : @error math:errValue if the value cannot be casted to numeric type.
292+ : @error math:VALUE_NOT_NUMERIC if the value cannot be casted to numeric type.
293 :)
294-declare function math:cast-as-numeric($number as xs:anyAtomicType) as xs:anyAtomicType
295+declare function math:cast-as-numeric($number as anyAtomicType) as anyAtomicType
296 {
297 typeswitch ($number)
298- case xs:double return $number
299- case xs:decimal return $number
300- case xs:double return $number
301- case xs:float return $number
302+ case double return $number
303+ case decimal return $number
304+ case double return $number
305+ case float return $number
306 default return
307- if ($number castable as xs:integer) then
308- xs:integer($number)
309- else if ($number castable as xs:decimal) then
310- xs:decimal($number)
311- else if ($number castable as xs:double) then
312- xs:double($number)
313+ if ($number castable as integer) then
314+ integer($number)
315+ else if ($number castable as decimal) then
316+ decimal($number)
317+ else if ($number castable as double) then
318+ double($number)
319 else
320- fn:error($math:errValue, "Provided value is not a number", $number)
321+ fn:error($math:VALUE_NOT_NUMERIC, "Provided value is not a number", $number)
322 };
323
324 (:~
325- : Borrowed from excel module.<br/>
326- : Returns number rounded up, away from zero, to the nearest multiple of significance.
327+ : Returns number rounded up, away from zero, to the nearest multiple of significance.<p/>
328 : Significance must have the same sign as number.
329 : Number and significance must be of a numeric type or castable to numeric.
330- : Significance must not be zero.
331+ : Significance must not be zero.<p/>
332+ : Borrowed from excel module.
333 :
334 : @see http://office.microsoft.com/en-us/excel/HP052090071033.aspx
335 : @param $number The value you want to round.
336 : @param $significance The multiple to which you want to round.
337 : @return The rounded value.
338- : @error math:errNum if significance is zero or it doesn't have the same sign as number.
339+ : @error math:INVALID_ARGUMENT if significance is zero or it doesn't have the same sign as number.
340 : @example test/rbkt/Queries/zorba/math/from_excel/excel_ceiling1.xq
341 : @example test/rbkt/Queries/zorba/math/from_excel/excel_ceiling2.xq
342 : @example test/rbkt/Queries/zorba/math/from_excel/excel_ceiling3.xq
343@@ -250,21 +232,21 @@
344 : @example test/rbkt/Queries/zorba/math/from_excel/excel_ceiling7.xq
345 :)
346 declare function math:ceiling(
347- $number as xs:double,
348- $significance as xs:double) as xs:double
349+ $number as double,
350+ $significance as double) as double
351 {
352 if ($significance eq 0) then
353- fn:error($math:errNum, "Ceiling function does not accept significance 0")
354+ fn:error($math:INVALID_ARGUMENT, "Ceiling function does not accept significance 0")
355 else if ($number * $significance ge 0) then
356 fn:ceiling($number div $significance) * $significance
357 else
358- fn:error($math:errNum, "Ceiling function: both arguments must have the same sign")
359+ fn:error($math:INVALID_ARGUMENT, "Ceiling function: both arguments must have the same sign")
360 };
361
362 (:~
363- : Borrowed from excel module.<br/>
364- : Returns number rounded up to the nearest even integer.
365- : Regardless of the sign of number, a value is rounded up when adjusted away from zero.
366+ : Returns number rounded up to the nearest even integer.<p/>
367+ : Regardless of the sign of number, a value is rounded up when adjusted away from zero.<p/>
368+ : Borrowed from excel module.
369 :
370 : @see http://office.microsoft.com/en-us/excel/HP052090801033.aspx
371 : @param $number The value to round.
372@@ -276,14 +258,14 @@
373 : @example test/rbkt/Queries/zorba/math/from_excel/excel_even5.xq
374 : @example test/rbkt/Queries/zorba/math/from_excel/excel_even6.xq
375 :)
376-declare function math:even($number as xs:double) as xs:integer
377+declare function math:even($number as double) as integer
378 {
379 let $num := $number
380 return
381- if ($num = 0) then
382+ if ($num eq 0) then
383 0
384 else
385- let $intnum := xs:integer(math:ceiling($num, math:sign($num)))
386+ let $intnum := integer(math:ceiling($num, math:sign($num)))
387 return
388 if ($intnum mod 2 ne 0) then
389 if ($intnum gt 0) then
390@@ -295,58 +277,57 @@
391 };
392
393 (:~
394+ : Function for computing factorial.<p/>
395+ : This recursive function computes: number * fact(number-1)<p/>
396 : Borrowed from excel module.<br/>
397- : Function for computing factorial.
398- : This function should not be used outside this module.
399- : This recursive function computes: number * fact(number-1)
400 :
401 : @param $intnum A positive integer.
402 : @return The factorial of intnum.
403 :)
404-declare %private function math:fact-integer($intnum as xs:integer) as xs:integer
405+declare %private function math:fact-integer($intnum as integer) as integer
406 {
407- if ($intnum = 1) then
408+ if ($intnum eq 1) then
409 1
410 else
411 $intnum * math:fact-integer($intnum - 1)
412 };
413
414 (:~
415- : Borrowed from excel module.<br/>
416- : Returns the factorial of a number.
417+ : Returns the factorial of a number.<p/>
418+ : Borrowed from excel module.
419 :
420 : @see http://office.microsoft.com/en-us/excel/HP052090841033.aspx
421 : @param $number The non-negative number you want the factorial of.
422 : @return Returns the factorial of a number. The factorial of a number is equal to 1*2*3*...* number.
423- : @error math:errNum if the number is smaller than zero
424+ : @error math:INVALID_ARGUMENT if the number is smaller than zero
425 : @example test/rbkt/Queries/zorba/math/from_excel/excel_fact1.xq
426 : @example test/rbkt/Queries/zorba/math/from_excel/excel_fact2.xq
427 : @example test/rbkt/Queries/zorba/math/from_excel/excel_fact3.xq
428 : @example test/rbkt/Queries/zorba/math/from_excel/excel_fact4.xq
429 : @example test/rbkt/Queries/zorba/math/from_excel/excel_fact5.xq
430 :)
431-declare function math:fact($number as xs:integer) as xs:integer
432+declare function math:fact($number as integer) as integer
433 {
434 let $num := $number return
435 if ($num eq 0) then
436 1
437 else
438 if ($num lt 0) then
439- fn:error($math:errNum, "Fact function does not accept numbers smaller than zero")
440+ fn:error($math:INVALID_ARGUMENT, "Fact function does not accept numbers smaller than zero")
441 else
442- math:fact-integer(xs:integer($num))
443+ math:fact-integer(integer($num))
444 };
445
446 (:~
447- : Borrowed from excel module.<br/>
448- : Rounds number down, toward zero, to the nearest multiple of significance.
449+ : Rounds number down, toward zero, to the nearest multiple of significance.<p/>
450 : Significance must have the same sign as number.
451+ : Borrowed from excel module.
452 :
453 : @see http://office.microsoft.com/en-us/excel/HP052090941033.aspx
454 : @param $number The value you want to round.
455 : @param $significance The multiple to which you want to round.
456 : @return The rounded value as numeric type.
457- : @error math:errNum if significance is zero or it doesn't have the same sign as number.
458+ : @error math:INVALID_ARGUMENT if significance is zero or it doesn't have the same sign as number.
459 : @example test/rbkt/Queries/zorba/math/from_excel/excel_floor1.xq
460 : @example test/rbkt/Queries/zorba/math/from_excel/excel_floor2.xq
461 : @example test/rbkt/Queries/zorba/math/from_excel/excel_floor3.xq
462@@ -354,24 +335,24 @@
463 : @example test/rbkt/Queries/zorba/math/from_excel/excel_floor5.xq
464 :)
465 declare function math:floor(
466- $number as xs:double,
467- $significance as xs:double) as xs:double
468+ $number as double,
469+ $significance as double) as double
470 {
471 let $num := $number
472 let $sig := $significance
473 return
474 if ($sig eq 0) then
475- fn:error($math:errNum, "Floor function does not accept significance 0")
476+ fn:error($math:INVALID_ARGUMENT, "Floor function does not accept significance 0")
477 else if ($num * $sig ge 0) then
478 fn:floor($num div $sig) * $sig
479 else
480- fn:error($math:errNum, "Floor function: both arguments must have the same sign")
481+ fn:error($math:INVALID_ARGUMENT, "Floor function: both arguments must have the same sign")
482 };
483
484 (:~
485- : Borrowed from excel module.<br/>
486- : Rounds a number down to the nearest integer.
487- : Positive numbers are rounded toward zero, negative numbers are rounded away from zero.
488+ : Rounds a number down to the nearest integer.<p/>
489+ : Positive numbers are rounded toward zero, negative numbers are rounded away from zero.<p/>
490+ : Borrowed from excel module.
491 :
492 : @see http://office.microsoft.com/en-us/excel/HP052091421033.aspx
493 : @param $number The value to be rounded.
494@@ -381,35 +362,35 @@
495 : @example test/rbkt/Queries/zorba/math/from_excel/excel_int3.xq
496 : @example test/rbkt/Queries/zorba/math/from_excel/excel_int4.xq
497 :)
498-declare function math:int($number as xs:double) as xs:integer
499+declare function math:int($number as double) as integer
500 {
501- xs:integer(fn:floor($number))
502+ integer(fn:floor($number))
503 };
504
505 (:~
506- : Borrowed from excel module.<br/>
507- : Returns the remainder after number is divided by divisor.
508- : The result has the same sign as divisor.
509+ : Returns the remainder after number is divided by divisor.<p/>
510+ : The result has the same sign as divisor.<p/>
511+ : Borrowed from excel module.
512 :
513 : @see http://office.microsoft.com/en-us/excel/HP052091821033.aspx
514 : @param $number The number for which you want to find the remainder.
515 : @param $divisor The number by which you want to divide number.
516 : This cannot be zero.
517 : @return The remainder from division as numeric type.
518- : @error math:errDiv0 if divisor is zero after casting to numeric.
519+ : @error math:DIVIDE_BY_0 if divisor is zero after casting to numeric.
520 : @example test/rbkt/Queries/zorba/math/from_excel/excel_mod1.xq
521 : @example test/rbkt/Queries/zorba/math/from_excel/excel_mod2.xq
522 : @example test/rbkt/Queries/zorba/math/from_excel/excel_mod3.xq
523 : @example test/rbkt/Queries/zorba/math/from_excel/excel_mod4.xq
524 :)
525 declare function math:mod(
526- $number as xs:double,
527- $divisor as xs:double) as xs:double
528+ $number as double,
529+ $divisor as double) as double
530 {
531 let $num := $number
532 let $div := $divisor return
533 if ($div eq 0) then
534- fn:error($math:errDiv0, "Mod operator: divide by 0")
535+ fn:error($math:DIVIDE_BY_0, "Mod operator: divide by 0")
536 else
537 let $result := $num mod $div
538 return
539@@ -420,8 +401,8 @@
540 };
541
542 (:~
543- : Borrowed from excel module.<br/>
544- : Returns number rounded up to the nearest odd integer, away from zero.
545+ : Returns number rounded up to the nearest odd integer, away from zero.<p/>
546+ : Borrowed from excel module.
547 :
548 : @see http://office.microsoft.com/en-us/excel/HP052092031033.aspx
549 : @param $number The value to round.
550@@ -433,33 +414,32 @@
551 : @example test/rbkt/Queries/zorba/math/from_excel/excel_odd5.xq
552 : @example test/rbkt/Queries/zorba/math/from_excel/excel_odd6.xq
553 :)
554-declare function math:odd($number as xs:double) as xs:integer
555+declare function math:odd($number as double) as integer
556 {
557 let $num := $number return
558 if ($num eq 0) then
559 1
560 else
561- let $intnum := xs:integer(math:ceiling($num, math:sign($num)))
562+ let $intnum := integer(math:ceiling($num, math:sign($num)))
563 return
564 if ($intnum mod 2 eq 0) then
565 if ($intnum ge 0) then
566- ($intnum + 1) cast as xs:integer
567+ ($intnum + 1) cast as integer
568 else
569- ($intnum - 1) cast as xs:integer
570+ ($intnum - 1) cast as integer
571 else
572- $intnum cast as xs:integer
573+ $intnum cast as integer
574 };
575
576 (:~
577- : Borrowed from excel module.<br/>
578- : Function for product.
579- : This function should not be used outside this module.
580- : Multiplies all numbers in the sequence.
581+ : Function for product.<p/>
582+ : Multiplies all numbers in the sequence.<p/>
583+ : Borrowed from excel module.
584 :
585 : @param $numbers The list of arguments to be casted to numeric and multiplied.
586 : @return The multiplication result as numeric type.
587 :)
588-declare %private function math:product-internal($numbers as xs:double*) as xs:double
589+declare %private function math:product-internal($numbers as double*) as double
590 {
591 if (fn:empty($numbers)) then
592 1
593@@ -470,8 +450,8 @@
594 };
595
596 (:~
597- : Borrowed from excel module.<br/>
598- : Multiplies all the numbers given as arguments and returns the product.
599+ : Multiplies all the numbers given as arguments and returns the product.<p/>
600+ : Borrowed from excel module.
601 :
602 : @see http://office.microsoft.com/en-us/excel/HP052092231033.aspx
603 : @param $numbers The sequence of arguments convertible to numeric types.
604@@ -483,7 +463,7 @@
605 : @example test/rbkt/Queries/zorba/math/from_excel/excel_product4.xq
606 : @example test/rbkt/Queries/zorba/math/from_excel/excel_product5.xq
607 :)
608-declare function math:product($numbers as xs:double*) as xs:double
609+declare function math:product($numbers as double*) as double
610 {
611 if (fn:empty($numbers)) then
612 0
613@@ -492,40 +472,40 @@
614 };
615
616 (:~
617- : Borrowed from excel module.<br/>
618- : Returns the integer portion of a division.
619+ : Returns the integer portion of a division.<p/>
620+ : Borrowed from excel module.
621 :
622 : @see http://office.microsoft.com/en-us/excel/HP052092271033.aspx
623 : @param $numerator The divider.
624 : @param $denominator The divisor. It cannot be zero.
625 : @return The result value as numeric type.
626- : @error math:errDiv0 if denominator casted as numeric type has value zero.
627+ : @error math:DIVIDE_BY_0 if denominator casted as numeric type has value zero.
628 : @example test/rbkt/Queries/zorba/math/from_excel/excel_quotient1.xq
629 : @example test/rbkt/Queries/zorba/math/from_excel/excel_quotient2.xq
630 : @example test/rbkt/Queries/zorba/math/from_excel/excel_quotient3.xq
631 : @example test/rbkt/Queries/zorba/math/from_excel/excel_quotient4.xq
632 :)
633 declare function math:quotient(
634- $numerator as xs:double,
635- $denominator as xs:double) as xs:integer
636+ $numerator as double,
637+ $denominator as double) as integer
638 {
639 let $numer := $numerator
640 let $denom := $denominator
641 return
642 if ($denom eq 0) then
643- fn:error($math:errDiv0, "Quotient function: divide by 0")
644+ fn:error($math:DIVIDE_BY_0, "Quotient function: divide by 0")
645 else
646- xs:integer($numer div $denom)
647+ integer($numer div $denom)
648 };
649
650 (:~
651- : Borrowed from excel module.<br/>
652- : Rounds a number to a specified number of digits.
653+ : Rounds a number to a specified number of digits.<p/>
654 : If precision is greater than 0 (zero), then number is rounded
655 : to the specified number of decimal places.
656 : If num_digits is 0, then number is rounded to the nearest integer.
657 : If num_digits is less than 0, then number is rounded to the left of the decimal point.
658- : The 0.5 is rounded away from zero.
659+ : The 0.5 is rounded away from zero. <p/>
660+ : Borrowed from excel module.
661 :
662 : @see http://office.microsoft.com/en-us/excel/HP052092391033.aspx
663 : @param $number The number to round.
664@@ -537,8 +517,8 @@
665 : @example test/rbkt/Queries/zorba/math/from_excel/excel_round4.xq
666 :)
667 declare function math:round(
668- $number as xs:double,
669- $precision as xs:integer) as xs:double
670+ $number as double,
671+ $precision as integer) as double
672 {
673 let $num := $number
674 return
675@@ -559,12 +539,12 @@
676 };
677
678 (:~
679- : Borrowed from excel module.<br/>
680- : Rounds a number down, toward zero.
681+ : Rounds a number down, toward zero.<p/>
682 : If num_digits is greater than 0 (zero), then number is rounded down
683 : to the specified number of decimal places.
684 : If num_digits is 0, then number is rounded down to the nearest integer.
685- : If num_digits is less than 0, then number is rounded down to the left of the decimal point.
686+ : If num_digits is less than 0, then number is rounded down to the left of the decimal point. <p/>
687+ : Borrowed from excel module.
688 :
689 : @see http://office.microsoft.com/en-us/excel/HP052092411033.aspx
690 : @param $number The number to round
691@@ -577,8 +557,8 @@
692 : @example test/rbkt/Queries/zorba/math/from_excel/excel_rounddown5.xq
693 :)
694 declare function math:rounddown(
695- $number as xs:double,
696- $precision as xs:integer) as xs:double
697+ $number as double,
698+ $precision as integer) as double
699 {
700 let $num := $number
701 return
702@@ -599,12 +579,12 @@
703 };
704
705 (:~
706- : Borrowed from excel module.<br/>
707- : Rounds a number up, away from 0 (zero).
708+ : Rounds a number up, away from 0 (zero).<p/>
709 : If num_digits is greater than 0 (zero), then number is rounded down
710 : to the specified number of decimal places.
711 : If num_digits is 0, then number is rounded down to the nearest integer.
712- : If num_digits is less than 0, then number is rounded down to the left of the decimal point.
713+ : If num_digits is less than 0, then number is rounded down to the left of the decimal point. <p/>
714+ : Borrowed from excel module.
715 :
716 : @see http://office.microsoft.com/en-us/excel/HP052092421033.aspx
717 : @param $number The number to round
718@@ -617,8 +597,8 @@
719 : @example test/rbkt/Queries/zorba/math/from_excel/excel_roundup5.xq
720 :)
721 declare function math:roundup(
722- $number as xs:double,
723- $precision as xs:integer) as xs:double
724+ $number as double,
725+ $precision as integer) as double
726 {
727 let $num := $number
728 return
729@@ -639,10 +619,10 @@
730 };
731
732 (:~
733- : Borrowed from excel module.<br/>
734- : Determines the sign of a number.
735+ : Determines the sign of a number. <p/>
736 : Returns 1 if the number is positive, zero (0) if the number is 0,
737- : and -1 if the number is negative.
738+ : and -1 if the number is negative.<p/>
739+ : Borrowed from excel module.
740 :
741 : @see http://office.microsoft.com/en-us/excel/HP052092551033.aspx
742 : @param $number The argument
743@@ -651,7 +631,7 @@
744 : @example test/rbkt/Queries/zorba/math/from_excel/excel_sign2.xq
745 : @example test/rbkt/Queries/zorba/math/from_excel/excel_sign3.xq
746 :)
747-declare function math:sign($number as xs:double) as xs:integer
748+declare function math:sign($number as double) as integer
749 {
750 let $num := $number
751 return
752@@ -664,8 +644,8 @@
753 };
754
755 (:~
756- : Borrowed from excel module.<br/>
757- : Truncates a number to an integer by removing the fractional part of the number.
758+ : Truncates a number to an integer by removing the fractional part of the number.<p/>
759+ : Borrowed from excel module.
760 :
761 : @see http://office.microsoft.com/en-us/excel/HP052093241033.aspx
762 : @param $number The argument .
763@@ -673,15 +653,15 @@
764 : @example test/rbkt/Queries/zorba/math/from_excel/excel_trunc1.xq
765 : @example test/rbkt/Queries/zorba/math/from_excel/excel_trunc2.xq
766 :)
767-declare function math:trunc($number as xs:double ) as xs:integer
768+declare function math:trunc($number as double ) as integer
769 {
770- xs:integer($number)
771+ integer($number)
772 };
773
774 (:~
775- : Borrowed from excel module.<br/>
776- : Truncates a number down to precision.
777- : This behaves exactly like rounddown.
778+ : Truncates a number down to precision.<p/>
779+ : This behaves exactly like rounddown.<p/>
780+ : Borrowed from excel module.
781 :
782 : @see http://office.microsoft.com/en-us/excel/HP052093241033.aspx
783 : @param $number The argument castable to numeric type.
784@@ -690,22 +670,22 @@
785 : @example test/rbkt/Queries/zorba/math/from_excel/excel_trunc3.xq
786 :)
787 declare function math:trunc(
788- $number as xs:double,
789- $precision as xs:integer) as xs:double
790+ $number as double,
791+ $precision as integer) as double
792 {
793 math:rounddown($number, $precision)
794 };
795
796 (:~
797- : Borrowed from excel module.<br/>
798+ : Sorts a sequence of numbers or arguments castable to numeric.<p/>
799+ : It first casts all arguments to numeric and then sorts ascending.<p/>
800 : Helper function.<br/>
801- : Sorts a sequence of numbers or arguments castable to numeric.
802- : It first casts all arguments to numeric and then sorts ascending.
803+ : Borrowed from excel module.
804 :
805 : @param $numbers The sequence of arguments castable to numeric.
806 : @return The sorted sequence as numeric types.
807 :)
808-declare function math:sort-numbers($numbers as xs:double*) as xs:double*
809+declare function math:sort-numbers($numbers as double*) as double*
810 {
811 let $sorted-numbers :=
812 (
813@@ -718,21 +698,21 @@
814 };
815
816 (:~
817- : Borrowed from excel module.<br/>
818- : Returns the double factorial of a number.
819- : Computes the double factorial of n as n(n-2)(n-4)...
820+ : Returns the double factorial of a number.<p/>
821+ : Computes the double factorial of n as n(n-2)(n-4)...<p/>
822+ : Borrowed from excel module.
823 :
824 : @see http://office.microsoft.com/en-us/excel/HP052090851033.aspx
825 : @param $number The positive integer value.
826 : @return The result as integer.
827- : @error math:errNum if the number is negative.
828+ : @error math:INVALID_ARGUMENT if the number is negative.
829 : @example test/rbkt/Queries/zorba/math/from_excel/excel_factdouble1.xq
830 : @example test/rbkt/Queries/zorba/math/from_excel/excel_factdouble2.xq
831 :)
832-declare function math:factdouble($number as xs:integer) as xs:integer
833+declare function math:factdouble($number as integer) as integer
834 {
835 if ($number lt 0) then
836- fn:error($math:errNum, "Factdouble function: number should be greater than zero or equal")
837+ fn:error($math:INVALID_ARGUMENT, "Factdouble function: number should be greater than zero or equal")
838 else if ($number eq 1) then
839 1
840 else if ($number eq 2) then
841@@ -742,16 +722,15 @@
842 };
843
844 (:~
845- : Borrowed from excel module.<br/>
846- : Function for computing GCD.
847- : This function should not be used outside this module.
848+ : Function for computing GCD.<p/>
849 : It calculates the minimum value from a sequence of positive integers,
850- : not taking into account the zero value.
851+ : not taking into account the zero value.<p/>
852+ : Borrowed from excel module.
853 :
854 : @param $numbers The sequence of positive integers.
855 : @return The minimum value. If the sequence contains only zero values, then zero is returned.
856 :)
857-declare %private function math:min-without-zero($numbers as xs:integer+) as xs:integer
858+declare %private function math:min-without-zero($numbers as integer+) as integer
859 {
860 if (fn:count($numbers) eq 1) then
861 $numbers[1]
862@@ -769,36 +748,33 @@
863 };
864
865 (:~
866- : Borrowed from excel module.<br/>
867- : Function for computing GCD.
868- : This function should not be used outside this module.
869- : Checks if all integer numbers from a sequence divide exactly to a divider.
870+ : Function for computing GCD.<p/>
871+ : Checks if all integer numbers from a sequence divide exactly to a divider.<p/>
872+ : Borrowed from excel module.
873 :
874 : @param $numbers The positive integers.
875 : @param $divider The divider to be tried.
876 : @return true if the numbers divide exactly.
877 :)
878 declare %private function math:try-exact-divide(
879- $numbers as xs:integer*,
880- $divider as xs:integer) as xs:boolean
881+ $numbers as integer*,
882+ $divider as integer) as boolean
883 {
884 if (fn:empty($numbers)) then
885- fn:true()
886+ true
887 else
888 if ($numbers[1] mod $divider ne 0) then
889- fn:false()
890+ false
891 else
892 math:try-exact-divide(fn:subsequence($numbers, 2), $divider)
893 };
894
895 (:~
896- : Borrowed from excel module.<br/>
897- : Function for computing GCD.
898- : This function should not be used outside this module.
899+ : Function for computing GCD.<p/>
900 : This function iterates through possible divisors and checks if the sequence
901 : divides exactly to any of those. It starts from the minimum value from the
902- : sequence and searches downwards.
903- :
904+ : sequence and searches downwards.<p/>
905+ : Borrowed from excel module.
906 : @param $numbers The sequence of positive integers.
907 : @param $min-nonzero The minimum value of numbers sequence, excluding the zero value.
908 : @param $iteration Which iteration is it. It starts from 1 and continues
909@@ -806,9 +782,9 @@
910 : @return The greatest common divisor if found, or 1 if not found.
911 :)
912 declare %private function math:iterate-all-gcd(
913- $numbers as xs:integer*,
914- $min-nonzero as xs:integer,
915- $iteration as xs:integer) as xs:integer
916+ $numbers as integer*,
917+ $min-nonzero as integer,
918+ $iteration as integer) as integer
919 {
920 if ($min-nonzero mod $iteration eq 0) then
921 if (math:try-exact-divide($numbers, $min-nonzero idiv $iteration)) then
922@@ -816,21 +792,21 @@
923 else
924 math:iterate-all-gcd($numbers, $min-nonzero, $iteration + 1)
925 else
926- if ($iteration > $min-nonzero idiv 2) then
927+ if ($iteration gt $min-nonzero idiv 2) then
928 1
929 else
930 math:iterate-all-gcd($numbers, $min-nonzero, $iteration + 1)
931 };
932
933 (:~
934- : Borrowed from excel module.<br/>
935- : Returns the greatest common divisor GCD of a sequence of integers.
936- : The sequence can have one or more positive integers.
937+ : Returns the greatest common divisor GCD of a sequence of integers.<p/>
938+ : The sequence can have one or more positive integers.<p/>
939+ : Borrowed from excel module.
940 :
941 : @see http://office.microsoft.com/en-us/excel/HP052091041033.aspx
942 : @param $numbers The sequence of positive integers.
943 : @return The GCD as integer.
944- : @error math:errNum if any number is smaller than zero.
945+ : @error math:INVALID_ARGUMENT if any number is smaller than zero.
946 : @example test/rbkt/Queries/zorba/math/from_excel/excel_gcd1.xq
947 : @example test/rbkt/Queries/zorba/math/from_excel/excel_gcd2.xq
948 : @example test/rbkt/Queries/zorba/math/from_excel/excel_gcd3.xq
949@@ -840,15 +816,15 @@
950 : @example test/rbkt/Queries/zorba/math/from_excel/excel_gcd7.xq
951 : @example test/rbkt/Queries/zorba/math/from_excel/excel_gcd8.xq
952 :)
953-declare function math:gcd($numbers as xs:integer+) as xs:integer
954+declare function math:gcd($numbers as integer+) as integer
955 {
956- if (fn:count($numbers) = 1) then
957+ if (fn:count($numbers) eq 1) then
958 $numbers[1]
959 else
960 let $minval := math:min-without-zero($numbers)
961 return
962 if ($minval lt 0) then
963- fn:error($math:errNum, "gcd function: numbers should be greater than zero or equal")
964+ fn:error($math:INVALID_ARGUMENT, "gcd function: numbers should be greater than zero or equal")
965 else if ($minval eq 0) then
966 0
967 else
968@@ -856,22 +832,22 @@
969 };
970
971 (:~
972- : Borrowed from excel module.<br/>
973- : Returns the least common multiple of integers.<br/>
974- : LCM for two numbers is computed by multiplying them and dividing with GCD. <br/>
975- : The function is applied recursively replacing the first two numbers in the sequence with their LCM.
976+ : Returns the least common multiple of integers.<p/>
977+ : LCM for two numbers is computed by multiplying them and dividing with GCD.
978+ : The function is applied recursively replacing the first two numbers in the sequence with their LCM.<p/>
979+ : Borrowed from excel module.
980 :
981 : @see http://office.microsoft.com/en-us/excel/HP052091521033.aspx
982 : @param $numbers The sequence of one or more positive integers.
983 : @return The LCM as integer.
984- : @error math:errNum if any number is smaller than zero.
985+ : @error math:INVALID_ARGUMENT if any number is smaller than zero.
986 : @example test/rbkt/Queries/zorba/math/from_excel/excel_lcm1.xq
987 : @example test/rbkt/Queries/zorba/math/from_excel/excel_lcm2.xq
988 : @example test/rbkt/Queries/zorba/math/from_excel/excel_lcm3.xq
989 : @example test/rbkt/Queries/zorba/math/from_excel/excel_lcm4.xq
990 : @example test/rbkt/Queries/zorba/math/from_excel/excel_lcm5.xq
991 :)
992-declare function math:lcm($numbers as xs:integer+) as xs:integer
993+declare function math:lcm($numbers as integer+) as integer
994 {
995 if(count($numbers) eq 1) then
996 $numbers[1]
997@@ -889,11 +865,11 @@
998 };
999
1000 (:~
1001- : Borrowed from excel module.<br/>
1002- : Returns a number rounded to the desired multiple.
1003+ : Returns a number rounded to the desired multiple.<p/>
1004 : MROUND rounds up, away from zero, if the remainder of dividing number by multiple
1005 : is greater than or equal to half the value of multiple.
1006- : MROUND is computed through math:floor function.
1007+ : MROUND is computed through math:floor function.<p/>
1008+ : Borrowed from excel module.
1009 :
1010 : @see http://office.microsoft.com/en-us/excel/HP052091851033.aspx
1011 : @param $number The value to round,
1012@@ -904,8 +880,8 @@
1013 : @example test/rbkt/Queries/zorba/math/from_excel/excel_mround3.xq
1014 :)
1015 declare function math:mround(
1016- $number as xs:decimal,
1017- $multiple as xs:double) as xs:double
1018+ $number as decimal,
1019+ $multiple as double) as double
1020 {
1021 let $num := $number
1022 let $mul := $multiple
1023@@ -923,25 +899,25 @@
1024 };
1025
1026 (:~
1027- : Borrowed from excel module.<br/>
1028- : Converts an Arabic numeral to roman, as text.
1029- : Only the classic format is supported (out of all formats Excel requires).<br/>
1030+ : Converts an Arabic numeral to roman, as text.<p/>
1031+ : Only the classic format is supported (out of all formats Excel requires).
1032 : M is the largest digit, it represents 1000.
1033- : Numbers bigger than 2000 will be represented by a sequence of "M".<br/>
1034- : D = 500, C = 100, L = 50, X = 10, V = 5, I = 1.
1035+ : Numbers bigger than 2000 will be represented by a sequence of "M".
1036+ : D = 500, C = 100, L = 50, X = 10, V = 5, I = 1.<p/>
1037+ : Borrowed from excel module.
1038 :
1039 : @see http://office.microsoft.com/en-us/excel/HP052092381033.aspx
1040 : @param $number A positive integer.
1041 : @return The roman string representation.
1042- : @error math:errNum if the input integer is negative
1043+ : @error math:INVALID_ARGUMENT if the input integer is negative
1044 : @example test/rbkt/Queries/zorba/math/from_excel/excel_roman1.xq
1045 : @example test/rbkt/Queries/zorba/math/from_excel/excel_roman2.xq
1046 : @example test/rbkt/Queries/zorba/math/from_excel/excel_roman3.xq
1047 :)
1048-declare function math:roman($number as xs:integer) as xs:string
1049+declare function math:roman($number as integer) as string
1050 {
1051 if ($number lt 0) then
1052- fn:error($math:errNum, "Roman function: number should be greater than zero or equal")
1053+ fn:error($math:INVALID_ARGUMENT, "Roman function: number should be greater than zero or equal")
1054 else if ($number ge 1000) then
1055 fn:concat("M", math:roman($number - 1000))
1056 else if ($number ge 900) then
1057@@ -1003,9 +979,9 @@
1058 };
1059
1060 (:~
1061- : Borrowed from excel module.<br/>
1062 : Multiplies the elements on the same position in each sequence
1063- : and sums up the results.
1064+ : and sums up the results.<p/>
1065+ : Borrowed from excel module.
1066 :
1067 : @see http://office.microsoft.com/en-us/excel/HP052092931033.aspx
1068 : @param $array1 the sequences of numbers
1069@@ -1013,8 +989,8 @@
1070 : @return the sum of products
1071 : @example test/rbkt/Queries/zorba/math/from_excel/excel_sumproduct2.xq
1072 :)
1073- declare function math:sumproduct( $array1 as xs:double*,
1074- $array2 as xs:double* ) as xs:double
1075+ declare function math:sumproduct( $array1 as double*,
1076+ $array2 as double* ) as double
1077 {
1078 if( fn:empty($array1) or
1079 fn:empty($array2))
1080@@ -1026,16 +1002,16 @@
1081 };
1082
1083 (:~
1084- : Borrowed from excel module.<br/>
1085- : Returns the sum of the squares of the arguments.
1086- : It uses the sumproduct function.
1087+ : Returns the sum of the squares of the arguments.<p/>
1088+ : It uses the sumproduct function.<p/>
1089+ : Borrowed from excel module.
1090 :
1091 : @see http://office.microsoft.com/en-us/excel/HP052092951033.aspx
1092 : @param $numbers the sequence of one or more numbers
1093 : @return the sum of squared values, as numeric type
1094 : @example test/rbkt/Queries/zorba/math/from_excel/excel_sumsq1.xq
1095 :)
1096- declare function math:sumsq( $numbers as xs:double+) as xs:double
1097+ declare function math:sumsq( $numbers as double+) as double
1098 {
1099 math:sumproduct($numbers, $numbers)
1100 };
1101@@ -1045,12 +1021,11 @@
1102 (:Excel statistical functions :)
1103
1104 (:~
1105- : Borrowed from excel module.<br/>
1106- : Returns the median of the given numbers.
1107+ : Returns the median of the given numbers. <p/>
1108 : The median is the number in the middle of a set of numbers.
1109 : Half the numbers have values that are greater than the median,
1110- : and half the numbers have values that are less than the median.
1111- :
1112+ : and half the numbers have values that are less than the median. <p/>
1113+ : Borrowed from excel module.
1114 :
1115 : @see http://office.microsoft.com/en-us/excel/HP052091741033.aspx
1116 : @param $numbers the sequence of numbers, of any length
1117@@ -1059,71 +1034,71 @@
1118 : @example test/rbkt/Queries/zorba/math/from_excel/excel_median1.xq
1119 : @example test/rbkt/Queries/zorba/math/from_excel/excel_median2.xq
1120 :)
1121-declare function math:median( $numbers as xs:double* ) as xs:double
1122+declare function math:median( $numbers as double* ) as double
1123 {
1124 let $number_count := fn:count( $numbers )
1125 let $sorted_numbers := math:sort-numbers( $numbers ) return
1126- if ($number_count mod 2 != 0) then
1127+ if ($number_count mod 2 ne 0) then
1128 $sorted_numbers[$number_count idiv 2 + 1]
1129 else
1130- if ($number_count = 0) then
1131+ if ($number_count eq 0) then
1132 0
1133 else
1134 ($sorted_numbers[$number_count idiv 2] + $sorted_numbers[$number_count idiv 2 + 1] ) div 2
1135 };
1136
1137 (:~
1138- : Borrowed from excel module.<br/>
1139- : Returns the most frequently occurring, or repetitive, value in a sequence.
1140+ : Returns the most frequently occurring, or repetitive, value in a sequence.<p/>
1141+ : Borrowed from excel module.
1142 :
1143 : @see http://office.microsoft.com/en-us/excel/HP052091831033.aspx
1144 : @param $numbers the sequence of numbers, of any length
1145 : @return The most occuring number
1146- : @error math:errNA if there are no duplicate numbers
1147+ : @error math:INVALID_INPUT if there are no duplicate numbers
1148 : @example test/rbkt/Queries/zorba/math/from_excel/excel_mode1.xq
1149 : @example test/rbkt/Queries/zorba/math/from_excel/excel_mode2.xq
1150 : @example test/rbkt/Queries/zorba/math/from_excel/excel_mode3.xq
1151 :)
1152-declare function math:mode( $numbers as xs:double* ) as xs:double
1153+declare function math:mode( $numbers as double* ) as double
1154 {
1155 if ( fn:empty($numbers)) then
1156- fn:error($math:errNA, "Mode function: empty sequence")
1157+ fn:error($math:INVALID_INPUT, "Mode function: empty sequence")
1158 else
1159 let $result :=
1160 ( for $n_at in fn:distinct-values($numbers)
1161 let $n := $n_at
1162 let $count := fn:count( (for $d in $numbers where $d eq $n return $d) )
1163- where $count > 1
1164+ where $count gt 1
1165 order by $count descending
1166 return $n
1167 ) return
1168 if (fn:empty($result)) then
1169- fn:error($math:errNA, "Mode function: no duplicate elements")
1170+ fn:error($math:INVALID_INPUT, "Mode function: no duplicate elements")
1171 else
1172 $result[1]
1173 };
1174
1175 (:~
1176- : Borrowed from excel module.<br/>
1177- : Returns the k-th percentile of values in a sequence.
1178+ : Returns the k-th percentile of values in a sequence.<p/>
1179 : If k is not a multiple of 1/(n - 1),
1180 : PERCENTILE interpolates to determine the value at the k-th percentile.
1181- : The function is computed by (max-min)*k + min
1182+ : The function is computed by (max-min)*k + min<p/>
1183+ : Borrowed from excel module.
1184 :
1185 : @see http://office.microsoft.com/en-us/excel/HP052092111033.aspx
1186 : @param $numbers the sequence of numbers, of any length
1187 : @param $k_at the percentile, with value between 0 .. 1 inclusive
1188 : @return The computed percentile
1189- : @error math:errNum if percentile is not between 0 .. 1
1190+ : @error math:INVALID_ARGUMENT if percentile is not between 0 .. 1
1191 : @example test/rbkt/Queries/zorba/math/from_excel/excel_percentile1.xq
1192 : @example test/rbkt/Queries/zorba/math/from_excel/excel_percentile2.xq
1193 : @example test/rbkt/Queries/zorba/math/from_excel/excel_percentile3.xq
1194 :)
1195-declare function math:percentile( $numbers as xs:double*, $k_at as xs:double) as xs:double
1196+declare function math:percentile( $numbers as double*, $k_at as double) as double
1197 {
1198 let $k := $k_at return
1199- if ($k < 0 or $k > 1) then
1200- fn:error($math:errNum, "Percentile function: k must be a value between 0 and 1 inclusive")
1201+ if ($k lt 0 or $k gt 1) then
1202+ fn:error($math:INVALID_ARGUMENT, "Percentile function: k must be a value between 0 and 1 inclusive")
1203 else
1204 let $max := fn:max($numbers)
1205 let $min := fn:min($numbers) return
1206@@ -1133,10 +1108,9 @@
1207
1208
1209 (:~
1210- : Borrowed from excel module.<br/>
1211- : Function for AVEDEV.
1212- : This function should not be used outside this module.
1213- : Computes formula sum(abs(x - average)) for every x in $numbers
1214+ : Function for AVEDEV.<p/>
1215+ : Computes formula sum(abs(x - average)) for every x in $numbers<p/>
1216+ : Borrowed from excel module.
1217 :
1218 : @param $numbers The sequence of numbers.
1219 : Sequence can be of any length.
1220@@ -1144,8 +1118,8 @@
1221 : @return The result of the formula.
1222 :)
1223 declare %private function math:sum-deviations(
1224- $numbers as xs:double*,
1225- $average as xs:double) as xs:double
1226+ $numbers as double*,
1227+ $average as double) as double
1228 {
1229 if (fn:empty($numbers)) then
1230 0
1231@@ -1154,9 +1128,9 @@
1232 };
1233
1234 (:~
1235- : Borrowed from excel module.<br/>
1236- : Returns the average of the absolute deviations of data points from their mean.
1237- : The formula is sum(abs(x - average_x))/n, where n is the count of x in the sequence.
1238+ : Returns the average of the absolute deviations of data points from their mean.<p/>
1239+ : The formula is sum(abs(x - average_x))/n, where n is the count of x in the sequence.<p/>
1240+ : Borrowed from excel module.
1241 :
1242 : @see http://office.microsoft.com/en-us/excel/HP052089931033.aspx
1243 : @param $numbers the sequence of numbers.
1244@@ -1164,36 +1138,36 @@
1245 : @return The formula result
1246 : @example test/rbkt/Queries/zorba/math/from_excel/excel_avedev1.xq
1247 :)
1248-declare function math:avedev($numbers as xs:double+) as xs:double
1249+declare function math:avedev($numbers as double+) as double
1250 {
1251 let $average := fn:avg($numbers) return
1252 math:sum-deviations($numbers, $average) div fn:count($numbers)
1253 };
1254
1255 (:~
1256- : Borrowed from excel module.<br/>
1257- : Returns the k-th largest value in a data set.
1258+ : Returns the k-th largest value in a data set. <p/>
1259 : If n is the number of data points in a range,
1260 : then LARGE(array,1) returns the largest value,
1261- : and LARGE(array,n) returns the smallest value.
1262+ : and LARGE(array,n) returns the smallest value.<p/>
1263+ : Borrowed from excel module.<br/>
1264 :
1265 : @see http://office.microsoft.com/en-us/excel/HP052091511033.aspx
1266 : @param $numbers the sequence of numbers
1267 : The sequence can be of any length, from 1 up.
1268 : @param $k the position of largest value, with value from 1 to count of values
1269 : @return The k-th largest value as numeric type
1270- : @error math:errNum if the sequence is empty or k is not a value between 1
1271+ : @error math:INVALID_ARGUMENT if the sequence is empty or k is not a value between 1
1272 : and the size of the sequence
1273 : @example test/rbkt/Queries/zorba/math/from_excel/excel_large1.xq
1274 : @example test/rbkt/Queries/zorba/math/from_excel/excel_large2.xq
1275 : @example test/rbkt/Queries/zorba/math/from_excel/excel_large3.xq
1276 :)
1277-declare function math:large($numbers as xs:double+, $k as xs:integer) as xs:double
1278+declare function math:large($numbers as double+, $k as integer) as double
1279 {
1280 if (fn:empty($numbers)) then
1281- fn:error($math:errNum, "Large function: value list must not be empty")
1282- else if ($k > fn:count($numbers) or $k le 0) then
1283- fn:error($math:errNum, "Large function: k must be between 1 and the count of numbers ", $k)
1284+ fn:error($math:INVALID_ARGUMENT, "Large function: value list must not be empty")
1285+ else if ($k gt fn:count($numbers) or $k le 0) then
1286+ fn:error($math:INVALID_ARGUMENT, "Large function: k must be between 1 and the count of numbers ", $k)
1287 else
1288 let $ordered_numbers :=
1289 (for $n in $numbers
1290@@ -1205,11 +1179,11 @@
1291 };
1292
1293 (:~
1294- : Borrowed from excel module.<br/>
1295- : Returns the rank of a number in a list of numbers.
1296+ : Returns the rank of a number in a list of numbers. <p/>
1297 : The rank of a number is its size relative to other values in a list.
1298 : (If you were to sort the list, the rank of the number would be its position.)
1299- : RANK gives duplicate numbers the same rank.
1300+ : RANK gives duplicate numbers the same rank.<p/>
1301+ : Borrowed from excel module.
1302 :
1303 : @see http://office.microsoft.com/en-us/excel/HP052092311033.aspx
1304 : @param $x The number whose rank you want to find.
1305@@ -1224,9 +1198,9 @@
1306 : @example test/rbkt/Queries/zorba/math/from_excel/excel_rank4.xq
1307 :)
1308 declare function math:rank(
1309- $x as xs:double,
1310- $numbers as xs:double*,
1311- $order_ascending as xs:boolean) as xs:double
1312+ $x as double,
1313+ $numbers as double*,
1314+ $order_ascending as boolean) as double
1315 {
1316 let $ordered_numbers :=
1317 if ($order_ascending) then (
1318@@ -1244,12 +1218,12 @@
1319 let $rank :=
1320 (
1321 for $i at $pos in $ordered_numbers
1322- where $xnum = $i or $order_ascending and $xnum < $i
1323- or fn:not($order_ascending) and $xnum > $i
1324+ where $xnum eq $i or $order_ascending and $xnum lt $i
1325+ or fn:not($order_ascending) and $xnum gt $i
1326 return
1327- if ($xnum = $i) then
1328+ if ($xnum eq $i) then
1329 $pos
1330- else if ($pos = 1) then
1331+ else if ($pos eq 1) then
1332 0
1333 else
1334 ($pos - 1) + ($xnum - $ordered_numbers[$pos - 1]) div ($ordered_numbers[$pos] - $ordered_numbers[$pos - 1])
1335@@ -1262,8 +1236,8 @@
1336 };
1337
1338 (:~
1339- : Borrowed from excel module.<br/>
1340- : This RANK function is same as the above, only that $order_ascending is set by default to false.
1341+ : This RANK function is same as the above, only that $order_ascending is set by default to false.<p/>
1342+ : Borrowed from excel module.
1343 :
1344 : @see http://office.microsoft.com/en-us/excel/HP052092311033.aspx
1345 : @param $x The number whose rank you want to find.
1346@@ -1274,46 +1248,45 @@
1347 : @example test/rbkt/Queries/zorba/math/from_excel/excel_rank5.xq
1348 :)
1349 declare function math:rank(
1350- $x as xs:double,
1351- $numbers as xs:double*) as xs:double
1352+ $x as double,
1353+ $numbers as double*) as double
1354 {
1355- math:rank($x, $numbers, fn:false())
1356+ math:rank($x, $numbers, false)
1357 };
1358
1359 (:~
1360- : Borrowed from excel module.<br/>
1361- : Returns the rank of a value in a data set as a percentage of the data set.
1362+ : Returns the rank of a value in a data set as a percentage of the data set.<p/>
1363 : If x does not match one of the values in array,
1364 : PERCENTRANK interpolates to return the correct percentage rank. <br/>
1365- : The formula is uses: (RANK - 1) / (size - 1) .
1366- :
1367+ : The formula is uses: (RANK - 1) / (size - 1) .<p/>
1368+ : Borrowed from excel module.
1369 : @see http://office.microsoft.com/en-us/excel/HP052092121033.aspx
1370 : @param $numbers the sequence of numbers.
1371 : The sequence can be of any length, from 1 up.
1372 : @param $x is the value for which you want to know the rank
1373 : @return The percentage of rank.
1374- : @error math:errNum if the sequence is zero length
1375+ : @error math:INVALID_ARGUMENT if the sequence is zero length
1376 : @example test/rbkt/Queries/zorba/math/from_excel/excel_percentrank1.xq
1377 : @example test/rbkt/Queries/zorba/math/from_excel/excel_percentrank2.xq
1378 : @example test/rbkt/Queries/zorba/math/from_excel/excel_percentrank3.xq
1379 : @example test/rbkt/Queries/zorba/math/from_excel/excel_percentrank4.xq
1380 : @example test/rbkt/Queries/zorba/math/from_excel/excel_percentrank5.xq
1381 :)
1382-declare function math:percentrank($numbers as xs:double*, $x as xs:double) as xs:double
1383+declare function math:percentrank($numbers as double*, $x as double) as double
1384 {
1385 if (fn:empty($numbers)) then
1386- fn:error($math:errNum, "Percentrank function: value list must not be empty")
1387+ fn:error($math:INVALID_ARGUMENT, "Percentrank function: value list must not be empty")
1388 else
1389- let $rank := math:rank($x, $numbers, fn:true()) return
1390- if ($rank = 0) then
1391+ let $rank := math:rank($x, $numbers, true) return
1392+ if ($rank eq 0) then
1393 0
1394 else
1395 ($rank - 1) div (fn:count($numbers) - 1)
1396 };
1397
1398 (:~
1399- : Borrowed from excel module.<br/>
1400- : Returns the quartile of a data set.
1401+ : Returns the quartile of a data set. <p/>
1402+ : Borrowed from excel module.
1403 :
1404 : @see http://office.microsoft.com/en-us/excel/HP052092261033.aspx
1405 : @param $numbers sequence of numbers.
1406@@ -1325,50 +1298,50 @@
1407 : <dt>3</dt> <dd> compute third quartile (75th percentile)</dd>
1408 : <dt>4</dt> <dd> compute maximum value</dd></dl>
1409 : @return the computed quartile, as numeric type
1410- : @error math:errNum if the sequence is zero length or $quart is not one of the values 0,1,3,4
1411+ : @error math:INVALID_ARGUMENT if the sequence is zero length or $quart is not one of the values 0,1,3,4
1412 : @example test/rbkt/Queries/zorba/math/from_excel/excel_quartile1.xq
1413 : @example test/rbkt/Queries/zorba/math/from_excel/excel_quartile2.xq
1414 : @example test/rbkt/Queries/zorba/math/from_excel/excel_quartile3.xq
1415 : @example test/rbkt/Queries/zorba/math/from_excel/excel_quartile4.xq
1416 : @example test/rbkt/Queries/zorba/math/from_excel/excel_quartile5.xq
1417 :)
1418-declare function math:quartile($numbers as xs:double*, $quart as xs:integer) as xs:double
1419+declare function math:quartile($numbers as double*, $quart as integer) as double
1420 {
1421 if (fn:empty($numbers)) then
1422- fn:error($math:errNum, "Quartile function: value list must not be empty")
1423+ fn:error($math:INVALID_ARGUMENT, "Quartile function: value list must not be empty")
1424 else
1425- if ($quart = 0) then
1426+ if ($quart eq 0) then
1427 fn:min($numbers)
1428 else
1429- if ($quart = 1) then
1430+ if ($quart eq 1) then
1431 let $r := (fn:count($numbers) + 3) div 4
1432- let $rint := xs:integer($r)
1433+ let $rint := integer($r)
1434 let $rrem := $r - $rint
1435 let $sorted_numbers := math:sort-numbers( $numbers ) return
1436 ($numbers[$rint + 1] - $numbers[$rint]) * $rrem + $numbers[$rint]
1437 else
1438- if ($quart = 2) then
1439+ if ($quart eq 2) then
1440 math:median($numbers)
1441 else
1442- if ($quart = 3) then
1443+ if ($quart eq 3) then
1444 let $r := (3 * fn:count($numbers) + 1) div 4
1445- let $rint := xs:integer($r)
1446+ let $rint := integer($r)
1447 let $rrem := $r - $rint
1448 let $sorted_numbers := math:sort-numbers( $numbers ) return
1449 ($numbers[$rint + 1] - $numbers[$rint]) * $rrem + $numbers[$rint]
1450 else
1451- if ($quart = 4) then
1452+ if ($quart eq 4) then
1453 fn:max($numbers)
1454 else
1455- fn:error($math:errNum, "Quartile function: quart should be between 0 and 4 :", $quart)
1456+ fn:error($math:INVALID_ARGUMENT, "Quartile function: quart should be between 0 and 4 :", $quart)
1457 };
1458
1459 (:~
1460- : Borrowed from excel module.<br/>
1461- : This function computes the k-th smallest value in a data set.
1462+ : This function computes the k-th smallest value in a data set. <p/>
1463 : Use this function to return values with a particular relative standing in a data set.
1464 : If n is the number of data points in array, SMALL(array,1) equals the smallest value,
1465 : and SMALL(array,n) equals the largest value.
1466+ : Borrowed from excel module.
1467 :
1468 : @see http://office.microsoft.com/en-us/excel/HP052092661033.aspx
1469 : @param $numbers A sequence of numbers.
1470@@ -1376,17 +1349,17 @@
1471 : @param $k The position (from the smallest) in the sequence of data to return.
1472 : Must have value between 1 and size of sequence.
1473 : @return The k-th smallest value of $numbers.
1474- : @error math:errNum if the sequence is zero length or $k is not a value
1475+ : @error math:INVALID_ARGUMENT if the sequence is zero length or $k is not a value
1476 : between 1 and the size of sequence.
1477 : @example test/rbkt/Queries/zorba/math/from_excel/excel_small1.xq
1478 : @example test/rbkt/Queries/zorba/math/from_excel/excel_small2.xq
1479 :)
1480-declare function math:small($numbers as xs:double*, $k as xs:integer) as xs:double
1481+declare function math:small($numbers as double*, $k as integer) as double
1482 {
1483 if (fn:empty($numbers)) then
1484- fn:error($math:errNum, "Small function: value list must not be empty")
1485+ fn:error($math:INVALID_ARGUMENT, "Small function: value list must not be empty")
1486 else if ($k gt fn:count($numbers) or $k le 0) then
1487- fn:error($math:errNum, "Small function: k must be between 1 and the count of numbers ", $k)
1488+ fn:error($math:INVALID_ARGUMENT, "Small function: k must be between 1 and the count of numbers ", $k)
1489 else
1490 let $ordered_numbers := (
1491 for $n in $numbers
1492@@ -1400,17 +1373,16 @@
1493
1494
1495 (:~
1496- : Borrowed from excel module.<br/>
1497- : Function for VAR, VARA, VARP, VARPA and SLOPE.
1498- : This function should not be used outside this module.
1499- : It computes formula sum((x - average_x)^2) for all x in $numbers.
1500+ : Function for VAR, VARA, VARP, VARPA and SLOPE.<p/>
1501+ : It computes formula sum((x - average_x)^2) for all x in $numbers.<p/>
1502+ : Borrowed from excel module.
1503 :
1504 : @param $numbers the sequence of numbers.
1505 : The sequence can be of any length.
1506 : @param $average The precomputed average over the sequence.
1507 : @return The result as numeric type.
1508 :)
1509-declare %private function math:sumsq-deviations($numbers as xs:double*, $average as xs:double) as xs:double
1510+declare %private function math:sumsq-deviations($numbers as double*, $average as double) as double
1511 {
1512 if (fn:empty($numbers)) then
1513 0
1514@@ -1421,11 +1393,11 @@
1515 };
1516
1517 (:~
1518- : Borrowed from excel module.<br/>
1519- : Estimates variance based on a sample.<br/>
1520- : The formula is sum(x - average_x)^2 / (n - 1).<br/>
1521- : average_x is computed with AVERAGE function.<br/>
1522- : n is the count of numbers from the sequence, excluding empty values.
1523+ : Estimates variance based on a sample.<p/>
1524+ : The formula is sum(x - average_x)^2 / (n - 1).
1525+ : average_x is computed with AVERAGE function.
1526+ : n is the count of numbers from the sequence, excluding empty values.<p/>
1527+ : Borrowed from excel module.
1528 :
1529 : @see http://office.microsoft.com/en-us/excel/HP052093301033.aspx
1530 : @param $numbers the sequence of numbers.
1531@@ -1433,7 +1405,7 @@
1532 : @return The variance, as numeric type
1533 : @example test/rbkt/Queries/zorba/math/from_excel/excel_var1.xq
1534 :)
1535-declare function math:var($numbers as xs:double+) as xs:double
1536+declare function math:var($numbers as double+) as double
1537 {
1538 let $average := fn:avg($numbers)
1539 return
1540@@ -1441,11 +1413,11 @@
1541 };
1542
1543 (:~
1544- : Borrowed from excel module.<br/>
1545- : Estimates variance based on a sample.<br/>
1546- : The formula is sum(x - average_x)^2 / (n - 1).<br/>
1547- : average_x is computed with AVERAGE function.<br/>
1548- : n is the size of sequence, including empty values.<br/>
1549+ : Estimates variance based on a sample.<p/>
1550+ : The formula is sum(x - average_x)^2 / (n - 1).
1551+ : average_x is computed with AVERAGE function.
1552+ : n is the size of sequence, including empty values.<p/>
1553+ : Borrowed from excel module.
1554 :
1555 : @see http://office.microsoft.com/en-us/excel/HP052093311033.aspx
1556 : @param $numbers the sequence of numbers.
1557@@ -1453,18 +1425,18 @@
1558 : @return The variance, as numeric type
1559 : @example test/rbkt/Queries/zorba/math/from_excel/excel_vara1.xq
1560 :)
1561-declare function math:vara($numbers as xs:double+) as xs:double
1562+declare function math:vara($numbers as double+) as double
1563 {
1564 let $average := fn:avg($numbers) return
1565 math:sumsq-deviations($numbers, $average) div (fn:count($numbers) - 1)
1566 };
1567
1568 (:~
1569+ : Calculates variance based on the entire population.<p/>
1570+ : The formula is sum(x - average_x)^2 / n.
1571+ : average_x is computed with AVERAGE function.
1572+ : n is the count of numbers from the sequence, excluding empty values.<p/>
1573 : Borrowed from excel module.<br/>
1574- : Calculates variance based on the entire population.<br/>
1575- : The formula is sum(x - average_x)^2 / n.<br/>
1576- : average_x is computed with AVERAGE function.<br/>
1577- : n is the count of numbers from the sequence, excluding empty values.<br/>
1578 :
1579 : @see http://office.microsoft.com/en-us/excel/HP052093321033.aspx
1580 : @param $numbers the sequence of numbers.
1581@@ -1472,18 +1444,18 @@
1582 : @return The variance, as numeric type
1583 : @example test/rbkt/Queries/zorba/math/from_excel/excel_varp1.xq
1584 :)
1585-declare function math:varp($numbers as xs:double+) as xs:double
1586+declare function math:varp($numbers as double+) as double
1587 {
1588 let $average := fn:avg($numbers) return
1589 math:sumsq-deviations($numbers, $average) div fn:count($numbers)
1590 };
1591
1592 (:~
1593- : Borrowed from excel module.<br/>
1594- : Calculates variance based on the entire population.<br/>
1595- : The formula is sum(x - average_x)^2 / n.<br/>
1596- : average_x is computed with AVERAGE function.<br/>
1597- : n is the size of sequence, including empty values.<br/>
1598+ : Calculates variance based on the entire population.<p/>
1599+ : The formula is sum(x - average_x)^2 / n.
1600+ : average_x is computed with AVERAGE function.
1601+ : n is the size of sequence, including empty values.<p/>
1602+ : Borrowed from excel module.
1603 :
1604 : @see http://office.microsoft.com/en-us/excel/HP052093321033.aspx
1605 : @param $numbers the sequence of numbers.
1606@@ -1491,61 +1463,58 @@
1607 : @return The variance, as numeric type
1608 : @example test/rbkt/Queries/zorba/math/from_excel/excel_varpa1.xq
1609 :)
1610-declare function math:varpa($numbers as xs:double+) as xs:double
1611+declare function math:varpa($numbers as double+) as double
1612 {
1613 let $average := fn:avg($numbers) return
1614 math:sumsq-deviations($numbers, $average) div fn:count($numbers)
1615 };
1616
1617 (:~
1618- : Borrowed from excel module.<br/>
1619- : Function for PROB function.
1620- : This function should not be used outside this module.
1621+ : Function for PROB function.<p/>
1622 : Computes the sum over a sequence of numbers.
1623- : Checks if the values are between 0 and 1.
1624+ : Checks if the values are between 0 and 1.<p/>
1625+ : Borrowed from excel module.
1626 :
1627 : @param $prob_range The sequence of probabilities.
1628 : @return The sum of probabilities. This should be 1.
1629- : @error math:errNum if any probability is not between 0 and 1.
1630- : @error math:errValue if any parameter is not castable to numeric.
1631+ : @error math:INVALID_ARGUMENT if any probability is not between 0 and 1.
1632 :)
1633-declare %private function math:sum-prob($prob_range as xs:double*) as xs:double
1634+declare %private function math:sum-prob($prob_range as double*) as double
1635 {
1636 if (fn:empty($prob_range)) then
1637 0
1638 else
1639 let $prob_num := $prob_range[1]
1640 return
1641- if ($prob_num < 0 or $prob_num > 1) then
1642- fn:error($math:errNum, "Prob function: prob values should be between 0 and 1 ", $prob_num)
1643+ if ($prob_num lt 0 or $prob_num gt 1) then
1644+ fn:error($math:INVALID_ARGUMENT, "Prob function: prob values should be between 0 and 1 ", $prob_num)
1645 else
1646 $prob_num + math:sum-prob(fn:subsequence($prob_range, 2))
1647 };
1648
1649 (:~
1650- : Borrowed from excel module.<br/>
1651- : Function for PROB function.
1652- : This function should not be used outside this module.
1653+ : Function for PROB function.<p/>
1654 : Checks the prob range and x range if they have the same number of values.
1655- : Adds all probabilities corresponding to values between range_lower_limit and upper_limit.
1656+ : Adds all probabilities corresponding to values between range_lower_limit and upper_limit.<p/>
1657+ : Borrowed from excel module.
1658 :
1659 : @param $x_range The sequence of x values.
1660 : @param $prob_range The sequence of probabilities associated to x values.
1661 : @param $range_lower_limit The lower limit of the range to compute the probability.
1662 : @param $upper_limit The upper limit of the range to compute the probability.
1663 : @return The sum of probabilities.
1664- : @error $math:errNum if x_range and prob_range do not have the same number of values.
1665+ : @error $math:INVALID_ARGUMENT if x_range and prob_range do not have the same number of values.
1666 :)
1667 declare %private function math:sum-prob-x(
1668- $x_range as xs:double*,
1669- $prob_range as xs:double*,
1670- $range_lower_limit as xs:double,
1671- $upper_limit as xs:double) as xs:double
1672+ $x_range as double*,
1673+ $prob_range as double*,
1674+ $range_lower_limit as double,
1675+ $upper_limit as double) as double
1676 {
1677 if (fn:empty($x_range) and fn:not(fn:empty($prob_range))) then
1678- fn:error($math:errNum, "Prob function: x range and prob range should have the same number of elements")
1679+ fn:error($math:INVALID_ARGUMENT, "Prob function: x range and prob range should have the same number of elements")
1680 else if (fn:empty($prob_range) and fn:not(fn:empty($x_range))) then
1681- fn:error($math:errNum, "Prob function: x range and prob range should have the same number of elements")
1682+ fn:error($math:INVALID_ARGUMENT, "Prob function: x range and prob range should have the same number of elements")
1683 else if (fn:empty($prob_range) and fn:empty($x_range)) then
1684 0
1685 else
1686@@ -1564,9 +1533,9 @@
1687 };
1688
1689 (:~
1690- : Borrowed from excel module.<br/>
1691- : Returns the probability that values in a range are between two limits.
1692- :
1693+ : Returns the probability that values in a range are between two limits.<p/>
1694+ : Borrowed from excel module.
1695+ :
1696 : @see http://office.microsoft.com/en-us/excel/HP052092221033.aspx
1697 : @param $x_range is the range of numeric values of x with which there are associated probabilities.
1698 : This does not need to be ordered.
1699@@ -1574,19 +1543,19 @@
1700 : @param $range_lower_limit is the lower bound on the value for which you want a probability.
1701 : @param $upper_limit is the upper bound on the value for which you want a probability.
1702 : @return The probability of the entire range
1703- : @error math:errNum if any probability is not between 0 and 1
1704- : @error math:errNum if the sum of probabilities is not equal to 1
1705- : @error math:errNum if x_range and prob_range do not have the same number of values
1706+ : @error math:INVALID_ARGUMENT if any probability is not between 0 and 1
1707+ : @error math:INVALID_ARGUMENT if the sum of probabilities is not equal to 1
1708+ : @error math:INVALID_ARGUMENT if x_range and prob_range do not have the same number of values
1709 : @example test/rbkt/Queries/zorba/math/from_excel/excel_prob2.xq
1710 :)
1711-declare function math:prob($x_range as xs:double+,
1712- $prob_range as xs:double+,
1713- $range_lower_limit as xs:double,
1714- $upper_limit as xs:double) as xs:double
1715+declare function math:prob($x_range as double+,
1716+ $prob_range as double+,
1717+ $range_lower_limit as double,
1718+ $upper_limit as double) as double
1719 {
1720 let $prob_sum := math:sum-prob($prob_range) return
1721- if ($prob_sum != 1) then
1722- fn:error($math:errNum, "Prob function: prob sum should equal 1")
1723+ if ($prob_sum ne 1) then
1724+ fn:error($math:INVALID_ARGUMENT, "Prob function: prob sum should equal 1")
1725 else
1726 math:sum-prob-x($x_range, $prob_range,
1727 $range_lower_limit,
1728@@ -1594,9 +1563,9 @@
1729 };
1730
1731 (:~
1732- : Borrowed from excel module.<br/>
1733- : This is the same as above, only that upper_limit is not specified.
1734- : The probability is computed only for range_lower_limit.
1735+ : This is the same as math:prob#4, only that upper_limit is not specified.<p/>
1736+ : The probability is computed only for range_lower_limit.<p/>
1737+ : Borrowed from excel module.
1738 :
1739 : @see http://office.microsoft.com/en-us/excel/HP052092221033.aspx
1740 : @param $x_range is the range of numeric values of x with which there are associated probabilities.
1741@@ -1604,43 +1573,42 @@
1742 : @param $prob_range is a set of probabilities associated with values in x_range.
1743 : @param $range_lower_limit is the value for which you want a probability.
1744 : @return The probability of the range_lower_limit value
1745- : @error math:errNum if any probability is not between 0 and 1
1746- : @error math:errNum if the sum of probabilities is not equal to 1
1747- : @error math:errNum if x_range and prob_range do not have the same number of values
1748+ : @error math:INVALID_ARGUMENT if any probability is not between 0 and 1
1749+ : @error math:INVALID_ARGUMENT if the sum of probabilities is not equal to 1
1750+ : @error math:INVALID_ARGUMENT if x_range and prob_range do not have the same number of values
1751 : @example test/rbkt/Queries/zorba/math/from_excel/excel_prob1.xq
1752 :)
1753-declare function math:prob($x_range as xs:double+,
1754- $prob_range as xs:double+,
1755- $range_lower_limit as xs:double) as xs:double
1756+declare function math:prob($x_range as double+,
1757+ $prob_range as double+,
1758+ $range_lower_limit as double) as double
1759 {
1760 math:prob($x_range, $prob_range, $range_lower_limit, $range_lower_limit)
1761 };
1762
1763 (:~
1764- : Borrowed from excel module.<br/>
1765- : Function for SLOPE function.
1766- : This function should not be used outside this module.
1767- : It computes the formula:<br/>
1768- : sum((x - average_x)(y - average_y)) <br/>
1769- : where average_x and average_y are computed with AVERAGE function.
1770+ : Function for SLOPE function.<p/>
1771+ : It computes the formula:<p/>
1772+ : sum((x - average_x)(y - average_y))<p/>
1773+ : where average_x and average_y are computed with AVERAGE function.<p/>
1774+ : Borrowed from excel module.
1775 :
1776 : @param $x_numbers The sequence of x numbers.
1777 : @param $x_average The precomputed AVERAGE over the x_numbers.
1778 : @param $y_numbers The sequence of y numbers.
1779 : @param $y_average The precomputed AVERAGE over the y_numbers.
1780 : @return The formula result, as numeric type.
1781- : @error math:errNA if there are different numbers of x's and y's.
1782+ : @error math:INVALID_INPUT if there are different numbers of x's and y's.
1783 :)
1784 declare %private function math:sum-x-y-deviations(
1785- $x_numbers as xs:double*,
1786- $x_average as xs:double,
1787- $y_numbers as xs:double*,
1788- $y_average as xs:double) as xs:double
1789+ $x_numbers as double*,
1790+ $x_average as double,
1791+ $y_numbers as double*,
1792+ $y_average as double) as double
1793 {
1794 if (fn:empty($x_numbers) and fn:not(fn:empty($y_numbers))) then
1795- fn:error($math:errNA, "Slope function: different number of x's and y's")
1796+ fn:error($math:INVALID_INPUT, "Slope function: different number of x's and y's")
1797 else if (fn:empty($y_numbers) and fn:not(fn:empty($x_numbers))) then
1798- fn:error($math:errNA, "Slope function: different number of x's and y's")
1799+ fn:error($math:INVALID_INPUT, "Slope function: different number of x's and y's")
1800 else if (fn:empty($x_numbers) and fn:empty($y_numbers)) then
1801 0
1802 else
1803@@ -1652,13 +1620,13 @@
1804 };
1805
1806 (:~
1807- : Borrowed from excel module.<br/>
1808- : Returns the slope of the linear regression line through data points in known_y's and known_x's.
1809+ : Returns the slope of the linear regression line through data points in known_y's and known_x's.<p/>
1810 : The slope is the vertical distance divided by the horizontal distance between
1811 : any two points on the line, which is the rate of change along the regression line.
1812- : It computes the formula:<br/>
1813- : sum((x - average_x)(y - average_y)) / sum((x - average_x)^2) <br/>
1814- : where average_x and average_y are computed with AVERAGE function.
1815+ : It computes the formula:<p/>
1816+ : sum((x - average_x)(y - average_y)) / sum((x - average_x)^2)<p/>
1817+ : where average_x and average_y are computed with AVERAGE function.<p/>
1818+ : Borrowed from excel module.
1819 :
1820 : @see http://office.microsoft.com/en-us/excel/HP052092641033.aspx
1821 : @param $known_y the sequence of y numbers.
1822@@ -1666,57 +1634,57 @@
1823 : @param $known_x the sequence of x numbers.
1824 : The sequence can be of any length, from 1 up.
1825 : @return The slope value, as numeric type
1826- : @error math:errNA if there are different numbers of x's and y's or if the sequence is empty
1827- : @error math:errDiv0 if all x's are equal
1828+ : @error math:INVALID_INPUT if there are different numbers of x's and y's or if the sequence is empty
1829+ : @error math:DIVIDE_BY_0 if all x's are equal
1830 : @example test/rbkt/Queries/zorba/math/from_excel/excel_slope1.xq
1831 :)
1832-declare function math:slope($known_y as xs:double+,
1833- $known_x as xs:double+) as xs:double
1834+declare function math:slope($known_y as double+,
1835+ $known_x as double+) as double
1836 {
1837 if (fn:empty($known_y) or fn:empty($known_x)) then
1838- fn:error($math:errNA, "Slope function: known_x and known_y cannot be empty sequences")
1839+ fn:error($math:INVALID_INPUT, "Slope function: known_x and known_y cannot be empty sequences")
1840 else
1841 let $x_average := fn:avg($known_x)
1842 let $y_average := fn:avg($known_y)
1843 let $xsq_dev := math:sumsq-deviations($known_x, $x_average) return
1844- if ($xsq_dev = 0) then
1845- fn:error($math:errDiv0, "Slope function: all x's are equal")
1846+ if ($xsq_dev eq 0) then
1847+ fn:error($math:DIVIDE_BY_0, "Slope function: all x's are equal")
1848 else
1849 let $x_y_dev := math:sum-x-y-deviations($known_x, $x_average, $known_y, $y_average) return
1850 $x_y_dev div $xsq_dev
1851 };
1852
1853 (:~
1854- : Borrowed from excel module.<br/>
1855- : Returns a normalized value from a distribution characterized by mean and standard_dev.<br/>
1856- : The formula is (x - mean) / standard_dev .
1857+ : Returns a normalized value from a distribution characterized by mean and standard_dev.<p/>
1858+ : The formula is (x - mean) / standard_dev .<p/>
1859+ : Borrowed from excel module.
1860 :
1861 : @see http://office.microsoft.com/en-us/excel/HP052092731033.aspx
1862 : @param $x is the value you want to normalize
1863 : @param $mean is the arithmetic mean of the distribution.
1864 : @param $standard_dev is the standard deviation of the distribution.
1865 : @return The normalized x, as numeric type
1866- : @error math:errNum if standard_dev is a value smaller than zero or equal
1867+ : @error math:INVALID_ARGUMENT if standard_dev is a value smaller than zero or equal
1868 : @example test/rbkt/Queries/zorba/math/from_excel/excel_standardize1.xq
1869 :)
1870-declare function math:standardize($x as xs:double,
1871- $mean as xs:double,
1872- $standard_dev as xs:double) as xs:double
1873+declare function math:standardize($x as double,
1874+ $mean as double,
1875+ $standard_dev as double) as double
1876 {
1877 if ($standard_dev le 0) then
1878- fn:error($math:errNum, "Standardize function: standard_dev must be positive ", $standard_dev)
1879+ fn:error($math:INVALID_ARGUMENT, "Standardize function: standard_dev must be positive ", $standard_dev)
1880 else
1881 ($x - $mean) div $standard_dev
1882 };
1883
1884
1885 (:~
1886- : Borrowed from excel module.<br/>
1887- : Estimates standard deviation based on a sample.
1888+ : Estimates standard deviation based on a sample. <p/>
1889 : The standard deviation is a measure of how widely values are dispersed
1890 : from the average value (the mean).
1891 : It is computed with formula:
1892- : sqrt( sum((x-average_x)^2) / (n-1) ) = sqrt ( VAR(numbers) )
1893+ : sqrt( sum((x-average_x)^2) / (n-1) ) = sqrt ( VAR(numbers) )<p/>
1894+ : Borrowed from excel module.
1895 :
1896 : @see http://office.microsoft.com/en-us/excel/HP052092771033.aspx
1897 : @param $numbers the sequence of numbers
1898@@ -1724,18 +1692,18 @@
1899 : @return the standard deviation, as numeric type
1900 : @example test/rbkt/Queries/zorba/math/from_excel/excel_stdev1.xq
1901 :)
1902-declare function math:stdev($numbers as xs:double+) as xs:double
1903+declare function math:stdev($numbers as double+) as double
1904 {
1905 W3Cmath:sqrt(math:var($numbers))
1906 };
1907
1908 (:~
1909- : Borrowed from excel module.<br/>
1910- : Estimates standard deviation based on a sample.
1911+ : Estimates standard deviation based on a sample. <p/>
1912 : The standard deviation is a measure of how widely values are dispersed
1913 : from the average value (the mean).
1914 : It is computed with formula:
1915- : sqrt( sum((x-average_x)^2) / (n-1) ) = sqrt ( VARA(numbers) )
1916+ : sqrt( sum((x-average_x)^2) / (n-1) ) = sqrt ( VARA(numbers) )<p/>
1917+ : Borrowed from excel module.
1918 :
1919 : @see http://office.microsoft.com/en-us/excel/HP052092791033.aspx
1920 : @param $numbers the sequence of numbers.
1921@@ -1743,18 +1711,18 @@
1922 : @return the standard deviation, as numeric type
1923 : @example test/rbkt/Queries/zorba/math/from_excel/excel_stdeva1.xq
1924 :)
1925-declare function math:stdeva($numbers as xs:double+) as xs:double
1926+declare function math:stdeva($numbers as double+) as double
1927 {
1928 W3Cmath:sqrt(math:vara($numbers))
1929 };
1930
1931 (:~
1932- : Borrowed from excel module.<br/>
1933- : Calculates standard deviation based on the entire population given as arguments.
1934+ : Calculates standard deviation based on the entire population given as arguments. <p/>
1935 : The standard deviation is a measure of how widely values are dispersed from
1936 : the average value (the mean).
1937 : It is computed with formula:
1938- : sqrt( sum((x-average_x)^2) / n ) = sqrt ( VARP(numbers) )
1939+ : sqrt( sum((x-average_x)^2) / n ) = sqrt ( VARP(numbers) )<p/>
1940+ : Borrowed from excel module.
1941 :
1942 : @see http://office.microsoft.com/en-us/excel/HP052092811033.aspx
1943 : @param $numbers the sequence of numbers or values castable to numeric
1944@@ -1762,18 +1730,18 @@
1945 : @return the standard deviation, as numeric type
1946 : @example test/rbkt/Queries/zorba/math/from_excel/excel_stdevp1.xq
1947 :)
1948-declare function math:stdevp($numbers as xs:double+) as xs:double
1949+declare function math:stdevp($numbers as double+) as double
1950 {
1951 W3Cmath:sqrt(math:varp($numbers))
1952 };
1953
1954 (:~
1955- : Borrowed from excel module.<br/>
1956- : Calculates standard deviation based on the entire population given as arguments.
1957+ : Calculates standard deviation based on the entire population given as arguments. <p/>
1958 : The standard deviation is a measure of how widely values are dispersed from
1959 : the average value (the mean).
1960 : It is computed with formula:
1961- : sqrt( sum((x-average_x)^2) / n ) = sqrt ( VARPA(numbers) )
1962+ : sqrt( sum((x-average_x)^2) / n ) = sqrt ( VARPA(numbers) )<p/>
1963+ : Borrowed from excel module.
1964 :
1965 : @see http://office.microsoft.com/en-us/excel/HP052092831033.aspx
1966 : @param $numbers the sequence of numbers or values castable to numeric
1967@@ -1781,15 +1749,15 @@
1968 : @return the standard deviation, as numeric type
1969 : @example test/rbkt/Queries/zorba/math/from_excel/excel_stdevpa1.xq
1970 :)
1971-declare function math:stdevpa($numbers as xs:double+) as xs:double
1972+declare function math:stdevpa($numbers as double+) as double
1973 {
1974 W3Cmath:sqrt(math:varpa($numbers))
1975 };
1976
1977 (:~
1978- : Borrowed from excel module.<br/>
1979- : Returns a subtotal in a sequence of numbers.
1980- : The function applied is given by $function_num.
1981+ : Returns a subtotal in a sequence of numbers.<p/>
1982+ : The function applied is given by $function_num.<p/>
1983+ : Borrowed from excel module.
1984 :
1985 : @see http://office.microsoft.com/en-us/excel/HP052092881033.aspx
1986 : @param $function_num <dl>defines the function to be applied on sequence values.
1987@@ -1811,7 +1779,7 @@
1988 : The sequence can be of any length.
1989 : @return The function result, as numeric type
1990 : @error * depends on the function called
1991- : @error math:errNum if $function_num is not a value between 1 .. 11 or 101 .. 111
1992+ : @error math:INVALID_ARGUMENT if $function_num is not a value between 1 .. 11 or 101 .. 111
1993 : @example test/rbkt/Queries/zorba/math/from_excel/excel_subtotal1.xq
1994 : @example test/rbkt/Queries/zorba/math/from_excel/excel_subtotal2.xq
1995 : @example test/rbkt/Queries/zorba/math/from_excel/excel_subtotal3.xq
1996@@ -1824,40 +1792,40 @@
1997 : @example test/rbkt/Queries/zorba/math/from_excel/excel_subtotal10.xq
1998 : @example test/rbkt/Queries/zorba/math/from_excel/excel_subtotal11.xq
1999 :)
2000-declare function math:subtotal($function_num as xs:integer, $numbers as xs:double*) as xs:double
2001+declare function math:subtotal($function_num as integer, $numbers as double*) as double
2002 {
2003- if ($function_num = 1 or $function_num = 101) then
2004+ if ($function_num eq 1 or $function_num eq 101) then
2005 fn:avg($numbers)
2006 else
2007- if ($function_num = 2 or $function_num = 102) then
2008- fn:count($numbers)
2009- else
2010- if ($function_num = 3 or $function_num = 103) then
2011- fn:count($numbers)
2012- else
2013- if ($function_num = 4 or $function_num = 104) then
2014+ if ($function_num eq 2 or $function_num eq 102) then
2015+ fn:count($numbers)
2016+ else
2017+ if ($function_num eq 3 or $function_num eq 103) then
2018+ fn:count($numbers)
2019+ else
2020+ if ($function_num eq 4 or $function_num eq 104) then
2021 fn:max($numbers)
2022 else
2023- if ($function_num = 5 or $function_num = 105) then
2024+ if ($function_num eq 5 or $function_num eq 105) then
2025 fn:min($numbers)
2026 else
2027- if ($function_num = 6 or $function_num = 106) then
2028+ if ($function_num eq 6 or $function_num eq 106) then
2029 math:product($numbers)
2030 else
2031- if ($function_num = 7 or $function_num = 107) then
2032+ if ($function_num eq 7 or $function_num eq 107) then
2033 math:stdev($numbers)
2034 else
2035- if ($function_num = 8 or $function_num = 108) then
2036+ if ($function_num eq 8 or $function_num eq 108) then
2037 math:stdevp($numbers)
2038 else
2039- if ($function_num = 9 or $function_num = 109) then
2040+ if ($function_num eq 9 or $function_num eq 109) then
2041 fn:sum($numbers)
2042 else
2043- if ($function_num = 10 or $function_num = 110) then
2044+ if ($function_num eq 10 or $function_num eq 110) then
2045 math:var($numbers)
2046 else
2047- if ($function_num = 11 or $function_num = 111) then
2048+ if ($function_num eq 11 or $function_num eq 111) then
2049 math:varp($numbers)
2050 else
2051- fn:error($math:errNum, "Subtotal function: function_num should be between 1 and 11 or 101 and 111")
2052+ fn:error($math:INVALID_ARGUMENT, "Subtotal function: function_num should be between 1 and 11 or 101 and 111")
2053 };
2054
2055=== renamed file 'modules/com/zorba-xquery/www/modules/random.xq' => 'modules/atomic/random.xq'
2056--- modules/com/zorba-xquery/www/modules/random.xq 2013-06-25 03:55:20 +0000
2057+++ modules/atomic/random.xq 2013-07-17 15:56:30 +0000
2058@@ -1,7 +1,7 @@
2059-xquery version "3.0";
2060+jsoniq version "1.0";
2061
2062 (:
2063- : Copyright 2006-2009 The FLWOR Foundation.
2064+ : Copyright 2006-2013 The FLWOR Foundation.
2065 :
2066 : Licensed under the Apache License, Version 2.0 (the "License");
2067 : you may not use this file except in compliance with the License.
2068@@ -24,18 +24,21 @@
2069 : @project Zorba/XQuery Data Model/Atomic/Random
2070 :
2071 :)
2072-module namespace r = "http://www.zorba-xquery.com/modules/random";
2073+module namespace r = "http://zorba.io/modules/random";
2074
2075 declare namespace an = "http://www.zorba-xquery.com/annotations";
2076 declare namespace zerr = "http://zorba.io/modules/zorba-errors";
2077
2078 declare namespace ver = "http://www.zorba-xquery.com/options/versioning";
2079-declare option ver:module-version "2.0";
2080+declare option ver:module-version "1.0";
2081+
2082+declare %private variable $r:errNS as string := "http://zorba.io/modules/random";
2083+declare %private variable $r:INVALID_ARGUMENT as QName := fn:QName($r:errNS, "r:INVALID_ARGUMENT");
2084
2085 (:~
2086- : This function generates an arbitrary number of pseudo-random numbers.
2087+ : <p>This function generates an arbitrary number of pseudo-random numbers.
2088 : The sequence is repeatable by calling the function with the same
2089- : seed.
2090+ : seed.</p>
2091 :
2092 : <p>The function is based on posix function <tt>srand()</tt> and
2093 : <tt>rand()</tt>. Specifically, it invokes <tt>srand($seed)</tt>
2094@@ -56,14 +59,14 @@
2095 : than the max value of <tt>unsigned int</tt> on the given platform.
2096 :)
2097 declare function r:seeded-random(
2098- $seed as xs:integer,
2099- $num as xs:integer
2100-) as xs:integer* external;
2101+ $seed as integer,
2102+ $num as integer
2103+) as integer* external;
2104
2105 (:~
2106- : This function generates an arbitrary number of random numbers.
2107+ : <p>This function generates an arbitrary number of random numbers.
2108 : The function is nondeterministic because the sequence is
2109- : <b>not</b> repeatable.
2110+ : <b>not</b> repeatable.</p>
2111 :
2112 : <p>However, the function is based on posix function <tt>srand()</tt> and
2113 : <tt>rand()</tt>. Specifically, it invokes <tt>srand()</tt>
2114@@ -76,30 +79,30 @@
2115 : sequence if <tt>$num</tt> is negative.
2116 :)
2117 declare %an:nondeterministic function r:random(
2118- $num as xs:integer
2119-) as xs:integer* external;
2120+ $num as integer
2121+) as integer* external;
2122
2123 (:~
2124- : This function generates one random number.
2125- : The function is nondeterministic.
2126+ : <p>This function generates one random number.
2127+ : The function is nondeterministic.</p>
2128 :
2129 : <p>The function is based on <tt>r:random#1</tt>. Specifically, it
2130 : returns the value of invoking <tt>r:random(1)</tt>.</p>
2131 :
2132 : @return a random integer
2133 :)
2134-declare %an:nondeterministic function r:random() as xs:integer
2135+declare %an:nondeterministic function r:random() as integer
2136 {
2137 r:random(1)
2138 };
2139
2140 (:~
2141- : This function generates an arbitrary number of pseudo-random numbers
2142+ : <p>This function generates an arbitrary number of pseudo-random numbers
2143 : within a given range. The sequence is repeatable by calling the
2144- : function with the same seed and boundaries.
2145+ : function with the same seed and boundaries.</p>
2146 :
2147 : <p>The function is based on the function <tt>r:seeded-random#2</tt>.
2148- : Specifically, it's result is repeatable if called with the
2149+ : Specifically, its result is repeatable if called with the
2150 : same arguments.</p>
2151 :
2152 : @param $seed the initial seed value for the sequence
2153@@ -114,37 +117,37 @@
2154 :
2155 : @error zerr:ZQXD0004 if the given seed is negative or great
2156 : than the max value of <tt>unsigned int</tt> on the given platform.
2157- : @error r:invalid-arg if <tt>$lower</tt> is greater than <tt>$upper</tt>
2158+ : @error r:INVALID_ARGUMENT if <tt>$lower</tt> is greater than <tt>$upper</tt>
2159 :)
2160 declare function r:seeded-random-between(
2161- $seed as xs:integer,
2162- $lower as xs:integer,
2163- $upper as xs:integer,
2164- $num as xs:integer
2165-) as xs:integer*
2166+ $seed as integer,
2167+ $lower as integer,
2168+ $upper as integer,
2169+ $num as integer
2170+) as integer*
2171 {
2172 if ( $lower eq $upper ) then
2173 $lower
2174 else
2175- if ( $lower > $upper ) then
2176+ if ( $lower gt $upper ) then
2177 fn:error(
2178- fn:QName("http://www.zorba-xquery.com/modules/random", "invalid-arg"),
2179- "$lower must be smaller or equal than $upper",
2180+ $r:INVALID_ARGUMENT,
2181+ "$lower must be less than or equal to $upper",
2182 ($lower, $upper)
2183 )
2184 else
2185 for $i in r:seeded-random( $seed, $num )
2186 return
2187 if ( ( $upper - $lower ) lt 10000 ) then
2188- xs:integer( fn:round( xs:double( $i mod 10000 ) div 10000 * ( $upper - $lower) ) + $lower )
2189+ integer( fn:round( double( $i mod 10000 ) div 10000 * ( $upper - $lower) ) + $lower )
2190 else
2191- xs:integer( fn:round( xs:double( $i ) mod ( $upper - $lower ) ) + $lower )
2192+ integer( fn:round( double( $i ) mod ( $upper - $lower ) ) + $lower )
2193 };
2194
2195 (:~
2196- : This function generates an arbitrary number of random numbers
2197+ : <p>This function generates an arbitrary number of random numbers
2198 : within a given range. The function is nondeterministic because
2199- : the sequence is <b>not</b> repeatable.
2200+ : the sequence is <b>not</b> repeatable.</p>
2201 :
2202 : @param $lower the lower bound for every value within the sequence
2203 : @param $upper the upper bound for every value within the sequence
2204@@ -155,34 +158,34 @@
2205 : equal to <tt>$upper</tt> and the empty sequence if <tt>$num</tt>
2206 : is negative.
2207 :
2208- : @error r:invalid-arg if <tt>$lower</tt> is greater than <tt>$upper</tt>
2209+ : @error r:INVALID_ARGUMENT if <tt>$lower</tt> is greater than <tt>$upper</tt>
2210 :)
2211 declare %an:nondeterministic function r:random-between(
2212- $lower as xs:integer,
2213- $upper as xs:integer,
2214- $num as xs:integer) as xs:integer*
2215+ $lower as integer,
2216+ $upper as integer,
2217+ $num as integer) as integer*
2218 {
2219 if ( $lower eq $upper ) then
2220 $lower
2221 else
2222- if ( $lower > $upper ) then
2223+ if ( $lower gt $upper ) then
2224 fn:error(
2225- fn:QName("http://www.zorba-xquery.com/modules/random", "invalid-arg"),
2226- "$lower must be smaller or equal than $upper",
2227+ $r:INVALID_ARGUMENT,
2228+ "$lower must be less than or equal to $upper",
2229 ($lower, $upper)
2230 )
2231 else
2232 for $i in r:random( $num )
2233 return
2234 if ( ( $upper - $lower ) lt 10000 ) then
2235- xs:integer( fn:round( xs:double( $i mod 10000 ) div 10000 * ( $upper - $lower) ) + $lower )
2236+ integer( fn:round( double( $i mod 10000 ) div 10000 * ( $upper - $lower) ) + $lower )
2237 else
2238- xs:integer( fn:round( xs:double( $i ) mod ( $upper - $lower ) ) + $lower )
2239+ integer( fn:round( double( $i ) mod ( $upper - $lower ) ) + $lower )
2240 };
2241
2242 (:~
2243- : This function generates one random number within a given range.
2244- : The function is nondeterministic.
2245+ : <p>This function generates one random number within a given range.
2246+ : The function is nondeterministic.</p>
2247 :
2248 : <p>The function is based on <tt>r:random-between#3</tt>.
2249 : Specifically, it returns the value of invoking
2250@@ -193,18 +196,19 @@
2251 : @return a random integer within the given range
2252 :)
2253 declare %an:nondeterministic function r:random-between(
2254- $lower as xs:integer,
2255- $upper as xs:integer
2256-) as xs:integer
2257+ $lower as integer,
2258+ $upper as integer
2259+) as integer
2260 {
2261 r:random-between($lower, $upper, 1)
2262 };
2263
2264 (:~
2265- : This function returns a uuid. Note, that the function is not stable,
2266- : that is, it returns a different UUID everytime the function is invoked.
2267+ : <p>This function returns a uuid.</p>
2268+ : <p> Note, that the function is not stable,
2269+ : that is, it returns a different UUID everytime the function is invoked.</p>
2270 :
2271- : @return the generated UUID as xs:string
2272+ : @return the generated UUID as string
2273 :)
2274-declare %an:nondeterministic function r:uuid() as xs:string external;
2275+declare %an:nondeterministic function r:uuid() as string external;
2276
2277
2278=== removed directory 'modules/base64'
2279=== removed file 'modules/base64/CMakeLists.txt'
2280--- modules/base64/CMakeLists.txt 2013-07-17 07:20:31 +0000
2281+++ modules/base64/CMakeLists.txt 1970-01-01 00:00:00 +0000
2282@@ -1,16 +0,0 @@
2283-# Copyright 2013 The FLWOR Foundation.
2284-#
2285-# Licensed under the Apache License, Version 2.0 (the "License");
2286-# you may not use this file except in compliance with the License.
2287-# You may obtain a copy of the License at
2288-#
2289-# http://www.apache.org/licenses/LICENSE-2.0
2290-#
2291-# Unless required by applicable law or agreed to in writing, software
2292-# distributed under the License is distributed on an "AS IS" BASIS,
2293-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2294-# See the License for the specific language governing permissions and
2295-# limitations under the License.
2296-
2297-DECLARE_ZORBA_MODULE(FILE base64.xq VERSION 1.0
2298- URI "http://zorba.io/modules/base64")
2299
2300=== modified file 'modules/com/zorba-xquery/www/modules/CMakeLists.txt'
2301--- modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-07-17 07:20:31 +0000
2302+++ modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-07-17 15:56:30 +0000
2303@@ -56,8 +56,6 @@
2304 URI "http://www.zorba-xquery.com/modules/datetime")
2305 DECLARE_ZORBA_MODULE(FILE fetch.xq VERSION 2.0
2306 URI "http://www.zorba-xquery.com/modules/fetch")
2307-DECLARE_ZORBA_MODULE(FILE math.xq VERSION 2.0
2308- URI "http://www.zorba-xquery.com/modules/math")
2309 DECLARE_ZORBA_MODULE(FILE node-reference.xq VERSION 2.0
2310 URI "http://www.zorba-xquery.com/modules/node-reference")
2311 DECLARE_ZORBA_MODULE(FILE reference.xq VERSION 1.0
2312@@ -66,8 +64,6 @@
2313 URI "http://www.zorba-xquery.com/modules/node")
2314 DECLARE_ZORBA_MODULE(FILE item.xq VERSION 1.0
2315 URI "http://www.zorba-xquery.com/modules/item")
2316-DECLARE_ZORBA_MODULE(FILE random.xq VERSION 2.0
2317- URI "http://www.zorba-xquery.com/modules/random")
2318 DECLARE_ZORBA_MODULE(FILE reflection.xq VERSION 2.0
2319 URI "http://www.zorba-xquery.com/modules/reflection")
2320 DECLARE_ZORBA_MODULE(FILE schema.xq VERSION 2.0
2321
2322=== modified file 'src/context/static_context.cpp'
2323--- src/context/static_context.cpp 2013-07-17 07:20:31 +0000
2324+++ src/context/static_context.cpp 2013-07-17 15:56:30 +0000
2325@@ -353,7 +353,7 @@
2326
2327 const char*
2328 static_context::ZORBA_MATH_FN_NS =
2329-"http://www.zorba-xquery.com/modules/math";
2330+"http://zorba.io/modules/math";
2331
2332 const char*
2333 static_context::ZORBA_BASE64_FN_NS =
2334@@ -433,7 +433,7 @@
2335
2336 const char*
2337 static_context::ZORBA_RANDOM_FN_NS =
2338-"http://www.zorba-xquery.com/modules/random";
2339+"http://zorba.io/modules/random";
2340
2341 const char*
2342 static_context::ZORBA_INTROSP_SCTX_FN_NS =
2343
2344=== modified file 'src/functions/pregenerated/func_maths.cpp'
2345--- src/functions/pregenerated/func_maths.cpp 2013-03-05 23:11:50 +0000
2346+++ src/functions/pregenerated/func_maths.cpp 2013-07-17 15:56:30 +0000
2347@@ -442,7 +442,7 @@
2348
2349 {
2350 DECL_WITH_KIND(sctx, fn_zorba_math_cosh,
2351- (createQName("http://www.zorba-xquery.com/modules/math","","cosh"),
2352+ (createQName("http://zorba.io/modules/math","","cosh"),
2353 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2354 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
2355 FunctionConsts::FN_ZORBA_MATH_COSH_1);
2356@@ -454,7 +454,7 @@
2357
2358 {
2359 DECL_WITH_KIND(sctx, fn_zorba_math_acosh,
2360- (createQName("http://www.zorba-xquery.com/modules/math","","acosh"),
2361+ (createQName("http://zorba.io/modules/math","","acosh"),
2362 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2363 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
2364 FunctionConsts::FN_ZORBA_MATH_ACOSH_1);
2365@@ -466,7 +466,7 @@
2366
2367 {
2368 DECL_WITH_KIND(sctx, fn_zorba_math_fmod,
2369- (createQName("http://www.zorba-xquery.com/modules/math","","fmod"),
2370+ (createQName("http://zorba.io/modules/math","","fmod"),
2371 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2372 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2373 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
2374@@ -479,7 +479,7 @@
2375
2376 {
2377 DECL_WITH_KIND(sctx, fn_zorba_math_ldexp,
2378- (createQName("http://www.zorba-xquery.com/modules/math","","ldexp"),
2379+ (createQName("http://zorba.io/modules/math","","ldexp"),
2380 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2381 GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
2382 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
2383@@ -505,7 +505,7 @@
2384
2385 {
2386 DECL_WITH_KIND(sctx, fn_zorba_math_sinh,
2387- (createQName("http://www.zorba-xquery.com/modules/math","","sinh"),
2388+ (createQName("http://zorba.io/modules/math","","sinh"),
2389 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2390 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
2391 FunctionConsts::FN_ZORBA_MATH_SINH_1);
2392@@ -517,7 +517,7 @@
2393
2394 {
2395 DECL_WITH_KIND(sctx, fn_zorba_math_asinh,
2396- (createQName("http://www.zorba-xquery.com/modules/math","","asinh"),
2397+ (createQName("http://zorba.io/modules/math","","asinh"),
2398 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2399 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
2400 FunctionConsts::FN_ZORBA_MATH_ASINH_1);
2401@@ -529,7 +529,7 @@
2402
2403 {
2404 DECL_WITH_KIND(sctx, fn_zorba_math_tanh,
2405- (createQName("http://www.zorba-xquery.com/modules/math","","tanh"),
2406+ (createQName("http://zorba.io/modules/math","","tanh"),
2407 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2408 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
2409 FunctionConsts::FN_ZORBA_MATH_TANH_1);
2410@@ -541,7 +541,7 @@
2411
2412 {
2413 DECL_WITH_KIND(sctx, fn_zorba_math_atanh,
2414- (createQName("http://www.zorba-xquery.com/modules/math","","atanh"),
2415+ (createQName("http://zorba.io/modules/math","","atanh"),
2416 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2417 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE),
2418 FunctionConsts::FN_ZORBA_MATH_ATANH_1);
2419@@ -564,7 +564,7 @@
2420
2421 {
2422 DECL_WITH_KIND(sctx, fn_zorba_math_is_inf,
2423- (createQName("http://www.zorba-xquery.com/modules/math","","is_inf"),
2424+ (createQName("http://zorba.io/modules/math","","is_inf"),
2425 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2426 GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
2427 FunctionConsts::FN_ZORBA_MATH_IS_INF_1);
2428@@ -576,7 +576,7 @@
2429
2430 {
2431 DECL_WITH_KIND(sctx, fn_zorba_math_is_nan,
2432- (createQName("http://www.zorba-xquery.com/modules/math","","is_nan"),
2433+ (createQName("http://zorba.io/modules/math","","is_nan"),
2434 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2435 GENV_TYPESYSTEM.BOOLEAN_TYPE_ONE),
2436 FunctionConsts::FN_ZORBA_MATH_IS_NAN_1);
2437@@ -588,7 +588,7 @@
2438
2439 {
2440 DECL_WITH_KIND(sctx, fn_zorba_math_modf,
2441- (createQName("http://www.zorba-xquery.com/modules/math","","modf"),
2442+ (createQName("http://zorba.io/modules/math","","modf"),
2443 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2444 GENV_TYPESYSTEM.DOUBLE_TYPE_PLUS),
2445 FunctionConsts::FN_ZORBA_MATH_MODF_1);
2446@@ -600,7 +600,7 @@
2447
2448 {
2449 DECL_WITH_KIND(sctx, fn_zorba_math_frexp,
2450- (createQName("http://www.zorba-xquery.com/modules/math","","frexp"),
2451+ (createQName("http://zorba.io/modules/math","","frexp"),
2452 GENV_TYPESYSTEM.DOUBLE_TYPE_ONE,
2453 GENV_TYPESYSTEM.DOUBLE_TYPE_PLUS),
2454 FunctionConsts::FN_ZORBA_MATH_FREXP_1);
2455
2456=== modified file 'src/functions/pregenerated/func_random.cpp'
2457--- src/functions/pregenerated/func_random.cpp 2013-03-05 23:11:50 +0000
2458+++ src/functions/pregenerated/func_random.cpp 2013-07-17 15:56:30 +0000
2459@@ -67,7 +67,7 @@
2460
2461 {
2462 DECL_WITH_KIND(sctx, fn_zorba_random_seeded_random,
2463- (createQName("http://www.zorba-xquery.com/modules/random","","seeded-random"),
2464+ (createQName("http://zorba.io/modules/random","","seeded-random"),
2465 GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
2466 GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
2467 GENV_TYPESYSTEM.INTEGER_TYPE_STAR),
2468@@ -80,7 +80,7 @@
2469
2470 {
2471 DECL_WITH_KIND(sctx, fn_zorba_random_random,
2472- (createQName("http://www.zorba-xquery.com/modules/random","","random"),
2473+ (createQName("http://zorba.io/modules/random","","random"),
2474 GENV_TYPESYSTEM.INTEGER_TYPE_ONE,
2475 GENV_TYPESYSTEM.INTEGER_TYPE_STAR),
2476 FunctionConsts::FN_ZORBA_RANDOM_RANDOM_1);
2477@@ -103,7 +103,7 @@
2478
2479 {
2480 DECL_WITH_KIND(sctx, fn_zorba_util_uuid,
2481- (createQName("http://www.zorba-xquery.com/modules/random","","uuid"),
2482+ (createQName("http://zorba.io/modules/random","","uuid"),
2483 GENV_TYPESYSTEM.STRING_TYPE_ONE),
2484 FunctionConsts::FN_ZORBA_RANDOM_UUID_0);
2485
2486
2487=== modified file 'src/runtime/spec/mappings.xml'
2488--- src/runtime/spec/mappings.xml 2013-07-17 07:20:31 +0000
2489+++ src/runtime/spec/mappings.xml 2013-07-17 15:56:30 +0000
2490@@ -12,7 +12,7 @@
2491 define="XQUERY_MATH_FN_NS"
2492 prefix="math"/>
2493
2494- <zorba:namespace uri="http://www.zorba-xquery.com/modules/math"
2495+ <zorba:namespace uri="http://zorba.io/modules/math"
2496 define="ZORBA_MATH_FN_NS"
2497 prefix="fn-zorba-math"/>
2498
2499@@ -94,7 +94,7 @@
2500 define="ZORBA_XQDOC_FN_NS"
2501 prefix="fn-zorba-xqdoc"/>
2502
2503- <zorba:namespace uri="http://www.zorba-xquery.com/modules/random"
2504+ <zorba:namespace uri="http://zorba.io/modules/random"
2505 define="ZORBA_RANDOM_FN_NS"
2506 prefix="fn-zorba-random"/>
2507
2508
2509=== modified file 'test/rbkt/ExpQueryResults/zorba/random/seeded-random-between1.xml.res'
2510--- test/rbkt/ExpQueryResults/zorba/random/seeded-random-between1.xml.res 2013-02-07 17:24:36 +0000
2511+++ test/rbkt/ExpQueryResults/zorba/random/seeded-random-between1.xml.res 2013-07-17 15:56:30 +0000
2512@@ -1,1 +1,1 @@
2513-true true $lower must be smaller or equal than $upper 4 1
2514+true true $lower must be less than or equal to $upper 4 1
2515
2516=== modified file 'test/rbkt/Queries/zorba/annotations/annot-err-05.xq'
2517--- test/rbkt/Queries/zorba/annotations/annot-err-05.xq 2013-02-07 17:24:36 +0000
2518+++ test/rbkt/Queries/zorba/annotations/annot-err-05.xq 2013-07-17 15:56:30 +0000
2519@@ -1,6 +1,6 @@
2520 declare namespace ann = "http://www.zorba-xquery.com/annotations";
2521
2522-declare namespace random = "http://www.zorba-xquery.com/modules/random";
2523+declare namespace random = "http://zorba.io/modules/random";
2524
2525 declare %ann:deterministic %ann:deterministic function random:random() as xs:integer external;
2526
2527
2528=== modified file 'test/rbkt/Queries/zorba/annotations/annot-err-06.xq'
2529--- test/rbkt/Queries/zorba/annotations/annot-err-06.xq 2013-02-07 17:24:36 +0000
2530+++ test/rbkt/Queries/zorba/annotations/annot-err-06.xq 2013-07-17 15:56:30 +0000
2531@@ -1,6 +1,6 @@
2532 declare namespace ann = "http://www.zorba-xquery.com/annotations";
2533
2534-declare namespace random = "http://www.zorba-xquery.com/modules/random";
2535+declare namespace random = "http://zorba.io/modules/random";
2536
2537 declare %ann:nondeterministic %ann:nondeterministic function random:random() as xs:integer external;
2538
2539
2540=== modified file 'test/rbkt/Queries/zorba/annotations/annot-err-07.xq'
2541--- test/rbkt/Queries/zorba/annotations/annot-err-07.xq 2013-02-07 17:24:36 +0000
2542+++ test/rbkt/Queries/zorba/annotations/annot-err-07.xq 2013-07-17 15:56:30 +0000
2543@@ -1,6 +1,6 @@
2544 declare namespace ann = "http://www.zorba-xquery.com/annotations";
2545
2546-declare namespace random = "http://www.zorba-xquery.com/modules/random";
2547+declare namespace random = "http://zorba.io/modules/random";
2548
2549 declare %ann:deterministic %ann:nondeterministic function random:random() as xs:integer external;
2550
2551
2552=== modified file 'test/rbkt/Queries/zorba/jsoniq/roundtrip/roundtrip_02.xq'
2553--- test/rbkt/Queries/zorba/jsoniq/roundtrip/roundtrip_02.xq 2012-09-19 19:47:50 +0000
2554+++ test/rbkt/Queries/zorba/jsoniq/roundtrip/roundtrip_02.xq 2013-07-17 15:56:30 +0000
2555@@ -1,5 +1,5 @@
2556 import module namespace f = "http://expath.org/ns/file";
2557-import module namespace r = "http://www.zorba-xquery.com/modules/random";
2558+import module namespace r = "http://zorba.io/modules/random";
2559
2560 import schema namespace o = "http://www.w3.org/2010/xslt-xquery-serialization";
2561
2562
2563=== modified file 'test/rbkt/Queries/zorba/math/acosh1.xq'
2564--- test/rbkt/Queries/zorba/math/acosh1.xq 2013-02-07 17:24:36 +0000
2565+++ test/rbkt/Queries/zorba/math/acosh1.xq 2013-07-17 15:56:30 +0000
2566@@ -1,3 +1,3 @@
2567-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
2568+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
2569
2570 fn-zorba-math:acosh(8723321.4)
2571\ No newline at end of file
2572
2573=== modified file 'test/rbkt/Queries/zorba/math/asinh1.xq'
2574--- test/rbkt/Queries/zorba/math/asinh1.xq 2013-02-07 17:24:36 +0000
2575+++ test/rbkt/Queries/zorba/math/asinh1.xq 2013-07-17 15:56:30 +0000
2576@@ -1,3 +1,3 @@
2577-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
2578+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
2579
2580 fn-zorba-math:asinh(8723321.4)
2581\ No newline at end of file
2582
2583=== modified file 'test/rbkt/Queries/zorba/math/atanh1.xq'
2584--- test/rbkt/Queries/zorba/math/atanh1.xq 2013-02-07 17:24:36 +0000
2585+++ test/rbkt/Queries/zorba/math/atanh1.xq 2013-07-17 15:56:30 +0000
2586@@ -1,3 +1,3 @@
2587-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
2588+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
2589
2590 fn-zorba-math:atanh(0.3)
2591\ No newline at end of file
2592
2593=== modified file 'test/rbkt/Queries/zorba/math/cosh1.xq'
2594--- test/rbkt/Queries/zorba/math/cosh1.xq 2013-02-07 17:24:36 +0000
2595+++ test/rbkt/Queries/zorba/math/cosh1.xq 2013-07-17 15:56:30 +0000
2596@@ -1,3 +1,3 @@
2597-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
2598+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
2599
2600 fn-zorba-math:cosh(7.104760e+002)
2601\ No newline at end of file
2602
2603=== modified file 'test/rbkt/Queries/zorba/math/cosh2.xq'
2604--- test/rbkt/Queries/zorba/math/cosh2.xq 2013-02-07 17:24:36 +0000
2605+++ test/rbkt/Queries/zorba/math/cosh2.xq 2013-07-17 15:56:30 +0000
2606@@ -1,4 +1,4 @@
2607 declare namespace math="http://www.w3.org/2005/xpath-functions/math";
2608-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
2609+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
2610
2611 fn-zorba-math:cosh(math:log(2))
2612\ No newline at end of file
2613
2614=== modified file 'test/rbkt/Queries/zorba/math/deg-to-rad.xq'
2615--- test/rbkt/Queries/zorba/math/deg-to-rad.xq 2013-02-07 17:24:36 +0000
2616+++ test/rbkt/Queries/zorba/math/deg-to-rad.xq 2013-07-17 15:56:30 +0000
2617@@ -1,4 +1,4 @@
2618 (: test for bug #3079279 :)
2619-import module namespace math="http://www.zorba-xquery.com/modules/math";
2620+import module namespace math="http://zorba.io/modules/math";
2621
2622 math:deg-to-rad(10)
2623
2624=== modified file 'test/rbkt/Queries/zorba/math/fmod1.xq'
2625--- test/rbkt/Queries/zorba/math/fmod1.xq 2013-02-07 17:24:36 +0000
2626+++ test/rbkt/Queries/zorba/math/fmod1.xq 2013-07-17 15:56:30 +0000
2627@@ -1,3 +1,3 @@
2628-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
2629+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
2630
2631 fn-zorba-math:fmod(-10, 3)
2632\ No newline at end of file
2633
2634=== modified file 'test/rbkt/Queries/zorba/math/fmod2.xq'
2635--- test/rbkt/Queries/zorba/math/fmod2.xq 2013-02-07 17:24:36 +0000
2636+++ test/rbkt/Queries/zorba/math/fmod2.xq 2013-07-17 15:56:30 +0000
2637@@ -1,3 +1,3 @@
2638-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
2639+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
2640
2641 fn-zorba-math:fmod(2.3, 1.1)
2642\ No newline at end of file
2643
2644=== modified file 'test/rbkt/Queries/zorba/math/fmod3.xq'
2645--- test/rbkt/Queries/zorba/math/fmod3.xq 2013-02-07 17:24:36 +0000
2646+++ test/rbkt/Queries/zorba/math/fmod3.xq 2013-07-17 15:56:30 +0000
2647@@ -1,3 +1,3 @@
2648-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
2649+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
2650
2651 fn-zorba-math:fmod(-10, 0)
2652\ No newline at end of file
2653
2654=== modified file 'test/rbkt/Queries/zorba/math/frexp1.xq'
2655--- test/rbkt/Queries/zorba/math/frexp1.xq 2013-02-07 17:24:36 +0000
2656+++ test/rbkt/Queries/zorba/math/frexp1.xq 2013-07-17 15:56:30 +0000
2657@@ -1,3 +1,3 @@
2658-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
2659+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
2660
2661 fn-zorba-math:frexp(16.4)
2662\ No newline at end of file
2663
2664=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_avedev1.xq'
2665--- test/rbkt/Queries/zorba/math/from_excel/excel_avedev1.xq 2013-02-07 17:24:36 +0000
2666+++ test/rbkt/Queries/zorba/math/from_excel/excel_avedev1.xq 2013-07-17 15:56:30 +0000
2667@@ -1,4 +1,4 @@
2668 import module namespace
2669-math="http://www.zorba-xquery.com/modules/math";
2670+math="http://zorba.io/modules/math";
2671
2672 math:avedev((4, 5, 6, 7, 5, 4, 3))
2673
2674=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_ceiling1.xq'
2675--- test/rbkt/Queries/zorba/math/from_excel/excel_ceiling1.xq 2013-02-07 17:24:36 +0000
2676+++ test/rbkt/Queries/zorba/math/from_excel/excel_ceiling1.xq 2013-07-17 15:56:30 +0000
2677@@ -1,4 +1,4 @@
2678 import module namespace
2679-math="http://www.zorba-xquery.com/modules/math";
2680+math="http://zorba.io/modules/math";
2681
2682 math:ceiling(2.5, 1)
2683
2684=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_ceiling2.xq'
2685--- test/rbkt/Queries/zorba/math/from_excel/excel_ceiling2.xq 2013-02-07 17:24:36 +0000
2686+++ test/rbkt/Queries/zorba/math/from_excel/excel_ceiling2.xq 2013-07-17 15:56:30 +0000
2687@@ -1,4 +1,4 @@
2688 import module namespace
2689-math="http://www.zorba-xquery.com/modules/math";
2690+math="http://zorba.io/modules/math";
2691
2692 math:ceiling(-2.5, -2)
2693
2694=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_ceiling3.spec'
2695--- test/rbkt/Queries/zorba/math/from_excel/excel_ceiling3.spec 2013-02-07 17:24:36 +0000
2696+++ test/rbkt/Queries/zorba/math/from_excel/excel_ceiling3.spec 2013-07-17 15:56:30 +0000
2697@@ -1,1 +1,1 @@
2698-Error: http://www.zorba-xquery.com/modules/math:Num
2699+Error: http://zorba.io/modules/math:INVALID_ARGUMENT
2700
2701=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_ceiling3.xq'
2702--- test/rbkt/Queries/zorba/math/from_excel/excel_ceiling3.xq 2013-02-07 17:24:36 +0000
2703+++ test/rbkt/Queries/zorba/math/from_excel/excel_ceiling3.xq 2013-07-17 15:56:30 +0000
2704@@ -1,5 +1,5 @@
2705 import module namespace
2706-math="http://www.zorba-xquery.com/modules/math";
2707+math="http://zorba.io/modules/math";
2708
2709 math:ceiling(-2.5, 2)
2710
2711
2712=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_ceiling4.xq'
2713--- test/rbkt/Queries/zorba/math/from_excel/excel_ceiling4.xq 2013-02-07 17:24:36 +0000
2714+++ test/rbkt/Queries/zorba/math/from_excel/excel_ceiling4.xq 2013-07-17 15:56:30 +0000
2715@@ -1,4 +1,4 @@
2716 import module namespace
2717-math="http://www.zorba-xquery.com/modules/math";
2718+math="http://zorba.io/modules/math";
2719
2720 math:ceiling(1.5, 0.1)
2721
2722=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_ceiling5.xq'
2723--- test/rbkt/Queries/zorba/math/from_excel/excel_ceiling5.xq 2013-02-07 17:24:36 +0000
2724+++ test/rbkt/Queries/zorba/math/from_excel/excel_ceiling5.xq 2013-07-17 15:56:30 +0000
2725@@ -1,4 +1,4 @@
2726 import module namespace
2727-math="http://www.zorba-xquery.com/modules/math";
2728+math="http://zorba.io/modules/math";
2729
2730 math:ceiling(0.234, 0.01)
2731
2732=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_ceiling6.xq'
2733--- test/rbkt/Queries/zorba/math/from_excel/excel_ceiling6.xq 2013-02-07 17:24:36 +0000
2734+++ test/rbkt/Queries/zorba/math/from_excel/excel_ceiling6.xq 2013-07-17 15:56:30 +0000
2735@@ -1,4 +1,4 @@
2736 import module namespace
2737-math="http://www.zorba-xquery.com/modules/math";
2738+math="http://zorba.io/modules/math";
2739
2740 math:ceiling(-20.1, -20.2)
2741
2742=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_ceiling7.xq'
2743--- test/rbkt/Queries/zorba/math/from_excel/excel_ceiling7.xq 2013-02-07 17:24:36 +0000
2744+++ test/rbkt/Queries/zorba/math/from_excel/excel_ceiling7.xq 2013-07-17 15:56:30 +0000
2745@@ -1,4 +1,4 @@
2746 import module namespace
2747-math="http://www.zorba-xquery.com/modules/math";
2748+math="http://zorba.io/modules/math";
2749
2750 math:ceiling(0.6, 5E-1)
2751
2752=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_even1.xq'
2753--- test/rbkt/Queries/zorba/math/from_excel/excel_even1.xq 2013-02-07 17:24:36 +0000
2754+++ test/rbkt/Queries/zorba/math/from_excel/excel_even1.xq 2013-07-17 15:56:30 +0000
2755@@ -1,4 +1,4 @@
2756 import module namespace
2757-math="http://www.zorba-xquery.com/modules/math";
2758+math="http://zorba.io/modules/math";
2759
2760 math:even(1.5)
2761
2762=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_even2.xq'
2763--- test/rbkt/Queries/zorba/math/from_excel/excel_even2.xq 2013-02-07 17:24:36 +0000
2764+++ test/rbkt/Queries/zorba/math/from_excel/excel_even2.xq 2013-07-17 15:56:30 +0000
2765@@ -1,4 +1,4 @@
2766 import module namespace
2767-math="http://www.zorba-xquery.com/modules/math";
2768+math="http://zorba.io/modules/math";
2769
2770 math:even(3)
2771
2772=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_even3.xq'
2773--- test/rbkt/Queries/zorba/math/from_excel/excel_even3.xq 2013-02-07 17:24:36 +0000
2774+++ test/rbkt/Queries/zorba/math/from_excel/excel_even3.xq 2013-07-17 15:56:30 +0000
2775@@ -1,4 +1,4 @@
2776 import module namespace
2777-math="http://www.zorba-xquery.com/modules/math";
2778+math="http://zorba.io/modules/math";
2779
2780 math:even(2)
2781
2782=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_even4.xq'
2783--- test/rbkt/Queries/zorba/math/from_excel/excel_even4.xq 2013-02-07 17:24:36 +0000
2784+++ test/rbkt/Queries/zorba/math/from_excel/excel_even4.xq 2013-07-17 15:56:30 +0000
2785@@ -1,4 +1,4 @@
2786 import module namespace
2787-math="http://www.zorba-xquery.com/modules/math";
2788+math="http://zorba.io/modules/math";
2789
2790 math:even(-1)
2791
2792=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_even5.xq'
2793--- test/rbkt/Queries/zorba/math/from_excel/excel_even5.xq 2013-02-07 17:24:36 +0000
2794+++ test/rbkt/Queries/zorba/math/from_excel/excel_even5.xq 2013-07-17 15:56:30 +0000
2795@@ -1,4 +1,4 @@
2796 import module namespace
2797-math="http://www.zorba-xquery.com/modules/math";
2798+math="http://zorba.io/modules/math";
2799
2800 math:even(2.5)
2801
2802=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_even6.xq'
2803--- test/rbkt/Queries/zorba/math/from_excel/excel_even6.xq 2013-02-07 17:24:36 +0000
2804+++ test/rbkt/Queries/zorba/math/from_excel/excel_even6.xq 2013-07-17 15:56:30 +0000
2805@@ -1,4 +1,4 @@
2806 import module namespace
2807-math="http://www.zorba-xquery.com/modules/math";
2808+math="http://zorba.io/modules/math";
2809
2810 math:even(0)
2811
2812=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_fact1.xq'
2813--- test/rbkt/Queries/zorba/math/from_excel/excel_fact1.xq 2013-02-07 17:24:36 +0000
2814+++ test/rbkt/Queries/zorba/math/from_excel/excel_fact1.xq 2013-07-17 15:56:30 +0000
2815@@ -1,4 +1,4 @@
2816 import module namespace
2817-math="http://www.zorba-xquery.com/modules/math";
2818+math="http://zorba.io/modules/math";
2819
2820 math:fact(5)
2821
2822=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_fact2.xq'
2823--- test/rbkt/Queries/zorba/math/from_excel/excel_fact2.xq 2013-02-07 17:24:36 +0000
2824+++ test/rbkt/Queries/zorba/math/from_excel/excel_fact2.xq 2013-07-17 15:56:30 +0000
2825@@ -1,4 +1,4 @@
2826 import module namespace
2827-math="http://www.zorba-xquery.com/modules/math";
2828+math="http://zorba.io/modules/math";
2829
2830 math:fact(1)
2831
2832=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_fact3.xq'
2833--- test/rbkt/Queries/zorba/math/from_excel/excel_fact3.xq 2013-02-07 17:24:36 +0000
2834+++ test/rbkt/Queries/zorba/math/from_excel/excel_fact3.xq 2013-07-17 15:56:30 +0000
2835@@ -1,4 +1,4 @@
2836 import module namespace
2837-math="http://www.zorba-xquery.com/modules/math";
2838+math="http://zorba.io/modules/math";
2839
2840 math:fact(0)
2841
2842=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_fact4.spec'
2843--- test/rbkt/Queries/zorba/math/from_excel/excel_fact4.spec 2013-02-07 17:24:36 +0000
2844+++ test/rbkt/Queries/zorba/math/from_excel/excel_fact4.spec 2013-07-17 15:56:30 +0000
2845@@ -1,1 +1,1 @@
2846-Error: http://www.zorba-xquery.com/modules/math:Num
2847+Error: http://zorba.io/modules/math:INVALID_ARGUMENT
2848
2849=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_fact4.xq'
2850--- test/rbkt/Queries/zorba/math/from_excel/excel_fact4.xq 2013-02-07 17:24:36 +0000
2851+++ test/rbkt/Queries/zorba/math/from_excel/excel_fact4.xq 2013-07-17 15:56:30 +0000
2852@@ -1,5 +1,5 @@
2853 import module namespace
2854-math="http://www.zorba-xquery.com/modules/math";
2855+math="http://zorba.io/modules/math";
2856
2857 math:fact(-1)
2858
2859
2860=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_fact5.xq'
2861--- test/rbkt/Queries/zorba/math/from_excel/excel_fact5.xq 2013-02-07 17:24:36 +0000
2862+++ test/rbkt/Queries/zorba/math/from_excel/excel_fact5.xq 2013-07-17 15:56:30 +0000
2863@@ -1,4 +1,4 @@
2864 import module namespace
2865-math="http://www.zorba-xquery.com/modules/math";
2866+math="http://zorba.io/modules/math";
2867
2868 math:fact(1)
2869
2870=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_factdouble1.xq'
2871--- test/rbkt/Queries/zorba/math/from_excel/excel_factdouble1.xq 2013-02-07 17:24:36 +0000
2872+++ test/rbkt/Queries/zorba/math/from_excel/excel_factdouble1.xq 2013-07-17 15:56:30 +0000
2873@@ -1,4 +1,4 @@
2874 import module namespace
2875-math="http://www.zorba-xquery.com/modules/math";
2876+math="http://zorba.io/modules/math";
2877
2878 math:factdouble(6)
2879
2880=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_factdouble2.xq'
2881--- test/rbkt/Queries/zorba/math/from_excel/excel_factdouble2.xq 2013-02-07 17:24:36 +0000
2882+++ test/rbkt/Queries/zorba/math/from_excel/excel_factdouble2.xq 2013-07-17 15:56:30 +0000
2883@@ -1,4 +1,4 @@
2884 import module namespace
2885-math="http://www.zorba-xquery.com/modules/math";
2886+math="http://zorba.io/modules/math";
2887
2888 math:factdouble(7)
2889
2890=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_floor1.xq'
2891--- test/rbkt/Queries/zorba/math/from_excel/excel_floor1.xq 2013-02-07 17:24:36 +0000
2892+++ test/rbkt/Queries/zorba/math/from_excel/excel_floor1.xq 2013-07-17 15:56:30 +0000
2893@@ -1,4 +1,4 @@
2894 import module namespace
2895-math="http://www.zorba-xquery.com/modules/math";
2896+math="http://zorba.io/modules/math";
2897
2898 math:floor(2.5, 1)
2899
2900=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_floor2.xq'
2901--- test/rbkt/Queries/zorba/math/from_excel/excel_floor2.xq 2013-02-07 17:24:36 +0000
2902+++ test/rbkt/Queries/zorba/math/from_excel/excel_floor2.xq 2013-07-17 15:56:30 +0000
2903@@ -1,4 +1,4 @@
2904 import module namespace
2905-math="http://www.zorba-xquery.com/modules/math";
2906+math="http://zorba.io/modules/math";
2907
2908 math:floor(-2.5, -2)
2909
2910=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_floor3.spec'
2911--- test/rbkt/Queries/zorba/math/from_excel/excel_floor3.spec 2013-02-07 17:24:36 +0000
2912+++ test/rbkt/Queries/zorba/math/from_excel/excel_floor3.spec 2013-07-17 15:56:30 +0000
2913@@ -1,1 +1,1 @@
2914-Error: http://www.zorba-xquery.com/modules/math:Num
2915+Error: http://zorba.io/modules/math:INVALID_ARGUMENT
2916
2917=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_floor3.xq'
2918--- test/rbkt/Queries/zorba/math/from_excel/excel_floor3.xq 2013-02-07 17:24:36 +0000
2919+++ test/rbkt/Queries/zorba/math/from_excel/excel_floor3.xq 2013-07-17 15:56:30 +0000
2920@@ -1,5 +1,5 @@
2921 import module namespace
2922-math="http://www.zorba-xquery.com/modules/math";
2923+math="http://zorba.io/modules/math";
2924
2925 math:floor(-2.5, 2)
2926
2927
2928=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_floor4.xq'
2929--- test/rbkt/Queries/zorba/math/from_excel/excel_floor4.xq 2013-02-07 17:24:36 +0000
2930+++ test/rbkt/Queries/zorba/math/from_excel/excel_floor4.xq 2013-07-17 15:56:30 +0000
2931@@ -1,4 +1,4 @@
2932 import module namespace
2933-math="http://www.zorba-xquery.com/modules/math";
2934+math="http://zorba.io/modules/math";
2935
2936 math:floor(1.5, 0.1)
2937
2938=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_floor5.xq'
2939--- test/rbkt/Queries/zorba/math/from_excel/excel_floor5.xq 2013-02-07 17:24:36 +0000
2940+++ test/rbkt/Queries/zorba/math/from_excel/excel_floor5.xq 2013-07-17 15:56:30 +0000
2941@@ -1,4 +1,4 @@
2942 import module namespace
2943-math="http://www.zorba-xquery.com/modules/math";
2944+math="http://zorba.io/modules/math";
2945
2946 math:floor(0.234, 0.01)
2947
2948=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_floor6.xq'
2949--- test/rbkt/Queries/zorba/math/from_excel/excel_floor6.xq 2013-02-07 17:24:36 +0000
2950+++ test/rbkt/Queries/zorba/math/from_excel/excel_floor6.xq 2013-07-17 15:56:30 +0000
2951@@ -1,4 +1,4 @@
2952 import module namespace
2953-math="http://www.zorba-xquery.com/modules/math";
2954+math="http://zorba.io/modules/math";
2955
2956 (1.31 - math:floor(1.31, 0.2)) ge 0.1
2957
2958=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_gcd1.xq'
2959--- test/rbkt/Queries/zorba/math/from_excel/excel_gcd1.xq 2013-02-07 17:24:36 +0000
2960+++ test/rbkt/Queries/zorba/math/from_excel/excel_gcd1.xq 2013-07-17 15:56:30 +0000
2961@@ -1,4 +1,4 @@
2962 import module namespace
2963-math="http://www.zorba-xquery.com/modules/math";
2964+math="http://zorba.io/modules/math";
2965
2966 math:gcd((5, 2))
2967
2968=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_gcd2.xq'
2969--- test/rbkt/Queries/zorba/math/from_excel/excel_gcd2.xq 2013-02-07 17:24:36 +0000
2970+++ test/rbkt/Queries/zorba/math/from_excel/excel_gcd2.xq 2013-07-17 15:56:30 +0000
2971@@ -1,4 +1,4 @@
2972 import module namespace
2973-math="http://www.zorba-xquery.com/modules/math";
2974+math="http://zorba.io/modules/math";
2975
2976 math:gcd((24, 36))
2977
2978=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_gcd3.xq'
2979--- test/rbkt/Queries/zorba/math/from_excel/excel_gcd3.xq 2013-02-07 17:24:36 +0000
2980+++ test/rbkt/Queries/zorba/math/from_excel/excel_gcd3.xq 2013-07-17 15:56:30 +0000
2981@@ -1,4 +1,4 @@
2982 import module namespace
2983-math="http://www.zorba-xquery.com/modules/math";
2984+math="http://zorba.io/modules/math";
2985
2986 math:gcd((7, 1))
2987
2988=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_gcd4.xq'
2989--- test/rbkt/Queries/zorba/math/from_excel/excel_gcd4.xq 2013-02-07 17:24:36 +0000
2990+++ test/rbkt/Queries/zorba/math/from_excel/excel_gcd4.xq 2013-07-17 15:56:30 +0000
2991@@ -1,4 +1,4 @@
2992 import module namespace
2993-math="http://www.zorba-xquery.com/modules/math";
2994+math="http://zorba.io/modules/math";
2995
2996 math:gcd((5, 0))
2997
2998=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_gcd5.xq'
2999--- test/rbkt/Queries/zorba/math/from_excel/excel_gcd5.xq 2013-02-07 17:24:36 +0000
3000+++ test/rbkt/Queries/zorba/math/from_excel/excel_gcd5.xq 2013-07-17 15:56:30 +0000
3001@@ -1,4 +1,4 @@
3002 import module namespace
3003-math="http://www.zorba-xquery.com/modules/math";
3004+math="http://zorba.io/modules/math";
3005
3006 math:gcd((13, 17, 23, 29))
3007
3008=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_gcd6.spec'
3009--- test/rbkt/Queries/zorba/math/from_excel/excel_gcd6.spec 2013-02-07 17:24:36 +0000
3010+++ test/rbkt/Queries/zorba/math/from_excel/excel_gcd6.spec 2013-07-17 15:56:30 +0000
3011@@ -1,1 +1,1 @@
3012-Error: http://www.zorba-xquery.com/modules/math:Num
3013+Error: http://zorba.io/modules/math:INVALID_ARGUMENT
3014
3015=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_gcd6.xq'
3016--- test/rbkt/Queries/zorba/math/from_excel/excel_gcd6.xq 2013-02-07 17:24:36 +0000
3017+++ test/rbkt/Queries/zorba/math/from_excel/excel_gcd6.xq 2013-07-17 15:56:30 +0000
3018@@ -1,5 +1,5 @@
3019 import module namespace
3020-math="http://www.zorba-xquery.com/modules/math";
3021+math="http://zorba.io/modules/math";
3022
3023 math:gcd((-5, 0, 2))
3024
3025
3026=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_gcd7.xq'
3027--- test/rbkt/Queries/zorba/math/from_excel/excel_gcd7.xq 2013-02-07 17:24:36 +0000
3028+++ test/rbkt/Queries/zorba/math/from_excel/excel_gcd7.xq 2013-07-17 15:56:30 +0000
3029@@ -1,4 +1,4 @@
3030 import module namespace
3031-math="http://www.zorba-xquery.com/modules/math";
3032+math="http://zorba.io/modules/math";
3033
3034 math:gcd((3))
3035
3036=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_gcd8.xq'
3037--- test/rbkt/Queries/zorba/math/from_excel/excel_gcd8.xq 2013-02-07 17:24:36 +0000
3038+++ test/rbkt/Queries/zorba/math/from_excel/excel_gcd8.xq 2013-07-17 15:56:30 +0000
3039@@ -1,4 +1,4 @@
3040 import module namespace
3041-math="http://www.zorba-xquery.com/modules/math";
3042+math="http://zorba.io/modules/math";
3043
3044 math:gcd((6, 12, 15))
3045
3046=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_int1.xq'
3047--- test/rbkt/Queries/zorba/math/from_excel/excel_int1.xq 2013-02-07 17:24:36 +0000
3048+++ test/rbkt/Queries/zorba/math/from_excel/excel_int1.xq 2013-07-17 15:56:30 +0000
3049@@ -1,4 +1,4 @@
3050 import module namespace
3051-math="http://www.zorba-xquery.com/modules/math";
3052+math="http://zorba.io/modules/math";
3053
3054 math:int(8.9)
3055
3056=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_int2.xq'
3057--- test/rbkt/Queries/zorba/math/from_excel/excel_int2.xq 2013-02-07 17:24:36 +0000
3058+++ test/rbkt/Queries/zorba/math/from_excel/excel_int2.xq 2013-07-17 15:56:30 +0000
3059@@ -1,4 +1,4 @@
3060 import module namespace
3061-math="http://www.zorba-xquery.com/modules/math";
3062+math="http://zorba.io/modules/math";
3063
3064 math:int(-8.9)
3065
3066=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_int3.xq'
3067--- test/rbkt/Queries/zorba/math/from_excel/excel_int3.xq 2013-02-07 17:24:36 +0000
3068+++ test/rbkt/Queries/zorba/math/from_excel/excel_int3.xq 2013-07-17 15:56:30 +0000
3069@@ -1,4 +1,4 @@
3070 import module namespace
3071-math="http://www.zorba-xquery.com/modules/math";
3072+math="http://zorba.io/modules/math";
3073
3074 math:int(19.5)
3075
3076=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_int4.xq'
3077--- test/rbkt/Queries/zorba/math/from_excel/excel_int4.xq 2013-02-07 17:24:36 +0000
3078+++ test/rbkt/Queries/zorba/math/from_excel/excel_int4.xq 2013-07-17 15:56:30 +0000
3079@@ -1,4 +1,4 @@
3080 import module namespace
3081-math="http://www.zorba-xquery.com/modules/math";
3082+math="http://zorba.io/modules/math";
3083
3084 math:int(-4.3)
3085
3086=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_large1.xq'
3087--- test/rbkt/Queries/zorba/math/from_excel/excel_large1.xq 2013-02-07 17:24:36 +0000
3088+++ test/rbkt/Queries/zorba/math/from_excel/excel_large1.xq 2013-07-17 15:56:30 +0000
3089@@ -1,5 +1,5 @@
3090 import module namespace
3091-math="http://www.zorba-xquery.com/modules/math";
3092+math="http://zorba.io/modules/math";
3093
3094 math:large((), 1)
3095
3096
3097=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_large2.xq'
3098--- test/rbkt/Queries/zorba/math/from_excel/excel_large2.xq 2013-02-07 17:24:36 +0000
3099+++ test/rbkt/Queries/zorba/math/from_excel/excel_large2.xq 2013-07-17 15:56:30 +0000
3100@@ -1,4 +1,4 @@
3101 import module namespace
3102-math="http://www.zorba-xquery.com/modules/math";
3103+math="http://zorba.io/modules/math";
3104
3105 math:large((3, 4, 5, 2, 3, 4, 5, 6, 4, 7), 3)
3106
3107=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_large3.xq'
3108--- test/rbkt/Queries/zorba/math/from_excel/excel_large3.xq 2013-02-07 17:24:36 +0000
3109+++ test/rbkt/Queries/zorba/math/from_excel/excel_large3.xq 2013-07-17 15:56:30 +0000
3110@@ -1,4 +1,4 @@
3111 import module namespace
3112-math="http://www.zorba-xquery.com/modules/math";
3113+math="http://zorba.io/modules/math";
3114
3115 math:large((3, 4, 5, 2, 3, 4, 5, 6, 4, 7), 7 )
3116
3117=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_lcm1.xq'
3118--- test/rbkt/Queries/zorba/math/from_excel/excel_lcm1.xq 2013-02-07 17:24:36 +0000
3119+++ test/rbkt/Queries/zorba/math/from_excel/excel_lcm1.xq 2013-07-17 15:56:30 +0000
3120@@ -1,4 +1,4 @@
3121 import module namespace
3122-math="http://www.zorba-xquery.com/modules/math";
3123+math="http://zorba.io/modules/math";
3124
3125 math:lcm((5,2))
3126
3127=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_lcm2.xq'
3128--- test/rbkt/Queries/zorba/math/from_excel/excel_lcm2.xq 2013-02-07 17:24:36 +0000
3129+++ test/rbkt/Queries/zorba/math/from_excel/excel_lcm2.xq 2013-07-17 15:56:30 +0000
3130@@ -1,4 +1,4 @@
3131 import module namespace
3132-math="http://www.zorba-xquery.com/modules/math";
3133+math="http://zorba.io/modules/math";
3134
3135 math:lcm((24, 36))
3136
3137=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_lcm3.xq'
3138--- test/rbkt/Queries/zorba/math/from_excel/excel_lcm3.xq 2013-02-07 17:24:36 +0000
3139+++ test/rbkt/Queries/zorba/math/from_excel/excel_lcm3.xq 2013-07-17 15:56:30 +0000
3140@@ -1,4 +1,4 @@
3141 import module namespace
3142-math="http://www.zorba-xquery.com/modules/math";
3143+math="http://zorba.io/modules/math";
3144
3145 math:lcm((5,0))
3146
3147=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_lcm4.xq'
3148--- test/rbkt/Queries/zorba/math/from_excel/excel_lcm4.xq 2013-02-07 17:24:36 +0000
3149+++ test/rbkt/Queries/zorba/math/from_excel/excel_lcm4.xq 2013-07-17 15:56:30 +0000
3150@@ -1,4 +1,4 @@
3151 import module namespace
3152-math="http://www.zorba-xquery.com/modules/math";
3153+math="http://zorba.io/modules/math";
3154
3155 math:lcm((2, 4, 8))
3156
3157=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_lcm5.xq'
3158--- test/rbkt/Queries/zorba/math/from_excel/excel_lcm5.xq 2013-02-07 17:24:36 +0000
3159+++ test/rbkt/Queries/zorba/math/from_excel/excel_lcm5.xq 2013-07-17 15:56:30 +0000
3160@@ -1,4 +1,4 @@
3161 import module namespace
3162-math="http://www.zorba-xquery.com/modules/math";
3163+math="http://zorba.io/modules/math";
3164
3165 math:lcm((11, 12, 13))
3166
3167=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_median1.xq'
3168--- test/rbkt/Queries/zorba/math/from_excel/excel_median1.xq 2013-02-07 17:24:36 +0000
3169+++ test/rbkt/Queries/zorba/math/from_excel/excel_median1.xq 2013-07-17 15:56:30 +0000
3170@@ -1,4 +1,4 @@
3171 import module namespace
3172-math="http://www.zorba-xquery.com/modules/math";
3173+math="http://zorba.io/modules/math";
3174
3175 math:median((1, 3, 4, 2, 5))
3176
3177=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_median2.xq'
3178--- test/rbkt/Queries/zorba/math/from_excel/excel_median2.xq 2013-02-07 17:24:36 +0000
3179+++ test/rbkt/Queries/zorba/math/from_excel/excel_median2.xq 2013-07-17 15:56:30 +0000
3180@@ -1,4 +1,4 @@
3181 import module namespace
3182-math="http://www.zorba-xquery.com/modules/math";
3183+math="http://zorba.io/modules/math";
3184
3185 math:median((1, 3, 4, 2))
3186
3187=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mod1.xq'
3188--- test/rbkt/Queries/zorba/math/from_excel/excel_mod1.xq 2013-02-07 17:24:36 +0000
3189+++ test/rbkt/Queries/zorba/math/from_excel/excel_mod1.xq 2013-07-17 15:56:30 +0000
3190@@ -1,4 +1,4 @@
3191 import module namespace
3192-math="http://www.zorba-xquery.com/modules/math";
3193+math="http://zorba.io/modules/math";
3194
3195 math:mod(3,2)
3196
3197=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mod2.xq'
3198--- test/rbkt/Queries/zorba/math/from_excel/excel_mod2.xq 2013-02-07 17:24:36 +0000
3199+++ test/rbkt/Queries/zorba/math/from_excel/excel_mod2.xq 2013-07-17 15:56:30 +0000
3200@@ -1,4 +1,4 @@
3201 import module namespace
3202-math="http://www.zorba-xquery.com/modules/math";
3203+math="http://zorba.io/modules/math";
3204
3205 math:mod(-3,2)
3206
3207=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mod3.xq'
3208--- test/rbkt/Queries/zorba/math/from_excel/excel_mod3.xq 2013-02-07 17:24:36 +0000
3209+++ test/rbkt/Queries/zorba/math/from_excel/excel_mod3.xq 2013-07-17 15:56:30 +0000
3210@@ -1,4 +1,4 @@
3211 import module namespace
3212-math="http://www.zorba-xquery.com/modules/math";
3213+math="http://zorba.io/modules/math";
3214
3215 math:mod(3,-2)
3216
3217=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mod4.xq'
3218--- test/rbkt/Queries/zorba/math/from_excel/excel_mod4.xq 2013-02-07 17:24:36 +0000
3219+++ test/rbkt/Queries/zorba/math/from_excel/excel_mod4.xq 2013-07-17 15:56:30 +0000
3220@@ -1,4 +1,4 @@
3221 import module namespace
3222-math="http://www.zorba-xquery.com/modules/math";
3223+math="http://zorba.io/modules/math";
3224
3225 math:mod(-3,-2)
3226
3227=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mode1.spec'
3228--- test/rbkt/Queries/zorba/math/from_excel/excel_mode1.spec 2013-02-07 17:24:36 +0000
3229+++ test/rbkt/Queries/zorba/math/from_excel/excel_mode1.spec 2013-07-17 15:56:30 +0000
3230@@ -1,1 +1,1 @@
3231-Error: http://www.zorba-xquery.com/modules/math:NA
3232+Error: http://zorba.io/modules/math:INVALID_INPUT
3233
3234=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mode1.xq'
3235--- test/rbkt/Queries/zorba/math/from_excel/excel_mode1.xq 2013-02-07 17:24:36 +0000
3236+++ test/rbkt/Queries/zorba/math/from_excel/excel_mode1.xq 2013-07-17 15:56:30 +0000
3237@@ -1,5 +1,5 @@
3238 import module namespace
3239-math="http://www.zorba-xquery.com/modules/math";
3240+math="http://zorba.io/modules/math";
3241
3242 math:mode((1, 3, 4, 2, 5))
3243
3244
3245=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mode2.xq'
3246--- test/rbkt/Queries/zorba/math/from_excel/excel_mode2.xq 2013-02-07 17:24:36 +0000
3247+++ test/rbkt/Queries/zorba/math/from_excel/excel_mode2.xq 2013-07-17 15:56:30 +0000
3248@@ -1,5 +1,5 @@
3249 import module namespace
3250-math="http://www.zorba-xquery.com/modules/math";
3251+math="http://zorba.io/modules/math";
3252
3253 math:mode((1, 3, 4, 2, "l"))
3254
3255
3256=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mode3.xq'
3257--- test/rbkt/Queries/zorba/math/from_excel/excel_mode3.xq 2013-02-07 17:24:36 +0000
3258+++ test/rbkt/Queries/zorba/math/from_excel/excel_mode3.xq 2013-07-17 15:56:30 +0000
3259@@ -1,4 +1,4 @@
3260 import module namespace
3261-math="http://www.zorba-xquery.com/modules/math";
3262+math="http://zorba.io/modules/math";
3263
3264 math:mode((1, 3, 4, 3, 2, 2, 5, 3, 5))
3265
3266=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mround1.xq'
3267--- test/rbkt/Queries/zorba/math/from_excel/excel_mround1.xq 2013-02-07 17:24:36 +0000
3268+++ test/rbkt/Queries/zorba/math/from_excel/excel_mround1.xq 2013-07-17 15:56:30 +0000
3269@@ -1,4 +1,4 @@
3270 import module namespace
3271-math="http://www.zorba-xquery.com/modules/math";
3272+math="http://zorba.io/modules/math";
3273
3274 math:mround(10, 3)
3275
3276=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mround2.xq'
3277--- test/rbkt/Queries/zorba/math/from_excel/excel_mround2.xq 2013-02-07 17:24:36 +0000
3278+++ test/rbkt/Queries/zorba/math/from_excel/excel_mround2.xq 2013-07-17 15:56:30 +0000
3279@@ -1,4 +1,4 @@
3280 import module namespace
3281-math="http://www.zorba-xquery.com/modules/math";
3282+math="http://zorba.io/modules/math";
3283
3284 math:mround(-10, -3)
3285
3286=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mround3.xq'
3287--- test/rbkt/Queries/zorba/math/from_excel/excel_mround3.xq 2013-02-07 17:24:36 +0000
3288+++ test/rbkt/Queries/zorba/math/from_excel/excel_mround3.xq 2013-07-17 15:56:30 +0000
3289@@ -1,4 +1,4 @@
3290 import module namespace
3291-zorba-math="http://www.zorba-xquery.com/modules/math";
3292+zorba-math="http://zorba.io/modules/math";
3293
3294 zorba-math:mround(1.3, 0.2)
3295
3296=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_mround4.xq'
3297--- test/rbkt/Queries/zorba/math/from_excel/excel_mround4.xq 2013-02-07 17:24:36 +0000
3298+++ test/rbkt/Queries/zorba/math/from_excel/excel_mround4.xq 2013-07-17 15:56:30 +0000
3299@@ -1,4 +1,4 @@
3300 import module namespace
3301-zorba-math="http://www.zorba-xquery.com/modules/math";
3302+zorba-math="http://zorba.io/modules/math";
3303
3304 zorba-math:mround(-1.3, -0.2)
3305
3306=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_odd1.xq'
3307--- test/rbkt/Queries/zorba/math/from_excel/excel_odd1.xq 2013-02-07 17:24:36 +0000
3308+++ test/rbkt/Queries/zorba/math/from_excel/excel_odd1.xq 2013-07-17 15:56:30 +0000
3309@@ -1,4 +1,4 @@
3310 import module namespace
3311-math="http://www.zorba-xquery.com/modules/math";
3312+math="http://zorba.io/modules/math";
3313
3314 math:odd(1.5)
3315
3316=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_odd2.xq'
3317--- test/rbkt/Queries/zorba/math/from_excel/excel_odd2.xq 2013-02-07 17:24:36 +0000
3318+++ test/rbkt/Queries/zorba/math/from_excel/excel_odd2.xq 2013-07-17 15:56:30 +0000
3319@@ -1,4 +1,4 @@
3320 import module namespace
3321-math="http://www.zorba-xquery.com/modules/math";
3322+math="http://zorba.io/modules/math";
3323
3324 math:odd(3)
3325
3326=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_odd3.xq'
3327--- test/rbkt/Queries/zorba/math/from_excel/excel_odd3.xq 2013-02-07 17:24:36 +0000
3328+++ test/rbkt/Queries/zorba/math/from_excel/excel_odd3.xq 2013-07-17 15:56:30 +0000
3329@@ -1,4 +1,4 @@
3330 import module namespace
3331-math="http://www.zorba-xquery.com/modules/math";
3332+math="http://zorba.io/modules/math";
3333
3334 math:odd(2)
3335
3336=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_odd4.xq'
3337--- test/rbkt/Queries/zorba/math/from_excel/excel_odd4.xq 2013-02-07 17:24:36 +0000
3338+++ test/rbkt/Queries/zorba/math/from_excel/excel_odd4.xq 2013-07-17 15:56:30 +0000
3339@@ -1,4 +1,4 @@
3340 import module namespace
3341-math="http://www.zorba-xquery.com/modules/math";
3342+math="http://zorba.io/modules/math";
3343
3344 math:odd(-1)
3345
3346=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_odd5.xq'
3347--- test/rbkt/Queries/zorba/math/from_excel/excel_odd5.xq 2013-02-07 17:24:36 +0000
3348+++ test/rbkt/Queries/zorba/math/from_excel/excel_odd5.xq 2013-07-17 15:56:30 +0000
3349@@ -1,4 +1,4 @@
3350 import module namespace
3351-math="http://www.zorba-xquery.com/modules/math";
3352+math="http://zorba.io/modules/math";
3353
3354 math:odd(-2)
3355
3356=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_odd6.xq'
3357--- test/rbkt/Queries/zorba/math/from_excel/excel_odd6.xq 2013-02-07 17:24:36 +0000
3358+++ test/rbkt/Queries/zorba/math/from_excel/excel_odd6.xq 2013-07-17 15:56:30 +0000
3359@@ -1,4 +1,4 @@
3360 import module namespace
3361-math="http://www.zorba-xquery.com/modules/math";
3362+math="http://zorba.io/modules/math";
3363
3364 math:odd(0)
3365
3366=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentile1.xq'
3367--- test/rbkt/Queries/zorba/math/from_excel/excel_percentile1.xq 2013-02-07 17:24:36 +0000
3368+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentile1.xq 2013-07-17 15:56:30 +0000
3369@@ -1,4 +1,4 @@
3370 import module namespace
3371-math="http://www.zorba-xquery.com/modules/math";
3372+math="http://zorba.io/modules/math";
3373
3374 math:percentile((1, 3, 4, 3, 2, 2, 5, 3, 5), 1)
3375
3376=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentile2.xq'
3377--- test/rbkt/Queries/zorba/math/from_excel/excel_percentile2.xq 2013-02-07 17:24:36 +0000
3378+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentile2.xq 2013-07-17 15:56:30 +0000
3379@@ -1,4 +1,4 @@
3380 import module namespace
3381-math="http://www.zorba-xquery.com/modules/math";
3382+math="http://zorba.io/modules/math";
3383
3384 math:percentile((1, 3, 4, 3, 2, 2, 5, 3, 5), 0.5)
3385
3386=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentile3.spec'
3387--- test/rbkt/Queries/zorba/math/from_excel/excel_percentile3.spec 2013-02-07 17:24:36 +0000
3388+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentile3.spec 2013-07-17 15:56:30 +0000
3389@@ -1,1 +1,1 @@
3390-Error: http://www.zorba-xquery.com/modules/math:Num
3391+Error: http://zorba.io/modules/math:INVALID_ARGUMENT
3392
3393=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentile3.xq'
3394--- test/rbkt/Queries/zorba/math/from_excel/excel_percentile3.xq 2013-02-07 17:24:36 +0000
3395+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentile3.xq 2013-07-17 15:56:30 +0000
3396@@ -1,5 +1,5 @@
3397 import module namespace
3398-math="http://www.zorba-xquery.com/modules/math";
3399+math="http://zorba.io/modules/math";
3400
3401 math:percentile((1, 3, 4, 3, 2, 2, 5, 3, 5), 5)
3402
3403
3404=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentrank1.xq'
3405--- test/rbkt/Queries/zorba/math/from_excel/excel_percentrank1.xq 2013-02-07 17:24:36 +0000
3406+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentrank1.xq 2013-07-17 15:56:30 +0000
3407@@ -1,4 +1,4 @@
3408 import module namespace
3409-math="http://www.zorba-xquery.com/modules/math";
3410+math="http://zorba.io/modules/math";
3411
3412 math:percentrank((13, 12, 11, 8, 4, 3, 2, 1, 1, 1), 2)
3413
3414=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentrank2.xq'
3415--- test/rbkt/Queries/zorba/math/from_excel/excel_percentrank2.xq 2013-02-07 17:24:36 +0000
3416+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentrank2.xq 2013-07-17 15:56:30 +0000
3417@@ -1,4 +1,4 @@
3418 import module namespace
3419-math="http://www.zorba-xquery.com/modules/math";
3420+math="http://zorba.io/modules/math";
3421
3422 math:percentrank((13, 12, 11, 8, 4, 3, 2, 1, 1, 1), 4)
3423
3424=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentrank3.xq'
3425--- test/rbkt/Queries/zorba/math/from_excel/excel_percentrank3.xq 2013-02-07 17:24:36 +0000
3426+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentrank3.xq 2013-07-17 15:56:30 +0000
3427@@ -1,4 +1,4 @@
3428 import module namespace
3429-math="http://www.zorba-xquery.com/modules/math";
3430+math="http://zorba.io/modules/math";
3431
3432 math:percentrank((13, 12, 11, 8, 4, 3, 2, 1, 1, 1), 8)
3433
3434=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentrank4.xq'
3435--- test/rbkt/Queries/zorba/math/from_excel/excel_percentrank4.xq 2013-02-07 17:24:36 +0000
3436+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentrank4.xq 2013-07-17 15:56:30 +0000
3437@@ -1,4 +1,4 @@
3438 import module namespace
3439-math="http://www.zorba-xquery.com/modules/math";
3440+math="http://zorba.io/modules/math";
3441
3442 math:percentrank((13, 12, 11, 8, 4, 3, 2, 1, 1, 1), 5)
3443
3444=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentrank5.spec'
3445--- test/rbkt/Queries/zorba/math/from_excel/excel_percentrank5.spec 2013-02-07 17:24:36 +0000
3446+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentrank5.spec 2013-07-17 15:56:30 +0000
3447@@ -1,1 +1,1 @@
3448-Error: http://www.zorba-xquery.com/modules/math:Num
3449+Error: http://zorba.io/modules/math:INVALID_ARGUMENT
3450
3451=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_percentrank5.xq'
3452--- test/rbkt/Queries/zorba/math/from_excel/excel_percentrank5.xq 2013-02-07 17:24:36 +0000
3453+++ test/rbkt/Queries/zorba/math/from_excel/excel_percentrank5.xq 2013-07-17 15:56:30 +0000
3454@@ -1,5 +1,5 @@
3455 import module namespace
3456-math="http://www.zorba-xquery.com/modules/math";
3457+math="http://zorba.io/modules/math";
3458
3459 math:percentrank((), 2)
3460
3461
3462=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_prob1.xq'
3463--- test/rbkt/Queries/zorba/math/from_excel/excel_prob1.xq 2013-02-07 17:24:36 +0000
3464+++ test/rbkt/Queries/zorba/math/from_excel/excel_prob1.xq 2013-07-17 15:56:30 +0000
3465@@ -1,4 +1,4 @@
3466 import module namespace
3467-math="http://www.zorba-xquery.com/modules/math";
3468+math="http://zorba.io/modules/math";
3469
3470 math:prob((0, 1, 2, 3), (0.2, 0.3, 0.1, 0.4), 2)
3471
3472=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_prob2.xq'
3473--- test/rbkt/Queries/zorba/math/from_excel/excel_prob2.xq 2013-02-07 17:24:36 +0000
3474+++ test/rbkt/Queries/zorba/math/from_excel/excel_prob2.xq 2013-07-17 15:56:30 +0000
3475@@ -1,4 +1,4 @@
3476 import module namespace
3477-math="http://www.zorba-xquery.com/modules/math";
3478+math="http://zorba.io/modules/math";
3479
3480 math:prob((0, 1, 2, 3), (0.2, 0.3, 0.1, 0.4), 1, 3)
3481
3482=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_product1.xq'
3483--- test/rbkt/Queries/zorba/math/from_excel/excel_product1.xq 2013-02-07 17:24:36 +0000
3484+++ test/rbkt/Queries/zorba/math/from_excel/excel_product1.xq 2013-07-17 15:56:30 +0000
3485@@ -1,4 +1,4 @@
3486 import module namespace
3487-math="http://www.zorba-xquery.com/modules/math";
3488+math="http://zorba.io/modules/math";
3489
3490 math:product((2, 0.5))
3491\ No newline at end of file
3492
3493=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_product2.xq'
3494--- test/rbkt/Queries/zorba/math/from_excel/excel_product2.xq 2013-02-07 17:24:36 +0000
3495+++ test/rbkt/Queries/zorba/math/from_excel/excel_product2.xq 2013-07-17 15:56:30 +0000
3496@@ -1,4 +1,4 @@
3497 import module namespace
3498-math="http://www.zorba-xquery.com/modules/math";
3499+math="http://zorba.io/modules/math";
3500
3501 math:product((5, 15, 30, 0))
3502
3503=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_product3.xq'
3504--- test/rbkt/Queries/zorba/math/from_excel/excel_product3.xq 2013-02-07 17:24:36 +0000
3505+++ test/rbkt/Queries/zorba/math/from_excel/excel_product3.xq 2013-07-17 15:56:30 +0000
3506@@ -1,4 +1,4 @@
3507 import module namespace
3508-math="http://www.zorba-xquery.com/modules/math";
3509+math="http://zorba.io/modules/math";
3510
3511 math:product((5, 15, 30, -1))
3512
3513=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_product4.xq'
3514--- test/rbkt/Queries/zorba/math/from_excel/excel_product4.xq 2013-02-07 17:24:36 +0000
3515+++ test/rbkt/Queries/zorba/math/from_excel/excel_product4.xq 2013-07-17 15:56:30 +0000
3516@@ -1,5 +1,5 @@
3517 import module namespace
3518-math="http://www.zorba-xquery.com/modules/math";
3519+math="http://zorba.io/modules/math";
3520
3521 math:product((5, 15, 30, "POP"))
3522
3523
3524=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_product5.xq'
3525--- test/rbkt/Queries/zorba/math/from_excel/excel_product5.xq 2013-02-07 17:24:36 +0000
3526+++ test/rbkt/Queries/zorba/math/from_excel/excel_product5.xq 2013-07-17 15:56:30 +0000
3527@@ -1,4 +1,4 @@
3528 import module namespace
3529-math="http://www.zorba-xquery.com/modules/math";
3530+math="http://zorba.io/modules/math";
3531
3532 math:product(())
3533
3534=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quartile1.xq'
3535--- test/rbkt/Queries/zorba/math/from_excel/excel_quartile1.xq 2013-02-07 17:24:36 +0000
3536+++ test/rbkt/Queries/zorba/math/from_excel/excel_quartile1.xq 2013-07-17 15:56:30 +0000
3537@@ -1,4 +1,4 @@
3538 import module namespace
3539-math="http://www.zorba-xquery.com/modules/math";
3540+math="http://zorba.io/modules/math";
3541
3542 math:quartile((1, 2, 4, 7, 8, 9, 10, 12), 0)
3543
3544=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quartile2.xq'
3545--- test/rbkt/Queries/zorba/math/from_excel/excel_quartile2.xq 2013-02-07 17:24:36 +0000
3546+++ test/rbkt/Queries/zorba/math/from_excel/excel_quartile2.xq 2013-07-17 15:56:30 +0000
3547@@ -1,4 +1,4 @@
3548 import module namespace
3549-math="http://www.zorba-xquery.com/modules/math";
3550+math="http://zorba.io/modules/math";
3551
3552 math:quartile((1, 2, 4, 7, 8, 9, 10, 12), 1)
3553
3554=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quartile3.xq'
3555--- test/rbkt/Queries/zorba/math/from_excel/excel_quartile3.xq 2013-02-07 17:24:36 +0000
3556+++ test/rbkt/Queries/zorba/math/from_excel/excel_quartile3.xq 2013-07-17 15:56:30 +0000
3557@@ -1,4 +1,4 @@
3558 import module namespace
3559-math="http://www.zorba-xquery.com/modules/math";
3560+math="http://zorba.io/modules/math";
3561
3562 math:quartile((1, 2, 4, 7, 8, 9, 10, 12), 2)
3563
3564=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quartile4.xq'
3565--- test/rbkt/Queries/zorba/math/from_excel/excel_quartile4.xq 2013-02-07 17:24:36 +0000
3566+++ test/rbkt/Queries/zorba/math/from_excel/excel_quartile4.xq 2013-07-17 15:56:30 +0000
3567@@ -1,4 +1,4 @@
3568 import module namespace
3569-math="http://www.zorba-xquery.com/modules/math";
3570+math="http://zorba.io/modules/math";
3571
3572 math:quartile((1, 2, 4, 7, 8, 9, 10, 12), 3)
3573
3574=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quartile5.xq'
3575--- test/rbkt/Queries/zorba/math/from_excel/excel_quartile5.xq 2013-02-07 17:24:36 +0000
3576+++ test/rbkt/Queries/zorba/math/from_excel/excel_quartile5.xq 2013-07-17 15:56:30 +0000
3577@@ -1,4 +1,4 @@
3578 import module namespace
3579-math="http://www.zorba-xquery.com/modules/math";
3580+math="http://zorba.io/modules/math";
3581
3582 math:quartile((1, 2, 4, 7, 8, 9, 10, 12), 4)
3583
3584=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quotient1.xq'
3585--- test/rbkt/Queries/zorba/math/from_excel/excel_quotient1.xq 2013-02-07 17:24:36 +0000
3586+++ test/rbkt/Queries/zorba/math/from_excel/excel_quotient1.xq 2013-07-17 15:56:30 +0000
3587@@ -1,4 +1,4 @@
3588 import module namespace
3589-math="http://www.zorba-xquery.com/modules/math";
3590+math="http://zorba.io/modules/math";
3591
3592 math:quotient(5,2)
3593
3594=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quotient2.xq'
3595--- test/rbkt/Queries/zorba/math/from_excel/excel_quotient2.xq 2013-02-07 17:24:36 +0000
3596+++ test/rbkt/Queries/zorba/math/from_excel/excel_quotient2.xq 2013-07-17 15:56:30 +0000
3597@@ -1,4 +1,4 @@
3598 import module namespace
3599-math="http://www.zorba-xquery.com/modules/math";
3600+math="http://zorba.io/modules/math";
3601
3602 math:quotient(4.5, 3.1)
3603
3604=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quotient3.xq'
3605--- test/rbkt/Queries/zorba/math/from_excel/excel_quotient3.xq 2013-02-07 17:24:36 +0000
3606+++ test/rbkt/Queries/zorba/math/from_excel/excel_quotient3.xq 2013-07-17 15:56:30 +0000
3607@@ -1,4 +1,4 @@
3608 import module namespace
3609-math="http://www.zorba-xquery.com/modules/math";
3610+math="http://zorba.io/modules/math";
3611
3612 math:quotient(-10,3)
3613
3614=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quotient4.spec'
3615--- test/rbkt/Queries/zorba/math/from_excel/excel_quotient4.spec 2013-02-07 17:24:36 +0000
3616+++ test/rbkt/Queries/zorba/math/from_excel/excel_quotient4.spec 2013-07-17 15:56:30 +0000
3617@@ -1,1 +1,1 @@
3618-Error: http://www.zorba-xquery.com/modules/math:Div0
3619+Error: http://zorba.io/modules/math:DIVIDE_BY_0
3620
3621=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_quotient4.xq'
3622--- test/rbkt/Queries/zorba/math/from_excel/excel_quotient4.xq 2013-02-07 17:24:36 +0000
3623+++ test/rbkt/Queries/zorba/math/from_excel/excel_quotient4.xq 2013-07-17 15:56:30 +0000
3624@@ -1,5 +1,5 @@
3625 import module namespace
3626-math="http://www.zorba-xquery.com/modules/math";
3627+math="http://zorba.io/modules/math";
3628
3629 math:quotient(1,0)
3630
3631
3632=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rank1.xq'
3633--- test/rbkt/Queries/zorba/math/from_excel/excel_rank1.xq 2013-02-07 17:24:36 +0000
3634+++ test/rbkt/Queries/zorba/math/from_excel/excel_rank1.xq 2013-07-17 15:56:30 +0000
3635@@ -1,4 +1,4 @@
3636 import module namespace
3637-math="http://www.zorba-xquery.com/modules/math";
3638+math="http://zorba.io/modules/math";
3639
3640 math:rank(3.5, (7, 3.5, 3.5, 1, 2), fn:true() )
3641
3642=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rank2.xq'
3643--- test/rbkt/Queries/zorba/math/from_excel/excel_rank2.xq 2013-02-07 17:24:36 +0000
3644+++ test/rbkt/Queries/zorba/math/from_excel/excel_rank2.xq 2013-07-17 15:56:30 +0000
3645@@ -1,4 +1,4 @@
3646 import module namespace
3647-math="http://www.zorba-xquery.com/modules/math";
3648+math="http://zorba.io/modules/math";
3649
3650 math:rank(7, (7, 3.5, 3.5, 1, 2), fn:true() )
3651
3652=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rank3.xq'
3653--- test/rbkt/Queries/zorba/math/from_excel/excel_rank3.xq 2013-02-07 17:24:36 +0000
3654+++ test/rbkt/Queries/zorba/math/from_excel/excel_rank3.xq 2013-07-17 15:56:30 +0000
3655@@ -1,4 +1,4 @@
3656 import module namespace
3657-math="http://www.zorba-xquery.com/modules/math";
3658+math="http://zorba.io/modules/math";
3659
3660 math:rank(3.5, (7, 3.5, 3.5, 1, 2) )
3661
3662=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rank4.xq'
3663--- test/rbkt/Queries/zorba/math/from_excel/excel_rank4.xq 2013-02-07 17:24:36 +0000
3664+++ test/rbkt/Queries/zorba/math/from_excel/excel_rank4.xq 2013-07-17 15:56:30 +0000
3665@@ -1,4 +1,4 @@
3666 import module namespace
3667-math="http://www.zorba-xquery.com/modules/math";
3668+math="http://zorba.io/modules/math";
3669
3670 math:rank(3.5, (2, 3, 4), fn:true() )
3671
3672=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rank5.xq'
3673--- test/rbkt/Queries/zorba/math/from_excel/excel_rank5.xq 2013-02-07 17:24:36 +0000
3674+++ test/rbkt/Queries/zorba/math/from_excel/excel_rank5.xq 2013-07-17 15:56:30 +0000
3675@@ -1,4 +1,4 @@
3676 import module namespace
3677-math="http://www.zorba-xquery.com/modules/math";
3678+math="http://zorba.io/modules/math";
3679
3680 math:rank(3.5, (1, 2) )
3681
3682=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_roman1.xq'
3683--- test/rbkt/Queries/zorba/math/from_excel/excel_roman1.xq 2013-02-07 17:24:36 +0000
3684+++ test/rbkt/Queries/zorba/math/from_excel/excel_roman1.xq 2013-07-17 15:56:30 +0000
3685@@ -1,4 +1,4 @@
3686 import module namespace
3687-math="http://www.zorba-xquery.com/modules/math";
3688+math="http://zorba.io/modules/math";
3689
3690 math:roman(499)
3691
3692=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_roman2.xq'
3693--- test/rbkt/Queries/zorba/math/from_excel/excel_roman2.xq 2013-02-07 17:24:36 +0000
3694+++ test/rbkt/Queries/zorba/math/from_excel/excel_roman2.xq 2013-07-17 15:56:30 +0000
3695@@ -1,4 +1,4 @@
3696 import module namespace
3697-math="http://www.zorba-xquery.com/modules/math";
3698+math="http://zorba.io/modules/math";
3699
3700 math:roman(2009)
3701
3702=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_roman3.xq'
3703--- test/rbkt/Queries/zorba/math/from_excel/excel_roman3.xq 2013-02-07 17:24:36 +0000
3704+++ test/rbkt/Queries/zorba/math/from_excel/excel_roman3.xq 2013-07-17 15:56:30 +0000
3705@@ -1,4 +1,4 @@
3706 import module namespace
3707-math="http://www.zorba-xquery.com/modules/math";
3708+math="http://zorba.io/modules/math";
3709
3710 math:roman(1555)
3711
3712=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_round1.xq'
3713--- test/rbkt/Queries/zorba/math/from_excel/excel_round1.xq 2013-02-07 17:24:36 +0000
3714+++ test/rbkt/Queries/zorba/math/from_excel/excel_round1.xq 2013-07-17 15:56:30 +0000
3715@@ -1,4 +1,4 @@
3716 import module namespace
3717-math="http://www.zorba-xquery.com/modules/math";
3718+math="http://zorba.io/modules/math";
3719
3720 math:round(2.15, 1)
3721
3722=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_round2.xq'
3723--- test/rbkt/Queries/zorba/math/from_excel/excel_round2.xq 2013-02-07 17:24:36 +0000
3724+++ test/rbkt/Queries/zorba/math/from_excel/excel_round2.xq 2013-07-17 15:56:30 +0000
3725@@ -1,4 +1,4 @@
3726 import module namespace
3727-math="http://www.zorba-xquery.com/modules/math";
3728+math="http://zorba.io/modules/math";
3729
3730 math:round(2.149, 1)
3731
3732=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_round3.xq'
3733--- test/rbkt/Queries/zorba/math/from_excel/excel_round3.xq 2013-02-07 17:24:36 +0000
3734+++ test/rbkt/Queries/zorba/math/from_excel/excel_round3.xq 2013-07-17 15:56:30 +0000
3735@@ -1,4 +1,4 @@
3736 import module namespace
3737-math="http://www.zorba-xquery.com/modules/math";
3738+math="http://zorba.io/modules/math";
3739
3740 math:round(-1.475, 2)
3741
3742=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_round4.xq'
3743--- test/rbkt/Queries/zorba/math/from_excel/excel_round4.xq 2013-02-07 17:24:36 +0000
3744+++ test/rbkt/Queries/zorba/math/from_excel/excel_round4.xq 2013-07-17 15:56:30 +0000
3745@@ -1,4 +1,4 @@
3746 import module namespace
3747-math="http://www.zorba-xquery.com/modules/math";
3748+math="http://zorba.io/modules/math";
3749
3750 math:round(21.5, -1)
3751
3752=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rounddown1.xq'
3753--- test/rbkt/Queries/zorba/math/from_excel/excel_rounddown1.xq 2013-02-07 17:24:36 +0000
3754+++ test/rbkt/Queries/zorba/math/from_excel/excel_rounddown1.xq 2013-07-17 15:56:30 +0000
3755@@ -1,4 +1,4 @@
3756 import module namespace
3757-math="http://www.zorba-xquery.com/modules/math";
3758+math="http://zorba.io/modules/math";
3759
3760 math:rounddown(3.2, 0)
3761
3762=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rounddown2.xq'
3763--- test/rbkt/Queries/zorba/math/from_excel/excel_rounddown2.xq 2013-02-07 17:24:36 +0000
3764+++ test/rbkt/Queries/zorba/math/from_excel/excel_rounddown2.xq 2013-07-17 15:56:30 +0000
3765@@ -1,4 +1,4 @@
3766 import module namespace
3767-math="http://www.zorba-xquery.com/modules/math";
3768+math="http://zorba.io/modules/math";
3769
3770 math:rounddown(76.9,0)
3771
3772=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rounddown3.xq'
3773--- test/rbkt/Queries/zorba/math/from_excel/excel_rounddown3.xq 2013-02-07 17:24:36 +0000
3774+++ test/rbkt/Queries/zorba/math/from_excel/excel_rounddown3.xq 2013-07-17 15:56:30 +0000
3775@@ -1,4 +1,4 @@
3776 import module namespace
3777-math="http://www.zorba-xquery.com/modules/math";
3778+math="http://zorba.io/modules/math";
3779
3780 math:rounddown(3.14159, 3)
3781
3782=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rounddown4.xq'
3783--- test/rbkt/Queries/zorba/math/from_excel/excel_rounddown4.xq 2013-02-07 17:24:36 +0000
3784+++ test/rbkt/Queries/zorba/math/from_excel/excel_rounddown4.xq 2013-07-17 15:56:30 +0000
3785@@ -1,4 +1,4 @@
3786 import module namespace
3787-math="http://www.zorba-xquery.com/modules/math";
3788+math="http://zorba.io/modules/math";
3789
3790 math:rounddown(-3.14159, 1)
3791
3792=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_rounddown5.xq'
3793--- test/rbkt/Queries/zorba/math/from_excel/excel_rounddown5.xq 2013-02-07 17:24:36 +0000
3794+++ test/rbkt/Queries/zorba/math/from_excel/excel_rounddown5.xq 2013-07-17 15:56:30 +0000
3795@@ -1,4 +1,4 @@
3796 import module namespace
3797-math="http://www.zorba-xquery.com/modules/math";
3798+math="http://zorba.io/modules/math";
3799
3800 math:rounddown(31415.92654, -2)
3801
3802=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_roundup1.xq'
3803--- test/rbkt/Queries/zorba/math/from_excel/excel_roundup1.xq 2013-02-07 17:24:36 +0000
3804+++ test/rbkt/Queries/zorba/math/from_excel/excel_roundup1.xq 2013-07-17 15:56:30 +0000
3805@@ -1,4 +1,4 @@
3806 import module namespace
3807-math="http://www.zorba-xquery.com/modules/math";
3808+math="http://zorba.io/modules/math";
3809
3810 math:roundup(3.2, 0)
3811
3812=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_roundup2.xq'
3813--- test/rbkt/Queries/zorba/math/from_excel/excel_roundup2.xq 2013-02-07 17:24:36 +0000
3814+++ test/rbkt/Queries/zorba/math/from_excel/excel_roundup2.xq 2013-07-17 15:56:30 +0000
3815@@ -1,4 +1,4 @@
3816 import module namespace
3817-math="http://www.zorba-xquery.com/modules/math";
3818+math="http://zorba.io/modules/math";
3819
3820 math:roundup(76.9,0)
3821
3822=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_roundup3.xq'
3823--- test/rbkt/Queries/zorba/math/from_excel/excel_roundup3.xq 2013-02-07 17:24:36 +0000
3824+++ test/rbkt/Queries/zorba/math/from_excel/excel_roundup3.xq 2013-07-17 15:56:30 +0000
3825@@ -1,4 +1,4 @@
3826 import module namespace
3827-math="http://www.zorba-xquery.com/modules/math";
3828+math="http://zorba.io/modules/math";
3829
3830 math:roundup(3.14159, 3)
3831
3832=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_roundup4.xq'
3833--- test/rbkt/Queries/zorba/math/from_excel/excel_roundup4.xq 2013-02-07 17:24:36 +0000
3834+++ test/rbkt/Queries/zorba/math/from_excel/excel_roundup4.xq 2013-07-17 15:56:30 +0000
3835@@ -1,4 +1,4 @@
3836 import module namespace
3837-math="http://www.zorba-xquery.com/modules/math";
3838+math="http://zorba.io/modules/math";
3839
3840 math:roundup(-3.14159, 1)
3841
3842=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_roundup5.xq'
3843--- test/rbkt/Queries/zorba/math/from_excel/excel_roundup5.xq 2013-02-07 17:24:36 +0000
3844+++ test/rbkt/Queries/zorba/math/from_excel/excel_roundup5.xq 2013-07-17 15:56:30 +0000
3845@@ -1,4 +1,4 @@
3846 import module namespace
3847-math="http://www.zorba-xquery.com/modules/math";
3848+math="http://zorba.io/modules/math";
3849
3850 math:roundup(31415.92654, -2)
3851
3852=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_sign1.xq'
3853--- test/rbkt/Queries/zorba/math/from_excel/excel_sign1.xq 2013-02-07 17:24:36 +0000
3854+++ test/rbkt/Queries/zorba/math/from_excel/excel_sign1.xq 2013-07-17 15:56:30 +0000
3855@@ -1,4 +1,4 @@
3856 import module namespace
3857-math="http://www.zorba-xquery.com/modules/math";
3858+math="http://zorba.io/modules/math";
3859
3860 math:sign(100)
3861
3862=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_sign2.xq'
3863--- test/rbkt/Queries/zorba/math/from_excel/excel_sign2.xq 2013-02-07 17:24:36 +0000
3864+++ test/rbkt/Queries/zorba/math/from_excel/excel_sign2.xq 2013-07-17 15:56:30 +0000
3865@@ -1,4 +1,4 @@
3866 import module namespace
3867-math="http://www.zorba-xquery.com/modules/math";
3868+math="http://zorba.io/modules/math";
3869
3870 math:sign(0)
3871
3872=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_sign3.xq'
3873--- test/rbkt/Queries/zorba/math/from_excel/excel_sign3.xq 2013-02-07 17:24:36 +0000
3874+++ test/rbkt/Queries/zorba/math/from_excel/excel_sign3.xq 2013-07-17 15:56:30 +0000
3875@@ -1,4 +1,4 @@
3876 import module namespace
3877-math="http://www.zorba-xquery.com/modules/math";
3878+math="http://zorba.io/modules/math";
3879
3880 math:sign(-1E100)
3881
3882=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_slope1.xq'
3883--- test/rbkt/Queries/zorba/math/from_excel/excel_slope1.xq 2013-02-07 17:24:36 +0000
3884+++ test/rbkt/Queries/zorba/math/from_excel/excel_slope1.xq 2013-07-17 15:56:30 +0000
3885@@ -1,4 +1,4 @@
3886 import module namespace
3887-math="http://www.zorba-xquery.com/modules/math";
3888+math="http://zorba.io/modules/math";
3889
3890 math:slope((2, 3, 9, 1, 8, 7, 5), (6, 5, 11, 7, 5, 4, 4))
3891
3892=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_small1.xq'
3893--- test/rbkt/Queries/zorba/math/from_excel/excel_small1.xq 2013-02-07 17:24:36 +0000
3894+++ test/rbkt/Queries/zorba/math/from_excel/excel_small1.xq 2013-07-17 15:56:30 +0000
3895@@ -1,4 +1,4 @@
3896 import module namespace
3897-math="http://www.zorba-xquery.com/modules/math";
3898+math="http://zorba.io/modules/math";
3899
3900 math:small((3, 4, 5, 2, 3, 4, 6, 4, 7), 4)
3901
3902=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_small2.xq'
3903--- test/rbkt/Queries/zorba/math/from_excel/excel_small2.xq 2013-02-07 17:24:36 +0000
3904+++ test/rbkt/Queries/zorba/math/from_excel/excel_small2.xq 2013-07-17 15:56:30 +0000
3905@@ -1,4 +1,4 @@
3906 import module namespace
3907-math="http://www.zorba-xquery.com/modules/math";
3908+math="http://zorba.io/modules/math";
3909
3910 math:small((1, 4, 8, 3, 7, 12, 54, 8, 23), 2)
3911
3912=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_standardize1.xq'
3913--- test/rbkt/Queries/zorba/math/from_excel/excel_standardize1.xq 2013-02-07 17:24:36 +0000
3914+++ test/rbkt/Queries/zorba/math/from_excel/excel_standardize1.xq 2013-07-17 15:56:30 +0000
3915@@ -1,4 +1,4 @@
3916 import module namespace
3917-math="http://www.zorba-xquery.com/modules/math";
3918+math="http://zorba.io/modules/math";
3919
3920 math:standardize(42, 40, 1.5)
3921
3922=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_stdev1.xq'
3923--- test/rbkt/Queries/zorba/math/from_excel/excel_stdev1.xq 2013-02-07 17:24:36 +0000
3924+++ test/rbkt/Queries/zorba/math/from_excel/excel_stdev1.xq 2013-07-17 15:56:30 +0000
3925@@ -1,4 +1,4 @@
3926 import module namespace
3927-math="http://www.zorba-xquery.com/modules/math";
3928+math="http://zorba.io/modules/math";
3929
3930 math:stdev((1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
3931
3932=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_stdeva1.xq'
3933--- test/rbkt/Queries/zorba/math/from_excel/excel_stdeva1.xq 2013-02-07 17:24:36 +0000
3934+++ test/rbkt/Queries/zorba/math/from_excel/excel_stdeva1.xq 2013-07-17 15:56:30 +0000
3935@@ -1,4 +1,4 @@
3936 import module namespace
3937-math="http://www.zorba-xquery.com/modules/math";
3938+math="http://zorba.io/modules/math";
3939
3940 math:stdeva((1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
3941
3942=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_stdevp1.xq'
3943--- test/rbkt/Queries/zorba/math/from_excel/excel_stdevp1.xq 2013-02-07 17:24:36 +0000
3944+++ test/rbkt/Queries/zorba/math/from_excel/excel_stdevp1.xq 2013-07-17 15:56:30 +0000
3945@@ -1,4 +1,4 @@
3946 import module namespace
3947-math="http://www.zorba-xquery.com/modules/math";
3948+math="http://zorba.io/modules/math";
3949
3950 math:stdevp((1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
3951
3952=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_stdevpa1.xq'
3953--- test/rbkt/Queries/zorba/math/from_excel/excel_stdevpa1.xq 2013-02-07 17:24:36 +0000
3954+++ test/rbkt/Queries/zorba/math/from_excel/excel_stdevpa1.xq 2013-07-17 15:56:30 +0000
3955@@ -1,4 +1,4 @@
3956 import module namespace
3957-math="http://www.zorba-xquery.com/modules/math";
3958+math="http://zorba.io/modules/math";
3959
3960 math:stdevpa((1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
3961
3962=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal1.xq'
3963--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal1.xq 2013-02-07 17:24:36 +0000
3964+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal1.xq 2013-07-17 15:56:30 +0000
3965@@ -1,4 +1,4 @@
3966 import module namespace
3967-math="http://www.zorba-xquery.com/modules/math";
3968+math="http://zorba.io/modules/math";
3969
3970 math:subtotal(1, (2, 3, 4))
3971
3972=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal10.xq'
3973--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal10.xq 2013-02-07 17:24:36 +0000
3974+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal10.xq 2013-07-17 15:56:30 +0000
3975@@ -1,4 +1,4 @@
3976 import module namespace
3977-math="http://www.zorba-xquery.com/modules/math";
3978+math="http://zorba.io/modules/math";
3979
3980 math:subtotal(10, (1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
3981
3982=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal11.xq'
3983--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal11.xq 2013-02-07 17:24:36 +0000
3984+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal11.xq 2013-07-17 15:56:30 +0000
3985@@ -1,4 +1,4 @@
3986 import module namespace
3987-math="http://www.zorba-xquery.com/modules/math";
3988+math="http://zorba.io/modules/math";
3989
3990 math:subtotal(11, (1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
3991
3992=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal2.xq'
3993--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal2.xq 2013-02-07 17:24:36 +0000
3994+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal2.xq 2013-07-17 15:56:30 +0000
3995@@ -1,4 +1,4 @@
3996 import module namespace
3997-math="http://www.zorba-xquery.com/modules/math";
3998+math="http://zorba.io/modules/math";
3999
4000 math:subtotal(2, (2, 3, 4))
4001
4002=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal3.xq'
4003--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal3.xq 2013-02-07 17:24:36 +0000
4004+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal3.xq 2013-07-17 15:56:30 +0000
4005@@ -1,5 +1,5 @@
4006 import module namespace
4007-math="http://www.zorba-xquery.com/modules/math";
4008+math="http://zorba.io/modules/math";
4009
4010 math:subtotal(3, (2, 3, 4, "", "x"))
4011
4012
4013=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal4.xq'
4014--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal4.xq 2013-02-07 17:24:36 +0000
4015+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal4.xq 2013-07-17 15:56:30 +0000
4016@@ -1,4 +1,4 @@
4017 import module namespace
4018-math="http://www.zorba-xquery.com/modules/math";
4019+math="http://zorba.io/modules/math";
4020
4021 math:subtotal(4, (2, 3, 4))
4022
4023=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal5.xq'
4024--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal5.xq 2013-02-07 17:24:36 +0000
4025+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal5.xq 2013-07-17 15:56:30 +0000
4026@@ -1,4 +1,4 @@
4027 import module namespace
4028-math="http://www.zorba-xquery.com/modules/math";
4029+math="http://zorba.io/modules/math";
4030
4031 math:subtotal(5, (2, 3, 4))
4032
4033=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal6.xq'
4034--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal6.xq 2013-02-07 17:24:36 +0000
4035+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal6.xq 2013-07-17 15:56:30 +0000
4036@@ -1,4 +1,4 @@
4037 import module namespace
4038-math="http://www.zorba-xquery.com/modules/math";
4039+math="http://zorba.io/modules/math";
4040
4041 math:subtotal(6, (2, 3, 4))
4042
4043=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal7.xq'
4044--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal7.xq 2013-02-07 17:24:36 +0000
4045+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal7.xq 2013-07-17 15:56:30 +0000
4046@@ -1,4 +1,4 @@
4047 import module namespace
4048-math="http://www.zorba-xquery.com/modules/math";
4049+math="http://zorba.io/modules/math";
4050
4051 math:subtotal(7, (1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
4052
4053=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal8.xq'
4054--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal8.xq 2013-02-07 17:24:36 +0000
4055+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal8.xq 2013-07-17 15:56:30 +0000
4056@@ -1,4 +1,4 @@
4057 import module namespace
4058-math="http://www.zorba-xquery.com/modules/math";
4059+math="http://zorba.io/modules/math";
4060
4061 math:subtotal(8, (1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
4062
4063=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_subtotal9.xq'
4064--- test/rbkt/Queries/zorba/math/from_excel/excel_subtotal9.xq 2013-02-07 17:24:36 +0000
4065+++ test/rbkt/Queries/zorba/math/from_excel/excel_subtotal9.xq 2013-07-17 15:56:30 +0000
4066@@ -1,4 +1,4 @@
4067 import module namespace
4068-math="http://www.zorba-xquery.com/modules/math";
4069+math="http://zorba.io/modules/math";
4070
4071 math:subtotal(9, (2, 3, 4))
4072
4073=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_sumproduct2.xq'
4074--- test/rbkt/Queries/zorba/math/from_excel/excel_sumproduct2.xq 2013-02-07 17:24:36 +0000
4075+++ test/rbkt/Queries/zorba/math/from_excel/excel_sumproduct2.xq 2013-07-17 15:56:30 +0000
4076@@ -1,5 +1,5 @@
4077 import module namespace
4078-math="http://www.zorba-xquery.com/modules/math";
4079+math="http://zorba.io/modules/math";
4080
4081 math:sumproduct((1,2,3,4,5),
4082 (1,2,3,4,5))
4083
4084=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_sumsq1.xq'
4085--- test/rbkt/Queries/zorba/math/from_excel/excel_sumsq1.xq 2013-02-07 17:24:36 +0000
4086+++ test/rbkt/Queries/zorba/math/from_excel/excel_sumsq1.xq 2013-07-17 15:56:30 +0000
4087@@ -1,4 +1,4 @@
4088 import module namespace
4089-math="http://www.zorba-xquery.com/modules/math";
4090+math="http://zorba.io/modules/math";
4091
4092 math:sumsq((1,2,3,4,5))
4093
4094=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_trunc1.xq'
4095--- test/rbkt/Queries/zorba/math/from_excel/excel_trunc1.xq 2013-02-07 17:24:36 +0000
4096+++ test/rbkt/Queries/zorba/math/from_excel/excel_trunc1.xq 2013-07-17 15:56:30 +0000
4097@@ -1,4 +1,4 @@
4098 import module namespace
4099-math="http://www.zorba-xquery.com/modules/math";
4100+math="http://zorba.io/modules/math";
4101
4102 math:trunc(8.9)
4103
4104=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_trunc2.xq'
4105--- test/rbkt/Queries/zorba/math/from_excel/excel_trunc2.xq 2013-02-07 17:24:36 +0000
4106+++ test/rbkt/Queries/zorba/math/from_excel/excel_trunc2.xq 2013-07-17 15:56:30 +0000
4107@@ -1,4 +1,4 @@
4108 import module namespace
4109-math="http://www.zorba-xquery.com/modules/math";
4110+math="http://zorba.io/modules/math";
4111
4112 math:trunc(-8.9)
4113
4114=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_trunc3.xq'
4115--- test/rbkt/Queries/zorba/math/from_excel/excel_trunc3.xq 2013-02-07 17:24:36 +0000
4116+++ test/rbkt/Queries/zorba/math/from_excel/excel_trunc3.xq 2013-07-17 15:56:30 +0000
4117@@ -1,5 +1,5 @@
4118 declare namespace math="http://www.w3.org/2005/xpath-functions/math";
4119 import module namespace
4120-zorba-math="http://www.zorba-xquery.com/modules/math";
4121+zorba-math="http://zorba.io/modules/math";
4122
4123 zorba-math:trunc(math:pi(), 2)
4124
4125=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_var1.xq'
4126--- test/rbkt/Queries/zorba/math/from_excel/excel_var1.xq 2013-02-07 17:24:36 +0000
4127+++ test/rbkt/Queries/zorba/math/from_excel/excel_var1.xq 2013-07-17 15:56:30 +0000
4128@@ -1,4 +1,4 @@
4129 import module namespace
4130-math="http://www.zorba-xquery.com/modules/math";
4131+math="http://zorba.io/modules/math";
4132
4133 math:var((1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
4134
4135=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_vara1.xq'
4136--- test/rbkt/Queries/zorba/math/from_excel/excel_vara1.xq 2013-02-07 17:24:36 +0000
4137+++ test/rbkt/Queries/zorba/math/from_excel/excel_vara1.xq 2013-07-17 15:56:30 +0000
4138@@ -1,4 +1,4 @@
4139 import module namespace
4140-math="http://www.zorba-xquery.com/modules/math";
4141+math="http://zorba.io/modules/math";
4142
4143 math:vara((1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
4144
4145=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_varp1.xq'
4146--- test/rbkt/Queries/zorba/math/from_excel/excel_varp1.xq 2013-02-07 17:24:36 +0000
4147+++ test/rbkt/Queries/zorba/math/from_excel/excel_varp1.xq 2013-07-17 15:56:30 +0000
4148@@ -1,4 +1,4 @@
4149 import module namespace
4150-math="http://www.zorba-xquery.com/modules/math";
4151+math="http://zorba.io/modules/math";
4152
4153 math:varp((1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
4154
4155=== modified file 'test/rbkt/Queries/zorba/math/from_excel/excel_varpa1.xq'
4156--- test/rbkt/Queries/zorba/math/from_excel/excel_varpa1.xq 2013-02-07 17:24:36 +0000
4157+++ test/rbkt/Queries/zorba/math/from_excel/excel_varpa1.xq 2013-07-17 15:56:30 +0000
4158@@ -1,4 +1,4 @@
4159 import module namespace
4160-math="http://www.zorba-xquery.com/modules/math";
4161+math="http://zorba.io/modules/math";
4162
4163 math:varpa((1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299))
4164
4165=== modified file 'test/rbkt/Queries/zorba/math/is_inf1.xq'
4166--- test/rbkt/Queries/zorba/math/is_inf1.xq 2013-02-07 17:24:36 +0000
4167+++ test/rbkt/Queries/zorba/math/is_inf1.xq 2013-07-17 15:56:30 +0000
4168@@ -1,4 +1,4 @@
4169 declare namespace math="http://www.w3.org/2005/xpath-functions/math";
4170-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
4171+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
4172
4173 fn-zorba-math:is_inf(math:pow(0, -1))
4174
4175=== modified file 'test/rbkt/Queries/zorba/math/is_nan1.xq'
4176--- test/rbkt/Queries/zorba/math/is_nan1.xq 2013-02-07 17:24:36 +0000
4177+++ test/rbkt/Queries/zorba/math/is_nan1.xq 2013-07-17 15:56:30 +0000
4178@@ -1,3 +1,3 @@
4179-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
4180+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
4181
4182 fn-zorba-math:is_nan(xs:double("NaN"))
4183
4184=== modified file 'test/rbkt/Queries/zorba/math/ldexp1.xq'
4185--- test/rbkt/Queries/zorba/math/ldexp1.xq 2013-02-07 17:24:36 +0000
4186+++ test/rbkt/Queries/zorba/math/ldexp1.xq 2013-07-17 15:56:30 +0000
4187@@ -1,3 +1,3 @@
4188-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
4189+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
4190
4191 fn-zorba-math:ldexp(4, 3)
4192\ No newline at end of file
4193
4194=== modified file 'test/rbkt/Queries/zorba/math/modf1.xq'
4195--- test/rbkt/Queries/zorba/math/modf1.xq 2013-02-07 17:24:36 +0000
4196+++ test/rbkt/Queries/zorba/math/modf1.xq 2013-07-17 15:56:30 +0000
4197@@ -1,3 +1,3 @@
4198-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
4199+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
4200
4201 fn-zorba-math:modf(-14.876543)
4202\ No newline at end of file
4203
4204=== modified file 'test/rbkt/Queries/zorba/math/sinh1.xq'
4205--- test/rbkt/Queries/zorba/math/sinh1.xq 2013-02-07 17:24:36 +0000
4206+++ test/rbkt/Queries/zorba/math/sinh1.xq 2013-07-17 15:56:30 +0000
4207@@ -1,4 +1,4 @@
4208 declare namespace math="http://www.w3.org/2005/xpath-functions/math";
4209-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
4210+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
4211
4212 fn-zorba-math:sinh(math:pi() div 2)
4213\ No newline at end of file
4214
4215=== modified file 'test/rbkt/Queries/zorba/math/tanh1.xq'
4216--- test/rbkt/Queries/zorba/math/tanh1.xq 2013-02-07 17:24:36 +0000
4217+++ test/rbkt/Queries/zorba/math/tanh1.xq 2013-07-17 15:56:30 +0000
4218@@ -1,3 +1,3 @@
4219-import module namespace fn-zorba-math = "http://www.zorba-xquery.com/modules/math";
4220+import module namespace fn-zorba-math = "http://zorba.io/modules/math";
4221
4222 fn-zorba-math:tanh(1)
4223\ No newline at end of file
4224
4225=== modified file 'test/rbkt/Queries/zorba/random/random1.xq'
4226--- test/rbkt/Queries/zorba/random/random1.xq 2013-02-07 17:24:36 +0000
4227+++ test/rbkt/Queries/zorba/random/random1.xq 2013-07-17 15:56:30 +0000
4228@@ -1,3 +1,3 @@
4229-import module namespace r = "http://www.zorba-xquery.com/modules/random";
4230+import module namespace r = "http://zorba.io/modules/random";
4231
4232 count((for $i in 1 to 10 return r:random(10), r:random())) eq 101
4233
4234=== modified file 'test/rbkt/Queries/zorba/random/seeded-random-between1.xq'
4235--- test/rbkt/Queries/zorba/random/seeded-random-between1.xq 2013-02-07 17:24:36 +0000
4236+++ test/rbkt/Queries/zorba/random/seeded-random-between1.xq 2013-07-17 15:56:30 +0000
4237@@ -1,4 +1,4 @@
4238-import module namespace r = "http://www.zorba-xquery.com/modules/random";
4239+import module namespace r = "http://zorba.io/modules/random";
4240
4241 declare namespace err = "http://www.w3.org/2005/xqt-errors";
4242
4243@@ -10,7 +10,7 @@
4244 try
4245 {
4246 r:seeded-random-between(1, 4, 1, 100)
4247-} catch r:invalid-arg
4248+} catch r:INVALID_ARGUMENT
4249 {
4250 $err:description, $err:value
4251 }
4252
4253=== modified file 'test/rbkt/Queries/zorba/random/seeded-random1.xq'
4254--- test/rbkt/Queries/zorba/random/seeded-random1.xq 2013-06-25 03:55:20 +0000
4255+++ test/rbkt/Queries/zorba/random/seeded-random1.xq 2013-07-17 15:56:30 +0000
4256@@ -1,4 +1,4 @@
4257-import module namespace r = "http://www.zorba-xquery.com/modules/random";
4258+import module namespace r = "http://zorba.io/modules/random";
4259
4260 declare namespace zerr = "http://zorba.io/modules/zorba-errors";
4261 declare namespace err = "http://www.w3.org/2005/xqt-errors";
4262
4263=== modified file 'test/rbkt/Queries/zorba/random/uuid1.xq'
4264--- test/rbkt/Queries/zorba/random/uuid1.xq 2013-02-07 17:24:36 +0000
4265+++ test/rbkt/Queries/zorba/random/uuid1.xq 2013-07-17 15:56:30 +0000
4266@@ -1,4 +1,4 @@
4267-import module namespace r = "http://www.zorba-xquery.com/modules/random";
4268+import module namespace r = "http://zorba.io/modules/random";
4269
4270 (: all uuids are distinct? :)
4271 let $seq := for $i in 1 to 10 return r:uuid()
4272
4273=== modified file 'test/rbkt/Queries/zorba/random/uuid2.xq'
4274--- test/rbkt/Queries/zorba/random/uuid2.xq 2013-02-07 17:24:36 +0000
4275+++ test/rbkt/Queries/zorba/random/uuid2.xq 2013-07-17 15:56:30 +0000
4276@@ -1,4 +1,4 @@
4277-import module namespace r = "http://www.zorba-xquery.com/modules/random";
4278+import module namespace r = "http://zorba.io/modules/random";
4279
4280 (: all uuids are distinct? :)
4281 let $seq := for $i in 1 to 10 return r:uuid()
4282
4283=== modified file 'test/rbkt/Queries/zorba/reflection/reflection-invoke-10.xq'
4284--- test/rbkt/Queries/zorba/reflection/reflection-invoke-10.xq 2013-02-07 17:24:36 +0000
4285+++ test/rbkt/Queries/zorba/reflection/reflection-invoke-10.xq 2013-07-17 15:56:30 +0000
4286@@ -1,6 +1,6 @@
4287 import module namespace ref = "http://www.zorba-xquery.com/modules/reflection";
4288-import module namespace rand = "http://www.zorba-xquery.com/modules/random";
4289+import module namespace rand = "http://zorba.io/modules/random";
4290
4291-declare variable $name as xs:QName := fn:QName('http://www.zorba-xquery.com/modules/random', 'random');
4292+declare variable $name as xs:QName := fn:QName('http://zorba.io/modules/random', 'random');
4293
4294 count( ref:invoke($name) ) > 0
4295
4296=== modified file 'test/rbkt/Queries/zorba/scripting/constr4.xq'
4297--- test/rbkt/Queries/zorba/scripting/constr4.xq 2013-02-07 17:24:36 +0000
4298+++ test/rbkt/Queries/zorba/scripting/constr4.xq 2013-07-17 15:56:30 +0000
4299@@ -1,4 +1,4 @@
4300-import module namespace r = "http://www.zorba-xquery.com/modules/random";
4301+import module namespace r = "http://zorba.io/modules/random";
4302
4303 (: test call to a nondeterministic function in an element constructor :)
4304 element book {
4305
4306=== modified file 'test/rbkt/Queries/zorba/string/AnalyzeString/http-client-doc.htm'
4307--- test/rbkt/Queries/zorba/string/AnalyzeString/http-client-doc.htm 2013-07-17 07:20:31 +0000
4308+++ test/rbkt/Queries/zorba/string/AnalyzeString/http-client-doc.htm 2013-07-17 15:56:30 +0000
4309@@ -126,7 +126,7 @@
4310 </sup>
4311 </li>
4312 <li>
4313- <a href="www.zorba-xquery.com_modules_math.html" title="http://www.zorba-xquery.com/modules/math">math</a>
4314+ <a href="www.zorba-xquery.com_modules_math.html" title="http://zorba.io/modules/math">math</a>
4315 <sup>
4316 <a href="http://www.w3.org/TR/xquery-30/#dt-external-function" target="_blank" title="There are external functions (either private or public) declared in this module.">(E)</a>
4317 </sup>
4318@@ -135,7 +135,7 @@
4319 </sup>
4320 </li>
4321 <li>
4322- <a href="www.zorba-xquery.com_modules_random.html" title="http://www.zorba-xquery.com/modules/random">random</a>
4323+ <a href="www.zorba-xquery.com_modules_random.html" title="http://zorba.io/modules/random">random</a>
4324 <sup>
4325 <a href="http://www.w3.org/TR/xquery-30/#dt-external-function" target="_blank" title="There are external functions (either private or public) declared in this module.">(E)</a>
4326 </sup>
4327
4328=== modified file 'test/rbkt/Queries/zorba/xqxq/external-module.xq'
4329--- test/rbkt/Queries/zorba/xqxq/external-module.xq 2012-10-25 00:07:03 +0000
4330+++ test/rbkt/Queries/zorba/xqxq/external-module.xq 2013-07-17 15:56:30 +0000
4331@@ -1,7 +1,7 @@
4332 import module namespace xqxq = 'http://www.zorba-xquery.com/modules/xqxq';
4333
4334 variable $query-key := xqxq:prepare-main-module('
4335- import module namespace r = "http://www.zorba-xquery.com/modules/random";
4336+ import module namespace r = "http://zorba.io/modules/random";
4337
4338 count((for $i in 1 to 10 return r:random(10), r:random())) eq 101
4339 ');
4340
4341=== modified file 'test/unit/invoke.cpp'
4342--- test/unit/invoke.cpp 2013-02-07 17:24:36 +0000
4343+++ test/unit/invoke.cpp 2013-07-17 15:56:30 +0000
4344@@ -164,12 +164,12 @@
4345
4346 std::ostringstream lProlog;
4347 lProlog
4348- << "import module namespace r = 'http://www.zorba-xquery.com/modules/random';";
4349+ << "import module namespace r = 'http://zorba.io/modules/random';";
4350 lSctx->loadProlog(lProlog.str(), lHints);
4351
4352 ItemFactory* lFac = z->getItemFactory();
4353 Item lQName = lFac->createQName(
4354- "http://www.zorba-xquery.com/modules/random",
4355+ "http://zorba.io/modules/random",
4356 "random");
4357
4358 std::vector<ItemSequence_t> lArgs;

Subscribers

People subscribed via source and target branches