Merge lp:~zorba-coders/zorba/bug-1189789 into lp:zorba
- bug-1189789
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 11665 | ||||
Proposed branch: | lp:~zorba-coders/zorba/bug-1189789 | ||||
Merge into: | lp:zorba | ||||
Diff against target: |
602 lines (+56/-56) 39 files modified
doc/zorba/xqdoc/images/modules.svg (+2/-2) doc/zorba/xqdoc/images/modules_new.svg (+3/-3) doc/zorba/xqdoc/src/xqdoc-html.xq (+1/-1) doc/zorba/xqdoc/src/zorba_module_dependencies.xqy (+1/-1) modules/com/zorba-xquery/www/modules/CMakeLists.txt (+0/-3) modules/jsound/jsound.jq (+1/-1) modules/uri/CMakeLists.txt (+2/-0) modules/uri/fetch.xq (+8/-8) modules/xqdoc/xqdoc.xq (+1/-1) src/context/static_context.cpp (+1/-1) src/diagnostics/diagnostic_en.xml (+1/-1) src/diagnostics/pregenerated/dict_en.cpp (+1/-1) src/functions/pregenerated/func_fetch.cpp (+3/-3) src/runtime/fetch/fetch_impl.cpp (+4/-3) src/runtime/spec/mappings.xml (+1/-1) test/api/userdefined_uri_resolution.cpp (+2/-2) test/rbkt/Queries/zorba/fetch/fetch_bogus1.xq (+1/-1) test/rbkt/Queries/zorba/fetch/fetch_bogus2.spec (+1/-1) test/rbkt/Queries/zorba/fetch/fetch_bogus2.xq (+1/-1) test/rbkt/Queries/zorba/fetch/fetch_module1.xq (+1/-1) test/rbkt/Queries/zorba/fetch/fetch_module2.xq (+1/-1) test/rbkt/Queries/zorba/fetch/fetch_random_file.xq (+1/-1) test/rbkt/Queries/zorba/fetch/fetch_schema1.xq (+1/-1) test/rbkt/Queries/zorba/fetch/fetch_seekable.xq (+1/-1) test/rbkt/Queries/zorba/fetch/fetch_seekable_binary.xq (+1/-1) test/rbkt/Queries/zorba/fetch/fetch_some_transcode.xq (+1/-1) test/rbkt/Queries/zorba/flwor/flwor24.xq (+1/-1) test/rbkt/Queries/zorba/flwor/flwor25.xq (+1/-1) test/rbkt/Queries/zorba/flwor/flwor26.xq (+1/-1) test/rbkt/Queries/zorba/flwor/flwor27.xq (+1/-1) test/rbkt/Queries/zorba/flwor/flwor28.xq (+1/-1) test/rbkt/Queries/zorba/jsoniq/json_doc_1.xq (+1/-1) test/rbkt/Queries/zorba/jsound/jsound-missing-schema.spec (+1/-1) test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-57.xq (+1/-1) test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-31.xq (+1/-1) test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-33.xq (+1/-1) test/rbkt/Queries/zorba/string/AnalyzeString/http-client-doc.htm (+1/-1) test/rbkt/Queries/zorba/xqdoc/moduleDocumentation.xq (+1/-1) test/unit/test_static_context.cpp (+2/-2) |
||||
To merge this branch: | bzr merge lp:~zorba-coders/zorba/bug-1189789 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chris Hillery | Approve | ||
Luis Rodriguez Gonzalez | Approve | ||
Review via email: mp+191513@code.launchpad.net |
Commit message
Changes for Zorba 3.0 for Fetch module
Description of the change
Luis Rodriguez Gonzalez (kuraru) : | # |
Chris Hillery (ceejatec) : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "BuildZorbaUbuntu" failed.
Check compiler output at http://
- 11664. By Chris Hillery
-
Move fetch.xq into uri/ directory.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "BuildZorbaUbuntu" failed.
Check compiler output at http://
- 11665. By Chris Hillery
-
Remove fetch subdir.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue result for https:/
Stage "TestZorbaUbuntu" failed.
2 tests failed (8576 total tests run).
Check test results at http://
- 11666. By Chris Hillery
-
Fix test failures.
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue starting for the following merge proposals:
https:/
Progress dashboard at http://
Zorba Build Bot (zorba-buildbot) wrote : | # |
Validation queue succeeded - proposal merged!
Preview Diff
1 | === modified file 'doc/zorba/xqdoc/images/modules.svg' | |||
2 | --- doc/zorba/xqdoc/images/modules.svg 2013-10-16 18:45:10 +0000 | |||
3 | +++ doc/zorba/xqdoc/images/modules.svg 2013-10-16 22:17:59 +0000 | |||
4 | @@ -1776,7 +1776,7 @@ | |||
5 | 1776 | </g> | 1776 | </g> |
6 | 1777 | <!-- 7 --> | 1777 | <!-- 7 --> |
7 | 1778 | <g id="node159" class="node"><title>7</title> | 1778 | <g id="node159" class="node"><title>7</title> |
9 | 1779 | <a xlink:href="../www.zorba-xquery.com_modules_fetch.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/fetch"> | 1779 | <a xlink:href="../www.zorba-xquery.com_modules_fetch.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/fetch"> |
10 | 1780 | <ellipse fill="white" stroke="white" cx="5860" cy="-385" rx="28.3955" ry="18"/> | 1780 | <ellipse fill="white" stroke="white" cx="5860" cy="-385" rx="28.3955" ry="18"/> |
11 | 1781 | <text text-anchor="middle" x="5860" y="-381.3" font-family="Times,serif" font-size="14.00" fill="red">fetch</text> | 1781 | <text text-anchor="middle" x="5860" y="-381.3" font-family="Times,serif" font-size="14.00" fill="red">fetch</text> |
12 | 1782 | </a> | 1782 | </a> |
13 | @@ -2139,7 +2139,7 @@ | |||
14 | 2139 | </g> | 2139 | </g> |
15 | 2140 | <!-- 11->7 --> | 2140 | <!-- 11->7 --> |
16 | 2141 | <g id="edge172" class="edge"><title>11->7</title> | 2141 | <g id="edge172" class="edge"><title>11->7</title> |
18 | 2142 | <a xlink:title="FROM: http://www.zorba-xquery.com/modules/xqdoc, TO: http://www.zorba-xquery.com/modules/fetch"> | 2142 | <a xlink:title="FROM: http://www.zorba-xquery.com/modules/xqdoc, TO: http://zorba.io/modules/fetch"> |
19 | 2143 | <path fill="none" stroke="black" d="M1218.5,-534.086C1294.83,-527.184 1495.8,-509.973 1664,-504 1678.42,-503.488 5807.16,-504.241 5819,-496 5845.61,-477.48 5854.98,-439.5 5858.26,-413.397"/> | 2143 | <path fill="none" stroke="black" d="M1218.5,-534.086C1294.83,-527.184 1495.8,-509.973 1664,-504 1678.42,-503.488 5807.16,-504.241 5819,-496 5845.61,-477.48 5854.98,-439.5 5858.26,-413.397"/> |
20 | 2144 | <polygon fill="black" stroke="black" points="5861.75,-413.674 5859.3,-403.366 5854.79,-412.953 5861.75,-413.674"/> | 2144 | <polygon fill="black" stroke="black" points="5861.75,-413.674 5859.3,-403.366 5854.79,-412.953 5861.75,-413.674"/> |
21 | 2145 | </a> | 2145 | </a> |
22 | 2146 | 2146 | ||
23 | === modified file 'doc/zorba/xqdoc/images/modules_new.svg' | |||
24 | --- doc/zorba/xqdoc/images/modules_new.svg 2013-10-16 19:15:37 +0000 | |||
25 | +++ doc/zorba/xqdoc/images/modules_new.svg 2013-10-16 22:17:59 +0000 | |||
26 | @@ -1782,7 +1782,7 @@ | |||
27 | 1782 | </g> | 1782 | </g> |
28 | 1783 | <!-- 5 --> | 1783 | <!-- 5 --> |
29 | 1784 | <g id="node159" class="node"><title>5</title> | 1784 | <g id="node159" class="node"><title>5</title> |
31 | 1785 | <a xlink:href="../www.zorba-xquery.com_modules_fetch.html" xlink:title="(Zorba-core) module uri=http://www.zorba-xquery.com/modules/fetch"> | 1785 | <a xlink:href="../www.zorba-xquery.com_modules_fetch.html" xlink:title="(Zorba-core) module uri=http://zorba.io/modules/fetch"> |
32 | 1786 | <ellipse fill="white" stroke="white" cx="8579" cy="-407" rx="36.0624" ry="18.3848"/> | 1786 | <ellipse fill="white" stroke="white" cx="8579" cy="-407" rx="36.0624" ry="18.3848"/> |
33 | 1787 | <text text-anchor="middle" x="8579" y="-403.4" font-family="Times Roman,serif" font-size="14.00" fill="red">fetch</text> | 1787 | <text text-anchor="middle" x="8579" y="-403.4" font-family="Times Roman,serif" font-size="14.00" fill="red">fetch</text> |
34 | 1788 | </a> | 1788 | </a> |
35 | @@ -2152,7 +2152,7 @@ | |||
36 | 2152 | </g> | 2152 | </g> |
37 | 2153 | <!-- 47->5 --> | 2153 | <!-- 47->5 --> |
38 | 2154 | <g id="edge217" class="edge"><title>47->5</title> | 2154 | <g id="edge217" class="edge"><title>47->5</title> |
40 | 2155 | <a xlink:title="FROM: http://zorba.io/modules/xqdoc, TO: http://www.zorba-xquery.com/modules/fetch"> | 2155 | <a xlink:title="FROM: http://zorba.io/modules/xqdoc, TO: http://zorba.io/modules/fetch"> |
41 | 2156 | <path fill="none" stroke="black" d="M1528.09,-569.535C1682.61,-563.822 2265.76,-543.017 2746,-536 2756.04,-535.853 8522.7,-533.648 8531,-528 8561.16,-507.489 8572.37,-464.752 8576.53,-435.963"/> | 2156 | <path fill="none" stroke="black" d="M1528.09,-569.535C1682.61,-563.822 2265.76,-543.017 2746,-536 2756.04,-535.853 8522.7,-533.648 8531,-528 8561.16,-507.489 8572.37,-464.752 8576.53,-435.963"/> |
42 | 2157 | <polygon fill="black" stroke="black" points="8580.05,-436.043 8577.81,-425.688 8573.11,-435.18 8580.05,-436.043"/> | 2157 | <polygon fill="black" stroke="black" points="8580.05,-436.043 8577.81,-425.688 8573.11,-435.18 8580.05,-436.043"/> |
43 | 2158 | </a> | 2158 | </a> |
44 | @@ -2192,7 +2192,7 @@ | |||
45 | 2192 | </g> | 2192 | </g> |
46 | 2193 | <!-- 30->5 --> | 2193 | <!-- 30->5 --> |
47 | 2194 | <g id="edge209" class="edge"><title>30->5</title> | 2194 | <g id="edge209" class="edge"><title>30->5</title> |
49 | 2195 | <a xlink:title="FROM: http://jsound.io/modules/validate, TO: http://www.zorba-xquery.com/modules/fetch"> | 2195 | <a xlink:title="FROM: http://jsound.io/modules/validate, TO: http://zorba.io/modules/fetch"> |
50 | 2196 | <path fill="none" stroke="black" d="M9400.37,-567.144C9346.58,-559.55 9221.07,-542.803 9115,-536 9101.47,-535.132 8638.15,-535.708 8627,-528 8597,-507.263 8585.75,-464.585 8581.53,-435.871"/> | 2196 | <path fill="none" stroke="black" d="M9400.37,-567.144C9346.58,-559.55 9221.07,-542.803 9115,-536 9101.47,-535.132 8638.15,-535.708 8627,-528 8597,-507.263 8585.75,-464.585 8581.53,-435.871"/> |
51 | 2197 | <polygon fill="black" stroke="black" points="8584.96,-435.105 8580.23,-425.624 8578.02,-435.984 8584.96,-435.105"/> | 2197 | <polygon fill="black" stroke="black" points="8584.96,-435.105 8580.23,-425.624 8578.02,-435.984 8584.96,-435.105"/> |
52 | 2198 | </a> | 2198 | </a> |
53 | 2199 | 2199 | ||
54 | === modified file 'doc/zorba/xqdoc/src/xqdoc-html.xq' | |||
55 | --- doc/zorba/xqdoc/src/xqdoc-html.xq 2013-10-07 23:26:13 +0000 | |||
56 | +++ doc/zorba/xqdoc/src/xqdoc-html.xq 2013-10-16 22:17:59 +0000 | |||
57 | @@ -17,7 +17,7 @@ | |||
58 | 17 | 17 | ||
59 | 18 | import module namespace xqdoc = "http://zorba.io/modules/xqdoc"; | 18 | import module namespace xqdoc = "http://zorba.io/modules/xqdoc"; |
60 | 19 | import module namespace batch = "http://www.zorba-xquery.com/modules/xqdoc/batch"; | 19 | import module namespace batch = "http://www.zorba-xquery.com/modules/xqdoc/batch"; |
62 | 20 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 20 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
63 | 21 | import module namespace xqdoc-html = "http://www.zorba-xquery.com/xqdoc-html" at "xqdoc-html.xqy"; | 21 | import module namespace xqdoc-html = "http://www.zorba-xquery.com/xqdoc-html" at "xqdoc-html.xqy"; |
64 | 22 | 22 | ||
65 | 23 | declare namespace xqd = "http://www.xqdoc.org/1.0"; | 23 | declare namespace xqd = "http://www.xqdoc.org/1.0"; |
66 | 24 | 24 | ||
67 | === modified file 'doc/zorba/xqdoc/src/zorba_module_dependencies.xqy' | |||
68 | --- doc/zorba/xqdoc/src/zorba_module_dependencies.xqy 2013-10-07 23:26:13 +0000 | |||
69 | +++ doc/zorba/xqdoc/src/zorba_module_dependencies.xqy 2013-10-16 22:17:59 +0000 | |||
70 | @@ -28,7 +28,7 @@ | |||
71 | 28 | 28 | ||
72 | 29 | import module namespace dot = "http://www.zorba-xquery.com/modules/image/graphviz"; | 29 | import module namespace dot = "http://www.zorba-xquery.com/modules/image/graphviz"; |
73 | 30 | import module namespace xqd = "http://zorba.io/modules/xqdoc"; | 30 | import module namespace xqd = "http://zorba.io/modules/xqdoc"; |
75 | 31 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 31 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
76 | 32 | import module namespace dml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; | 32 | import module namespace dml = "http://www.zorba-xquery.com/modules/store/static/collections/dml"; |
77 | 33 | import module namespace ddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl"; | 33 | import module namespace ddl = "http://www.zorba-xquery.com/modules/store/static/collections/ddl"; |
78 | 34 | import module namespace menu = "http://www.zorba-xquery.com/modules/xqdoc/menu"; | 34 | import module namespace menu = "http://www.zorba-xquery.com/modules/xqdoc/menu"; |
79 | 35 | 35 | ||
80 | === modified file 'modules/com/zorba-xquery/www/modules/CMakeLists.txt' | |||
81 | --- modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-10-16 18:45:10 +0000 | |||
82 | +++ modules/com/zorba-xquery/www/modules/CMakeLists.txt 2013-10-16 22:17:59 +0000 | |||
83 | @@ -12,9 +12,6 @@ | |||
84 | 12 | # See the License for the specific language governing permissions and | 12 | # See the License for the specific language governing permissions and |
85 | 13 | # limitations under the License. | 13 | # limitations under the License. |
86 | 14 | 14 | ||
87 | 15 | DECLARE_ZORBA_MODULE(FILE fetch.xq VERSION 2.0 | ||
88 | 16 | URI "http://www.zorba-xquery.com/modules/fetch") | ||
89 | 17 | |||
90 | 18 | # Subdirectories | 15 | # Subdirectories |
91 | 19 | 16 | ||
92 | 20 | DECLARE_ZORBA_MODULE(FILE store/documents/dynamic.xq VERSION 2.0 | 17 | DECLARE_ZORBA_MODULE(FILE store/documents/dynamic.xq VERSION 2.0 |
93 | 21 | 18 | ||
94 | === modified file 'modules/jsound/jsound.jq' | |||
95 | --- modules/jsound/jsound.jq 2013-10-05 00:14:23 +0000 | |||
96 | +++ modules/jsound/jsound.jq 2013-10-16 22:17:59 +0000 | |||
97 | @@ -28,7 +28,7 @@ | |||
98 | 28 | 28 | ||
99 | 29 | import module namespace jn = "http://jsoniq.org/functions"; | 29 | import module namespace jn = "http://jsoniq.org/functions"; |
100 | 30 | import module namespace map = "http://jsound.io/modules/validate/map"; | 30 | import module namespace map = "http://jsound.io/modules/validate/map"; |
102 | 31 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 31 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
103 | 32 | 32 | ||
104 | 33 | declare namespace an = "http://zorba.io/annotations"; | 33 | declare namespace an = "http://zorba.io/annotations"; |
105 | 34 | declare namespace ver = "http://zorba.io/options/versioning"; | 34 | declare namespace ver = "http://zorba.io/options/versioning"; |
106 | 35 | 35 | ||
107 | === modified file 'modules/uri/CMakeLists.txt' | |||
108 | --- modules/uri/CMakeLists.txt 2013-10-15 23:27:57 +0000 | |||
109 | +++ modules/uri/CMakeLists.txt 2013-10-16 22:17:59 +0000 | |||
110 | @@ -14,3 +14,5 @@ | |||
111 | 14 | 14 | ||
112 | 15 | DECLARE_ZORBA_MODULE(FILE uri.xq VERSION 1.0 | 15 | DECLARE_ZORBA_MODULE(FILE uri.xq VERSION 1.0 |
113 | 16 | URI "http://zorba.io/modules/uri") | 16 | URI "http://zorba.io/modules/uri") |
114 | 17 | DECLARE_ZORBA_MODULE(FILE fetch.xq VERSION 1.0 | ||
115 | 18 | URI "http://zorba.io/modules/fetch") | ||
116 | 17 | 19 | ||
117 | === renamed file 'modules/com/zorba-xquery/www/modules/fetch.xq' => 'modules/uri/fetch.xq' | |||
118 | --- modules/com/zorba-xquery/www/modules/fetch.xq 2013-09-26 23:15:11 +0000 | |||
119 | +++ modules/uri/fetch.xq 2013-10-16 22:17:59 +0000 | |||
120 | @@ -29,14 +29,14 @@ | |||
121 | 29 | : | 29 | : |
122 | 30 | : @project Zorba/Input Output/Fetch | 30 | : @project Zorba/Input Output/Fetch |
123 | 31 | :) | 31 | :) |
125 | 32 | module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 32 | module namespace fetch = "http://zorba.io/modules/fetch"; |
126 | 33 | 33 | ||
127 | 34 | declare namespace an = "http://zorba.io/annotations"; | 34 | declare namespace an = "http://zorba.io/annotations"; |
128 | 35 | 35 | ||
129 | 36 | declare namespace zerr = "http://zorba.io/errors"; | 36 | declare namespace zerr = "http://zorba.io/errors"; |
130 | 37 | 37 | ||
131 | 38 | declare namespace ver = "http://zorba.io/options/versioning"; | 38 | declare namespace ver = "http://zorba.io/options/versioning"; |
133 | 39 | declare option ver:module-version "2.1"; | 39 | declare option ver:module-version "1.0"; |
134 | 40 | 40 | ||
135 | 41 | (:~ | 41 | (:~ |
136 | 42 | : <p>Tries to fetch the resource referred to by the given URI.</p> | 42 | : <p>Tries to fetch the resource referred to by the given URI.</p> |
137 | @@ -49,7 +49,7 @@ | |||
138 | 49 | : @param $uri the resource to fetch. | 49 | : @param $uri the resource to fetch. |
139 | 50 | : @return the resource referred to by the given URI as streamble string. | 50 | : @return the resource referred to by the given URI as streamble string. |
140 | 51 | : | 51 | : |
142 | 52 | : @error zerr:ZXQP0025 if the URI could not be resolved | 52 | : @error uri:URI_UNRESOLVED_OR_NOSTREAM if the URI could not be resolved |
143 | 53 | : or did not resolve to a <tt>StreamResource</tt>. | 53 | : or did not resolve to a <tt>StreamResource</tt>. |
144 | 54 | : | 54 | : |
145 | 55 | : @see <a href="../zorba/uriresolvers.html">URI Resolvers</a>. | 55 | : @see <a href="../zorba/uriresolvers.html">URI Resolvers</a>. |
146 | @@ -72,7 +72,7 @@ | |||
147 | 72 | : @param $entity-kind the kind of resource to fetch. | 72 | : @param $entity-kind the kind of resource to fetch. |
148 | 73 | : @return the resource referred to by the given URI as streamble string. | 73 | : @return the resource referred to by the given URI as streamble string. |
149 | 74 | : | 74 | : |
151 | 75 | : @error zerr:ZXQP0025 if the URI could not be resolved | 75 | : @error uri:URI_NOT_RESOLVED_OR_NOSTREAM if the URI could not be resolved |
152 | 76 | : or did not resolve to a <tt>StreamResource</tt>. | 76 | : or did not resolve to a <tt>StreamResource</tt>. |
153 | 77 | : | 77 | : |
154 | 78 | : @see <a href="../zorba/uriresolvers.html">URI Resolvers</a>. | 78 | : @see <a href="../zorba/uriresolvers.html">URI Resolvers</a>. |
155 | @@ -95,9 +95,9 @@ | |||
156 | 95 | : @param $encoding the encoding of the content | 95 | : @param $encoding the encoding of the content |
157 | 96 | : @return the resource referred to by the given URI as streamble string. | 96 | : @return the resource referred to by the given URI as streamble string. |
158 | 97 | : | 97 | : |
160 | 98 | : @error zerr:ZXQP0025 if the URI could not be resolved | 98 | : @error uri:URI_UNRESOLVED_OR_NOSTREAM if the URI could not be resolved |
161 | 99 | : or did not resolve to a <tt>StreamResource</tt>. | 99 | : or did not resolve to a <tt>StreamResource</tt>. |
163 | 100 | : @error zerr:ZXQP0006 if the given encoding is invalid or not supported. | 100 | : @error uri:CHARSET_UNKNOWN if the given encoding is invalid or not supported. |
164 | 101 | : | 101 | : |
165 | 102 | : @see <a href="../zorba/uriresolvers.html">URI Resolvers</a>. | 102 | : @see <a href="../zorba/uriresolvers.html">URI Resolvers</a>. |
166 | 103 | : @see <a href="../zorba/options_and_annotations.html">Documentation of Zorba's annotations</a>. | 103 | : @see <a href="../zorba/options_and_annotations.html">Documentation of Zorba's annotations</a>. |
167 | @@ -118,7 +118,7 @@ | |||
168 | 118 | : @param $uri the resource to fetch. | 118 | : @param $uri the resource to fetch. |
169 | 119 | : @return the resource referred to by the given URI as streamble base64Binary. | 119 | : @return the resource referred to by the given URI as streamble base64Binary. |
170 | 120 | : | 120 | : |
172 | 121 | : @error zerr:ZXQP0025 if the URI could not be resolved | 121 | : @error uri:URI_UNRESOLVED_OR_NOSTREAM if the URI could not be resolved |
173 | 122 | : or did not resolve to a <tt>StreamResource</tt>. | 122 | : or did not resolve to a <tt>StreamResource</tt>. |
174 | 123 | :) | 123 | :) |
175 | 124 | declare %an:streamable function fetch:content-binary($uri as xs:string) | 124 | declare %an:streamable function fetch:content-binary($uri as xs:string) |
176 | @@ -138,7 +138,7 @@ | |||
177 | 138 | : @param $entity-kind the kind of resource to fetch. | 138 | : @param $entity-kind the kind of resource to fetch. |
178 | 139 | : @return the resource referred to by the given URI as streamble base64Binary. | 139 | : @return the resource referred to by the given URI as streamble base64Binary. |
179 | 140 | : | 140 | : |
181 | 141 | : @error zerr:ZXQP0025 if the URI could not be resolved | 141 | : @error uri:URI_UNRESOLVED_OR_NOSTREAM if the URI could not be resolved |
182 | 142 | : or did not resolve to a <tt>StreamResource</tt>. | 142 | : or did not resolve to a <tt>StreamResource</tt>. |
183 | 143 | :) | 143 | :) |
184 | 144 | declare %an:streamable function fetch:content-binary( | 144 | declare %an:streamable function fetch:content-binary( |
185 | 145 | 145 | ||
186 | === modified file 'modules/xqdoc/xqdoc.xq' | |||
187 | --- modules/xqdoc/xqdoc.xq 2013-10-07 23:26:13 +0000 | |||
188 | +++ modules/xqdoc/xqdoc.xq 2013-10-16 22:17:59 +0000 | |||
189 | @@ -61,7 +61,7 @@ | |||
190 | 61 | :) | 61 | :) |
191 | 62 | module namespace xqd = "http://zorba.io/modules/xqdoc"; | 62 | module namespace xqd = "http://zorba.io/modules/xqdoc"; |
192 | 63 | 63 | ||
194 | 64 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 64 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
195 | 65 | import module namespace schema = "http://zorba.io/modules/schema"; | 65 | import module namespace schema = "http://zorba.io/modules/schema"; |
196 | 66 | 66 | ||
197 | 67 | import schema namespace opt = | 67 | import schema namespace opt = |
198 | 68 | 68 | ||
199 | === modified file 'src/context/static_context.cpp' | |||
200 | --- src/context/static_context.cpp 2013-10-16 18:45:10 +0000 | |||
201 | +++ src/context/static_context.cpp 2013-10-16 22:17:59 +0000 | |||
202 | @@ -464,7 +464,7 @@ | |||
203 | 464 | 464 | ||
204 | 465 | const char* | 465 | const char* |
205 | 466 | static_context::ZORBA_FETCH_FN_NS = | 466 | static_context::ZORBA_FETCH_FN_NS = |
207 | 467 | "http://www.zorba-xquery.com/modules/fetch"; | 467 | "http://zorba.io/modules/fetch"; |
208 | 468 | 468 | ||
209 | 469 | const char* | 469 | const char* |
210 | 470 | static_context::ZORBA_NODE_FN_NS = | 470 | static_context::ZORBA_NODE_FN_NS = |
211 | 471 | 471 | ||
212 | === modified file 'src/diagnostics/diagnostic_en.xml' | |||
213 | --- src/diagnostics/diagnostic_en.xml 2013-10-15 23:27:57 +0000 | |||
214 | +++ src/diagnostics/diagnostic_en.xml 2013-10-16 22:17:59 +0000 | |||
215 | @@ -3697,7 +3697,7 @@ | |||
216 | 3697 | 3697 | ||
217 | 3698 | <diagnostic code="URI_UNRESOLVED_OR_NOSTREAM"> | 3698 | <diagnostic code="URI_UNRESOLVED_OR_NOSTREAM"> |
218 | 3699 | <comment>If the stream is unresolved or is not an stream.</comment> | 3699 | <comment>If the stream is unresolved or is not an stream.</comment> |
220 | 3700 | <value>the stream is unresolved or it is not a stream</value> | 3700 | <value>"$1": stream is unresolved or it is not a stream - "$2"</value> |
221 | 3701 | </diagnostic> | 3701 | </diagnostic> |
222 | 3702 | 3702 | ||
223 | 3703 | </namespace> | 3703 | </namespace> |
224 | 3704 | 3704 | ||
225 | === modified file 'src/diagnostics/pregenerated/dict_en.cpp' | |||
226 | --- src/diagnostics/pregenerated/dict_en.cpp 2013-10-15 23:27:57 +0000 | |||
227 | +++ src/diagnostics/pregenerated/dict_en.cpp 2013-10-16 22:17:59 +0000 | |||
228 | @@ -152,7 +152,7 @@ | |||
229 | 152 | { "SESU0013", "\"$1\": unsupported $2 version; supported versions are: $3" }, | 152 | { "SESU0013", "\"$1\": unsupported $2 version; supported versions are: $3" }, |
230 | 153 | { "UNKNOWN_LOCALE", "\"$1\": unknown locale" }, | 153 | { "UNKNOWN_LOCALE", "\"$1\": unknown locale" }, |
231 | 154 | { "UNSUPPORTED_LOCALE", "\"$1\": unsupported locale" }, | 154 | { "UNSUPPORTED_LOCALE", "\"$1\": unsupported locale" }, |
233 | 155 | { "URI_UNRESOLVED_OR_NOSTREAM", "the stream is unresolved or it is not a stream" }, | 155 | { "URI_UNRESOLVED_OR_NOSTREAM", "\"$1\": stream is unresolved or it is not a stream - \"$2\"" }, |
234 | 156 | { "XPDY0002", "$1" }, | 156 | { "XPDY0002", "$1" }, |
235 | 157 | { "XPDY0050", "\"$1\" cannot be treated as type $2" }, | 157 | { "XPDY0050", "\"$1\" cannot be treated as type $2" }, |
236 | 158 | { "XPST0001", "${\"1\": }undefined value${: 2}" }, | 158 | { "XPST0001", "${\"1\": }undefined value${: 2}" }, |
237 | 159 | 159 | ||
238 | === modified file 'src/functions/pregenerated/func_fetch.cpp' | |||
239 | --- src/functions/pregenerated/func_fetch.cpp 2013-03-05 23:11:50 +0000 | |||
240 | +++ src/functions/pregenerated/func_fetch.cpp 2013-10-16 22:17:59 +0000 | |||
241 | @@ -67,7 +67,7 @@ | |||
242 | 67 | 67 | ||
243 | 68 | { | 68 | { |
244 | 69 | DECL_WITH_KIND(sctx, fn_zorba_fetch_content, | 69 | DECL_WITH_KIND(sctx, fn_zorba_fetch_content, |
246 | 70 | (createQName("http://www.zorba-xquery.com/modules/fetch","","content"), | 70 | (createQName("http://zorba.io/modules/fetch","","content"), |
247 | 71 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | 71 | GENV_TYPESYSTEM.STRING_TYPE_ONE, |
248 | 72 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | 72 | GENV_TYPESYSTEM.STRING_TYPE_ONE, |
249 | 73 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | 73 | GENV_TYPESYSTEM.STRING_TYPE_ONE, |
250 | @@ -81,7 +81,7 @@ | |||
251 | 81 | 81 | ||
252 | 82 | { | 82 | { |
253 | 83 | DECL_WITH_KIND(sctx, fn_zorba_fetch_content_binary, | 83 | DECL_WITH_KIND(sctx, fn_zorba_fetch_content_binary, |
255 | 84 | (createQName("http://www.zorba-xquery.com/modules/fetch","","content-binary"), | 84 | (createQName("http://zorba.io/modules/fetch","","content-binary"), |
256 | 85 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | 85 | GENV_TYPESYSTEM.STRING_TYPE_ONE, |
257 | 86 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | 86 | GENV_TYPESYSTEM.STRING_TYPE_ONE, |
258 | 87 | GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE), | 87 | GENV_TYPESYSTEM.BASE64BINARY_TYPE_ONE), |
259 | @@ -94,7 +94,7 @@ | |||
260 | 94 | 94 | ||
261 | 95 | { | 95 | { |
262 | 96 | DECL_WITH_KIND(sctx, fn_zorba_fetch_content_type, | 96 | DECL_WITH_KIND(sctx, fn_zorba_fetch_content_type, |
264 | 97 | (createQName("http://www.zorba-xquery.com/modules/fetch","","content-type"), | 97 | (createQName("http://zorba.io/modules/fetch","","content-type"), |
265 | 98 | GENV_TYPESYSTEM.STRING_TYPE_ONE, | 98 | GENV_TYPESYSTEM.STRING_TYPE_ONE, |
266 | 99 | GENV_TYPESYSTEM.STRING_TYPE_ONE), | 99 | GENV_TYPESYSTEM.STRING_TYPE_ONE), |
267 | 100 | FunctionConsts::FN_ZORBA_FETCH_CONTENT_TYPE_1); | 100 | FunctionConsts::FN_ZORBA_FETCH_CONTENT_TYPE_1); |
268 | 101 | 101 | ||
269 | === modified file 'src/runtime/fetch/fetch_impl.cpp' | |||
270 | --- src/runtime/fetch/fetch_impl.cpp 2013-09-17 21:12:49 +0000 | |||
271 | +++ src/runtime/fetch/fetch_impl.cpp 2013-10-16 22:17:59 +0000 | |||
272 | @@ -17,6 +17,7 @@ | |||
273 | 17 | 17 | ||
274 | 18 | #include <zorba/util/transcode_stream.h> | 18 | #include <zorba/util/transcode_stream.h> |
275 | 19 | #include <zorba/internal/unique_ptr.h> | 19 | #include <zorba/internal/unique_ptr.h> |
276 | 20 | #include <zorba/diagnostic_list.h> | ||
277 | 20 | 21 | ||
278 | 21 | #include "diagnostics/assert.h" | 22 | #include "diagnostics/assert.h" |
279 | 22 | #include "diagnostics/xquery_diagnostics.h" | 23 | #include "diagnostics/xquery_diagnostics.h" |
280 | @@ -84,7 +85,7 @@ | |||
281 | 84 | if ( !lStreamRes.get() ) | 85 | if ( !lStreamRes.get() ) |
282 | 85 | { | 86 | { |
283 | 86 | throw XQUERY_EXCEPTION( | 87 | throw XQUERY_EXCEPTION( |
285 | 87 | zerr::ZXQP0025_COULD_NOT_FETCH_RESOURCE, | 88 | zuri::URI_UNRESOLVED_OR_NOSTREAM, |
286 | 88 | ERROR_PARAMS( | 89 | ERROR_PARAMS( |
287 | 89 | aUri->getStringValue(), | 90 | aUri->getStringValue(), |
288 | 90 | ZED(ZXQP0025_RESOURCE_NOT_FOUND) | 91 | ZED(ZXQP0025_RESOURCE_NOT_FOUND) |
289 | @@ -99,7 +100,7 @@ | |||
290 | 99 | 100 | ||
291 | 100 | } catch (ZorbaException const& e) { | 101 | } catch (ZorbaException const& e) { |
292 | 101 | throw XQUERY_EXCEPTION( | 102 | throw XQUERY_EXCEPTION( |
294 | 102 | zerr::ZXQP0025_COULD_NOT_FETCH_RESOURCE, | 103 | zuri::URI_UNRESOLVED_OR_NOSTREAM, |
295 | 103 | ERROR_PARAMS( aUri->getStringValue(), e.what() ), | 104 | ERROR_PARAMS( aUri->getStringValue(), e.what() ), |
296 | 104 | ERROR_LOC( aLoc ) | 105 | ERROR_LOC( aLoc ) |
297 | 105 | ); | 106 | ); |
298 | @@ -141,7 +142,7 @@ | |||
299 | 141 | if (!transcode::is_supported(lEncodingStr.c_str())) | 142 | if (!transcode::is_supported(lEncodingStr.c_str())) |
300 | 142 | { | 143 | { |
301 | 143 | throw XQUERY_EXCEPTION( | 144 | throw XQUERY_EXCEPTION( |
303 | 144 | zerr::ZXQP0006_UNKNOWN_ENCODING, | 145 | zuri::CHARSET_UNKNOWN, |
304 | 145 | ERROR_PARAMS( lEncodingStr.c_str() ), | 146 | ERROR_PARAMS( lEncodingStr.c_str() ), |
305 | 146 | ERROR_LOC( loc ) | 147 | ERROR_LOC( loc ) |
306 | 147 | ); | 148 | ); |
307 | 148 | 149 | ||
308 | === modified file 'src/runtime/spec/mappings.xml' | |||
309 | --- src/runtime/spec/mappings.xml 2013-10-16 18:45:10 +0000 | |||
310 | +++ src/runtime/spec/mappings.xml 2013-10-16 22:17:59 +0000 | |||
311 | @@ -122,7 +122,7 @@ | |||
312 | 122 | define="ZORBA_JSON_XML_FN_NS" | 122 | define="ZORBA_JSON_XML_FN_NS" |
313 | 123 | prefix="fn-zorba-json"/> | 123 | prefix="fn-zorba-json"/> |
314 | 124 | 124 | ||
316 | 125 | <zorba:namespace uri="http://www.zorba-xquery.com/modules/fetch" | 125 | <zorba:namespace uri="http://zorba.io/modules/fetch" |
317 | 126 | define="ZORBA_FETCH_FN_NS" | 126 | define="ZORBA_FETCH_FN_NS" |
318 | 127 | prefix="fn-zorba-fetch"/> | 127 | prefix="fn-zorba-fetch"/> |
319 | 128 | 128 | ||
320 | 129 | 129 | ||
321 | === modified file 'test/api/userdefined_uri_resolution.cpp' | |||
322 | --- test/api/userdefined_uri_resolution.cpp 2013-08-14 08:46:44 +0000 | |||
323 | +++ test/api/userdefined_uri_resolution.cpp 2013-10-16 22:17:59 +0000 | |||
324 | @@ -84,7 +84,7 @@ | |||
325 | 84 | { | 84 | { |
326 | 85 | // Deny access to an URI that would otherwise work | 85 | // Deny access to an URI that would otherwise work |
327 | 86 | if(aUri == "http://zorbatest.lambda.nu:8080/tutorial/helloworld.xsd" || | 86 | if(aUri == "http://zorbatest.lambda.nu:8080/tutorial/helloworld.xsd" || |
329 | 87 | aUri == "http://www.zorba-xquery.com/modules/fetch" || | 87 | aUri == "http://zorba.io/modules/fetch" || |
330 | 88 | aUri == "http://expath.org/ns/file") { | 88 | aUri == "http://expath.org/ns/file") { |
331 | 89 | oUris.push_back(URIMapper::DENY_ACCESS); | 89 | oUris.push_back(URIMapper::DENY_ACCESS); |
332 | 90 | } | 90 | } |
333 | @@ -272,7 +272,7 @@ | |||
334 | 272 | try { | 272 | try { |
335 | 273 | XQuery_t lQuery = aZorba->compileQuery | 273 | XQuery_t lQuery = aZorba->compileQuery |
336 | 274 | ("import module namespace fetch = " | 274 | ("import module namespace fetch = " |
338 | 275 | "'http://www.zorba-xquery.com/modules/fetch'; " | 275 | "'http://zorba.io/modules/fetch'; " |
339 | 276 | "1 + 1", lContext); | 276 | "1 + 1", lContext); |
340 | 277 | std::cout << lQuery << std::endl; | 277 | std::cout << lQuery << std::endl; |
341 | 278 | } catch (ZorbaException& e) { | 278 | } catch (ZorbaException& e) { |
342 | 279 | 279 | ||
343 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_bogus1.xq' | |||
344 | --- test/rbkt/Queries/zorba/fetch/fetch_bogus1.xq 2013-02-07 17:24:36 +0000 | |||
345 | +++ test/rbkt/Queries/zorba/fetch/fetch_bogus1.xq 2013-10-16 22:17:59 +0000 | |||
346 | @@ -1,4 +1,4 @@ | |||
347 | 1 | (: Fetch with unknown entity kind :) | 1 | (: Fetch with unknown entity kind :) |
349 | 2 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 2 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
350 | 3 | 3 | ||
351 | 4 | fetch:content("http://zorba-tests.28msec.us/modules/ext", "NOTHING") | 4 | fetch:content("http://zorba-tests.28msec.us/modules/ext", "NOTHING") |
352 | 5 | 5 | ||
353 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_bogus2.spec' | |||
354 | --- test/rbkt/Queries/zorba/fetch/fetch_bogus2.spec 2013-08-07 05:28:39 +0000 | |||
355 | +++ test/rbkt/Queries/zorba/fetch/fetch_bogus2.spec 2013-10-16 22:17:59 +0000 | |||
356 | @@ -1,1 +1,1 @@ | |||
358 | 1 | Error: http://zorba.io/errors:ZXQP0025 | 1 | Error: http://zorba.io/modules/uri:URI_UNRESOLVED_OR_NOSTREAM |
359 | 2 | 2 | ||
360 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_bogus2.xq' | |||
361 | --- test/rbkt/Queries/zorba/fetch/fetch_bogus2.xq 2013-02-07 17:24:36 +0000 | |||
362 | +++ test/rbkt/Queries/zorba/fetch/fetch_bogus2.xq 2013-10-16 22:17:59 +0000 | |||
363 | @@ -1,4 +1,4 @@ | |||
364 | 1 | (: Fetch a valid module URI but as SOME_CONTENT :) | 1 | (: Fetch a valid module URI but as SOME_CONTENT :) |
366 | 2 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 2 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
367 | 3 | 3 | ||
368 | 4 | fetch:content("http://zorba-tests.28msec.us/modules/ext", "SOME_CONTENT") | 4 | fetch:content("http://zorba-tests.28msec.us/modules/ext", "SOME_CONTENT") |
369 | 5 | 5 | ||
370 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_module1.xq' | |||
371 | --- test/rbkt/Queries/zorba/fetch/fetch_module1.xq 2013-02-07 17:24:36 +0000 | |||
372 | +++ test/rbkt/Queries/zorba/fetch/fetch_module1.xq 2013-10-16 22:17:59 +0000 | |||
373 | @@ -1,4 +1,4 @@ | |||
374 | 1 | (: Fetch a module's content :) | 1 | (: Fetch a module's content :) |
376 | 2 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 2 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
377 | 3 | 3 | ||
378 | 4 | fetch:content("http://zorba-tests.28msec.us/modules/ext", "MODULE") | 4 | fetch:content("http://zorba-tests.28msec.us/modules/ext", "MODULE") |
379 | 5 | 5 | ||
380 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_module2.xq' | |||
381 | --- test/rbkt/Queries/zorba/fetch/fetch_module2.xq 2013-02-07 17:24:36 +0000 | |||
382 | +++ test/rbkt/Queries/zorba/fetch/fetch_module2.xq 2013-10-16 22:17:59 +0000 | |||
383 | @@ -1,4 +1,4 @@ | |||
384 | 1 | (: Fetch a module's content with versioning :) | 1 | (: Fetch a module's content with versioning :) |
386 | 2 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 2 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
387 | 3 | 3 | ||
388 | 4 | fetch:content("http://zorba-tests.28msec.us/modules/ext#1.0", "MODULE") | 4 | fetch:content("http://zorba-tests.28msec.us/modules/ext#1.0", "MODULE") |
389 | 5 | 5 | ||
390 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_random_file.xq' | |||
391 | --- test/rbkt/Queries/zorba/fetch/fetch_random_file.xq 2013-02-07 17:24:36 +0000 | |||
392 | +++ test/rbkt/Queries/zorba/fetch/fetch_random_file.xq 2013-10-16 22:17:59 +0000 | |||
393 | @@ -1,4 +1,4 @@ | |||
394 | 1 | (: Fetch a random file from the filesystem :) | 1 | (: Fetch a random file from the filesystem :) |
396 | 2 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 2 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
397 | 3 | 3 | ||
398 | 4 | fetch:content("http://zorba-tests.28msec.us/random-file", "SOME_CONTENT") | 4 | fetch:content("http://zorba-tests.28msec.us/random-file", "SOME_CONTENT") |
399 | 5 | 5 | ||
400 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_schema1.xq' | |||
401 | --- test/rbkt/Queries/zorba/fetch/fetch_schema1.xq 2013-02-07 17:24:36 +0000 | |||
402 | +++ test/rbkt/Queries/zorba/fetch/fetch_schema1.xq 2013-10-16 22:17:59 +0000 | |||
403 | @@ -1,5 +1,5 @@ | |||
404 | 1 | (: Fetch a schemas's content :) | 1 | (: Fetch a schemas's content :) |
406 | 2 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 2 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
407 | 3 | 3 | ||
408 | 4 | fn:parse-xml( | 4 | fn:parse-xml( |
409 | 5 | fetch:content("http://zorba-tests.28msec.us/modules/theschema", "SCHEMA") | 5 | fetch:content("http://zorba-tests.28msec.us/modules/theschema", "SCHEMA") |
410 | 6 | 6 | ||
411 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_seekable.xq' | |||
412 | --- test/rbkt/Queries/zorba/fetch/fetch_seekable.xq 2013-06-25 04:43:41 +0000 | |||
413 | +++ test/rbkt/Queries/zorba/fetch/fetch_seekable.xq 2013-10-16 22:17:59 +0000 | |||
414 | @@ -1,4 +1,4 @@ | |||
416 | 1 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 1 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
417 | 2 | 2 | ||
418 | 3 | import module namespace s = "http://zorba.io/modules/string"; | 3 | import module namespace s = "http://zorba.io/modules/string"; |
419 | 4 | 4 | ||
420 | 5 | 5 | ||
421 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_seekable_binary.xq' | |||
422 | --- test/rbkt/Queries/zorba/fetch/fetch_seekable_binary.xq 2013-07-17 07:20:31 +0000 | |||
423 | +++ test/rbkt/Queries/zorba/fetch/fetch_seekable_binary.xq 2013-10-16 22:17:59 +0000 | |||
424 | @@ -1,4 +1,4 @@ | |||
426 | 1 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 1 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
427 | 2 | 2 | ||
428 | 3 | import module namespace b = "http://zorba.io/modules/base64"; | 3 | import module namespace b = "http://zorba.io/modules/base64"; |
429 | 4 | 4 | ||
430 | 5 | 5 | ||
431 | === modified file 'test/rbkt/Queries/zorba/fetch/fetch_some_transcode.xq' | |||
432 | --- test/rbkt/Queries/zorba/fetch/fetch_some_transcode.xq 2012-05-09 21:48:57 +0000 | |||
433 | +++ test/rbkt/Queries/zorba/fetch/fetch_some_transcode.xq 2013-10-16 22:17:59 +0000 | |||
434 | @@ -1,3 +1,3 @@ | |||
436 | 1 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 1 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
437 | 2 | 2 | ||
438 | 3 | fetch:content(resolve-uri("iso-8859-1.txt"), "SOME_CONTENT", "ISO-8859-1") | 3 | fetch:content(resolve-uri("iso-8859-1.txt"), "SOME_CONTENT", "ISO-8859-1") |
439 | 4 | 4 | ||
440 | === modified file 'test/rbkt/Queries/zorba/flwor/flwor24.xq' | |||
441 | --- test/rbkt/Queries/zorba/flwor/flwor24.xq 2013-08-14 12:56:35 +0000 | |||
442 | +++ test/rbkt/Queries/zorba/flwor/flwor24.xq 2013-10-16 22:17:59 +0000 | |||
443 | @@ -1,6 +1,6 @@ | |||
444 | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; |
445 | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; |
447 | 3 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 3 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
448 | 4 | 4 | ||
449 | 5 | declare namespace an = "http://zorba.io/annotations"; | 5 | declare namespace an = "http://zorba.io/annotations"; |
450 | 6 | 6 | ||
451 | 7 | 7 | ||
452 | === modified file 'test/rbkt/Queries/zorba/flwor/flwor25.xq' | |||
453 | --- test/rbkt/Queries/zorba/flwor/flwor25.xq 2013-08-14 12:56:35 +0000 | |||
454 | +++ test/rbkt/Queries/zorba/flwor/flwor25.xq 2013-10-16 22:17:59 +0000 | |||
455 | @@ -1,6 +1,6 @@ | |||
456 | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; |
457 | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; |
459 | 3 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 3 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
460 | 4 | 4 | ||
461 | 5 | declare namespace an = "http://zorba.io/annotations"; | 5 | declare namespace an = "http://zorba.io/annotations"; |
462 | 6 | declare namespace ext = "http://zorba.io/extensions"; | 6 | declare namespace ext = "http://zorba.io/extensions"; |
463 | 7 | 7 | ||
464 | === modified file 'test/rbkt/Queries/zorba/flwor/flwor26.xq' | |||
465 | --- test/rbkt/Queries/zorba/flwor/flwor26.xq 2013-08-14 12:56:35 +0000 | |||
466 | +++ test/rbkt/Queries/zorba/flwor/flwor26.xq 2013-10-16 22:17:59 +0000 | |||
467 | @@ -1,6 +1,6 @@ | |||
468 | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; |
469 | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; |
471 | 3 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 3 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
472 | 4 | import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"; | 4 | import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"; |
473 | 5 | import module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"; | 5 | import module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"; |
474 | 6 | 6 | ||
475 | 7 | 7 | ||
476 | === modified file 'test/rbkt/Queries/zorba/flwor/flwor27.xq' | |||
477 | --- test/rbkt/Queries/zorba/flwor/flwor27.xq 2013-08-14 12:56:35 +0000 | |||
478 | +++ test/rbkt/Queries/zorba/flwor/flwor27.xq 2013-10-16 22:17:59 +0000 | |||
479 | @@ -1,6 +1,6 @@ | |||
480 | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; |
481 | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; |
483 | 3 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 3 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
484 | 4 | 4 | ||
485 | 5 | declare namespace an = "http://zorba.io/annotations"; | 5 | declare namespace an = "http://zorba.io/annotations"; |
486 | 6 | declare namespace ext = "http://zorba.io/extensions"; | 6 | declare namespace ext = "http://zorba.io/extensions"; |
487 | 7 | 7 | ||
488 | === modified file 'test/rbkt/Queries/zorba/flwor/flwor28.xq' | |||
489 | --- test/rbkt/Queries/zorba/flwor/flwor28.xq 2013-08-14 20:37:19 +0000 | |||
490 | +++ test/rbkt/Queries/zorba/flwor/flwor28.xq 2013-10-16 22:17:59 +0000 | |||
491 | @@ -1,6 +1,6 @@ | |||
492 | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; |
493 | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; |
495 | 3 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 3 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
496 | 4 | import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"; | 4 | import module namespace ddl = "http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl"; |
497 | 5 | import module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"; | 5 | import module namespace dml = "http://www.zorba-xquery.com/modules/store/dynamic/collections/dml"; |
498 | 6 | 6 | ||
499 | 7 | 7 | ||
500 | === modified file 'test/rbkt/Queries/zorba/jsoniq/json_doc_1.xq' | |||
501 | --- test/rbkt/Queries/zorba/jsoniq/json_doc_1.xq 2013-08-14 15:16:42 +0000 | |||
502 | +++ test/rbkt/Queries/zorba/jsoniq/json_doc_1.xq 2013-10-16 22:17:59 +0000 | |||
503 | @@ -1,5 +1,5 @@ | |||
504 | 1 | 1 | ||
506 | 2 | import module namespace fetch="http://www.zorba-xquery.com/modules/fetch"; | 2 | import module namespace fetch="http://zorba.io/modules/fetch"; |
507 | 3 | 3 | ||
508 | 4 | import module namespace file="http://expath.org/ns/file"; | 4 | import module namespace file="http://expath.org/ns/file"; |
509 | 5 | 5 | ||
510 | 6 | 6 | ||
511 | === modified file 'test/rbkt/Queries/zorba/jsound/jsound-missing-schema.spec' | |||
512 | --- test/rbkt/Queries/zorba/jsound/jsound-missing-schema.spec 2013-10-02 22:40:32 +0000 | |||
513 | +++ test/rbkt/Queries/zorba/jsound/jsound-missing-schema.spec 2013-10-16 22:17:59 +0000 | |||
514 | @@ -1,1 +1,1 @@ | |||
516 | 1 | Error: http://zorba.io/errors:ZXQP0025 | 1 | Error: http://zorba.io/modules/uri:URI_UNRESOLVED_OR_NOSTREAM |
517 | 2 | \ No newline at end of file | 2 | \ No newline at end of file |
518 | 3 | 3 | ||
519 | === modified file 'test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-57.xq' | |||
520 | --- test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-57.xq 2013-07-24 09:06:02 +0000 | |||
521 | +++ test/rbkt/Queries/zorba/parsing_and_serializing/parse-fragment-skip-root-57.xq 2013-10-16 22:17:59 +0000 | |||
522 | @@ -1,6 +1,6 @@ | |||
523 | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; | 1 | import module namespace parse-xml = "http://zorba.io/modules/xml"; |
524 | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; |
526 | 3 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 3 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
527 | 4 | 4 | ||
528 | 5 | variable $xmlcontents := fetch:content(resolve-uri("bad.xml")); | 5 | variable $xmlcontents := fetch:content(resolve-uri("bad.xml")); |
529 | 6 | 6 | ||
530 | 7 | 7 | ||
531 | === modified file 'test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-31.xq' | |||
532 | --- test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-31.xq 2013-07-24 09:06:02 +0000 | |||
533 | +++ test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-31.xq 2013-10-16 22:17:59 +0000 | |||
534 | @@ -2,7 +2,7 @@ | |||
535 | 2 | Test x:parse() with streamable input | 2 | Test x:parse() with streamable input |
536 | 3 | :) | 3 | :) |
537 | 4 | 4 | ||
539 | 5 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 5 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
540 | 6 | import module namespace x = "http://zorba.io/modules/xml"; | 6 | import module namespace x = "http://zorba.io/modules/xml"; |
541 | 7 | import schema namespace opt = "http://zorba.io/modules/xml-options"; | 7 | import schema namespace opt = "http://zorba.io/modules/xml-options"; |
542 | 8 | 8 | ||
543 | 9 | 9 | ||
544 | === modified file 'test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-33.xq' | |||
545 | --- test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-33.xq 2013-07-24 09:06:02 +0000 | |||
546 | +++ test/rbkt/Queries/zorba/parsing_and_serializing/parse-xml-fragment-33.xq 2013-10-16 22:17:59 +0000 | |||
547 | @@ -1,6 +1,6 @@ | |||
548 | 1 | import module namespace x = "http://zorba.io/modules/xml"; | 1 | import module namespace x = "http://zorba.io/modules/xml"; |
549 | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; | 2 | import schema namespace opt = "http://zorba.io/modules/xml-options"; |
551 | 3 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 3 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
552 | 4 | 4 | ||
553 | 5 | variable $xmlcontents := fetch:content(resolve-uri("wiki.xml")); | 5 | variable $xmlcontents := fetch:content(resolve-uri("wiki.xml")); |
554 | 6 | 6 | ||
555 | 7 | 7 | ||
556 | === modified file 'test/rbkt/Queries/zorba/string/AnalyzeString/http-client-doc.htm' | |||
557 | --- test/rbkt/Queries/zorba/string/AnalyzeString/http-client-doc.htm 2013-10-16 18:45:10 +0000 | |||
558 | +++ test/rbkt/Queries/zorba/string/AnalyzeString/http-client-doc.htm 2013-10-16 22:17:59 +0000 | |||
559 | @@ -391,7 +391,7 @@ | |||
560 | 391 | </sup> | 391 | </sup> |
561 | 392 | </li> | 392 | </li> |
562 | 393 | <li> | 393 | <li> |
564 | 394 | <a href="www.zorba-xquery.com_modules_fetch.html" title="http://www.zorba-xquery.com/modules/fetch">fetch</a> | 394 | <a href="www.zorba-xquery.com_modules_fetch.html" title="http://zorba.io/modules/fetch">fetch</a> |
565 | 395 | <sup> | 395 | <sup> |
566 | 396 | <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> | 396 | <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> |
567 | 397 | </sup> | 397 | </sup> |
568 | 398 | 398 | ||
569 | === modified file 'test/rbkt/Queries/zorba/xqdoc/moduleDocumentation.xq' | |||
570 | --- test/rbkt/Queries/zorba/xqdoc/moduleDocumentation.xq 2013-10-07 23:26:13 +0000 | |||
571 | +++ test/rbkt/Queries/zorba/xqdoc/moduleDocumentation.xq 2013-10-16 22:17:59 +0000 | |||
572 | @@ -2,7 +2,7 @@ | |||
573 | 2 | 2 | ||
574 | 3 | import module namespace file = "http://expath.org/ns/file"; | 3 | import module namespace file = "http://expath.org/ns/file"; |
575 | 4 | import module namespace xqd = "http://zorba.io/modules/xqdoc"; | 4 | import module namespace xqd = "http://zorba.io/modules/xqdoc"; |
577 | 5 | import module namespace fetch = "http://www.zorba-xquery.com/modules/fetch"; | 5 | import module namespace fetch = "http://zorba.io/modules/fetch"; |
578 | 6 | 6 | ||
579 | 7 | import schema namespace xqdoc = "http://www.xqdoc.org/1.0"; | 7 | import schema namespace xqdoc = "http://www.xqdoc.org/1.0"; |
580 | 8 | 8 | ||
581 | 9 | 9 | ||
582 | === modified file 'test/unit/test_static_context.cpp' | |||
583 | --- test/unit/test_static_context.cpp 2013-06-15 02:57:08 +0000 | |||
584 | +++ test/unit/test_static_context.cpp 2013-10-16 22:17:59 +0000 | |||
585 | @@ -73,7 +73,7 @@ | |||
586 | 73 | 73 | ||
587 | 74 | try | 74 | try |
588 | 75 | { | 75 | { |
590 | 76 | Item lFetched = lSctx->fetch("http://www.zorba-xquery.com/modules/fetch", "MODULE"); | 76 | Item lFetched = lSctx->fetch("http://zorba.io/modules/fetch", "MODULE"); |
591 | 77 | 77 | ||
592 | 78 | return !lFetched.isNull(); | 78 | return !lFetched.isNull(); |
593 | 79 | } | 79 | } |
594 | @@ -128,7 +128,7 @@ | |||
595 | 128 | 128 | ||
596 | 129 | try | 129 | try |
597 | 130 | { | 130 | { |
599 | 131 | Item lFetched = lSctx->fetchBinary("http://www.zorba-xquery.com/modules/fetch", "MODULE"); | 131 | Item lFetched = lSctx->fetchBinary("http://zorba.io/modules/fetch", "MODULE"); |
600 | 132 | 132 | ||
601 | 133 | size_t s; | 133 | size_t s; |
602 | 134 | return !lFetched.isNull() && lFetched.getBase64BinaryValue(s); | 134 | return !lFetched.isNull() && lFetched.getBase64BinaryValue(s); |
Validation queue starting for the following merge proposals: /code.launchpad .net/~zorba- coders/ zorba/bug- 1189789/ +merge/ 191513
https:/
Progress dashboard at http:// jenkins. lambda. nu/view/ ValidationQueue