First try at 15.beta with eXist 2
Posted: Thu May 30, 2013 3:26 pm
Hi,
I am testing some debug scenario with 15 beta and eXist 2, Saxon-PE 9.5.0.1, enabling xQuery 3.0.
It is great to see that we have much more flexiblity while importing xqm modules!
It seems that there is still a few things that prevents me to run real-world modules (running under eXist):
1 - unknown protocol: java
With this type of declaration :
import module namespace counter = "http://exist-db.org/xquery/counter" at "java:org.exist.xquery.modules.counter.CounterModule";,
I get this error
System ID: oxygen:/eXist$eXist rest/db/es.common/modules/session.xqm
Severity: fatal
Description: XQST0059: java.net.MalformedURLException: unknown protocol: java
Start location: 21:0
Is there a way to enable such java modules ?
2 - eXist xQuery Update extention
This does not seem to be enabled. For instance, something like "update value $item/@is-valid with 'true'" in the code will throw :
System ID: oxygen:/eXist$eXist rest/db/es.common/modules/process-utils.xqm
Severity: fatal
Description: XPST0003: expected ")", found name "value"
Start location: 180:0
URL: http://www.w3.org/TR/xpath20/#ERRXPST0003
3- default modules
prefix for built-in modules (defined in conf.xml) do not need to be declared when runnning code with eXist. Is there a way to allow this under oXygen as well. Actually, I get a lot of 'XPST0081 Prefix ... has not been declared' errors, and would like to avoid having to re-declare them for all modules ; )
That's all for now
Cheers,
C.
I am testing some debug scenario with 15 beta and eXist 2, Saxon-PE 9.5.0.1, enabling xQuery 3.0.
It is great to see that we have much more flexiblity while importing xqm modules!
It seems that there is still a few things that prevents me to run real-world modules (running under eXist):
1 - unknown protocol: java
With this type of declaration :
import module namespace counter = "http://exist-db.org/xquery/counter" at "java:org.exist.xquery.modules.counter.CounterModule";,
I get this error
System ID: oxygen:/eXist$eXist rest/db/es.common/modules/session.xqm
Severity: fatal
Description: XQST0059: java.net.MalformedURLException: unknown protocol: java
Start location: 21:0
Is there a way to enable such java modules ?
2 - eXist xQuery Update extention
This does not seem to be enabled. For instance, something like "update value $item/@is-valid with 'true'" in the code will throw :
System ID: oxygen:/eXist$eXist rest/db/es.common/modules/process-utils.xqm
Severity: fatal
Description: XPST0003: expected ")", found name "value"
Start location: 180:0
URL: http://www.w3.org/TR/xpath20/#ERRXPST0003
3- default modules
prefix for built-in modules (defined in conf.xml) do not need to be declared when runnning code with eXist. Is there a way to allow this under oXygen as well. Actually, I get a lot of 'XPST0081 Prefix ... has not been declared' errors, and would like to avoid having to re-declare them for all modules ; )
That's all for now
Cheers,
C.