and the error message is (after I removed some try - catch in http-client.xq):
<?xml version="1.0" encoding="UTF-8"?>
<E:\xquery_development\zorba_28mai09\release\URI_PATH\com\zorba-xquery\www\modules\converters\html.xq>:85,5: type error [err:XPTY0004]: Cannot treat empty sequence as [NodeXQType documentNode content=[XQType ANY_TYPE_KIND*]].
=================================================
html:parse#1 <http://www.zorba-xquery.com/modules/converters/html>
E:\xquery_development\zorba_28mai09\release\URI_PATH\org\expath\ns\http-client.xq at line 218 column 7
================================================= http:tidy-result#2 <http://expath.org/ns/http-client>
E:\xquery_development\zorba_28mai09\release\URI_PATH\org\expath\ns\http-client.xq at line 151 column 8
================================================= http:send-request#3 <http://expath.org/ns/http-client>
E:\xquery_development\zorba_28mai09\release\URI_PATH\org\expath\ns\http-client.xq at line 177 column 5
================================================= http:send-request#1 <http://expath.org/ns/http-client>
E:\xquery_development\zorba_28mai09\scripts\test.xq at line 30 column 17
i = 27 String http://saxon.sf.net/ is still in the pool
i = 89 String http://www.w3.org/1999/xhtml is still in the pool
Zorba Internal Fatal Error in ..\..\src\store\naive\string_pool.cpp:42:
"count == 0": condition failed: 2 strings remain in the string pool
When I try to load the page http:// www.xqueryfunct ions.com/ xq/functx_ fragment- from-uri. html the http module raises an error, and then zorba crashes at finish with the message "strings still in the pool".
The test looks like: expath. org/ns/ http-client"; request(<http:request method="GET" href="http:// www.xqueryfunct ions.com/ xq/functx_ fragment- from-uri. html"/>);
import module namespace http = "http://
variable $load-result;
$load-result := http:send-
$load-result
and the error message is (after I removed some try - catch in http-client.xq): development\ zorba_28mai09\ release\ URI_PATH\ com\zorba- xquery\ www\modules\ converters\ html.xq> :85,5: type error [err:XPTY0004]: Cannot treat empty sequence as [NodeXQType documentNode content=[XQType ANY_TYPE_KIND*]]. ======= ======= ======= ======= ======= ======= www.zorba- xquery. com/modules/ converters/ html> development\ zorba_28mai09\ release\ URI_PATH\ org\expath\ ns\http- client. xq at line 218 column 7 ======= ======= ======= ======= ======= ======= result# 2 <http:// expath. org/ns/ http-client> development\ zorba_28mai09\ release\ URI_PATH\ org\expath\ ns\http- client. xq at line 151 column 8 ======= ======= ======= ======= ======= ======= request# 3 <http:// expath. org/ns/ http-client> development\ zorba_28mai09\ release\ URI_PATH\ org\expath\ ns\http- client. xq at line 177 column 5 ======= ======= ======= ======= ======= ======= request# 1 <http:// expath. org/ns/ http-client> development\ zorba_28mai09\ scripts\ test.xq at line 30 column 17 saxon.sf. net/ is still in the pool www.w3. org/1999/ xhtml is still in the pool store\naive\ string_ pool.cpp: 42:
<?xml version="1.0" encoding="UTF-8"?>
<E:\xquery_
=======
html:parse#1 <http://
E:\xquery_
=======
http:tidy-
E:\xquery_
=======
http:send-
E:\xquery_
=======
http:send-
E:\xquery_
i = 27 String http://
i = 89 String http://
Zorba Internal Fatal Error in ..\..\src\
"count == 0": condition failed: 2 strings remain in the string pool