Paul, Could you please investigate why William's program doesn't stream after applying the patch below?
I understand why it didn't stream in the trunk (i.e. with fn:tokenize) but using the string:split function, there should be nothing that prevents it from streaming. I guess the problem is somewhere in the implementation of the split function (in src/runtime/strings/strings_impl.cpp).
Paul, Could you please investigate why William's program doesn't stream after applying the patch below? strings/ strings_ impl.cpp) .
I understand why it didn't stream in the trunk (i.e. with fn:tokenize) but using the string:split function, there should be nothing that prevents it from streaming. I guess the problem is somewhere in the implementation of the split function (in src/runtime/
=== modified file 'modules/ org/expath/ ns/file. xq' org/expath/ ns/file. xq 2011-10-19 05:09:31 +0000 org/expath/ ns/file. xq 2012-02-01 20:39:39 +0000 expath. org/ns/ file";
--- modules/
+++ modules/
@@ -23,6 +23,8 @@
:)
module namespace file = "http://
+import module namespace string = "http:// www.zorba- xquery. com/modules/ string"; www.w3. org/2010/ xslt-xquery- serialization"; www.zorba- xquery. com/annotations"; www.zorba- xquery. com/options/ versioning"; text($file, $encoding) $content, "\n") split(file: read-text( $file, $encoding), "f")
+
import schema namespace output = "http://
declare namespace ann = "http://
declare namespace ver = "http://
@@ -424,8 +426,7 @@
$encoding as xs:string
) as xs:string*
{
- let $content := file:read-
- return fn:tokenize(
+ string:
};
(:~