From: Adam R. <ad...@ex...> - 2016-09-14 09:44:29
|
> 4. uploaded the QT3-test-suite to /db/QT3-test-suite, to reflect the > $path variable defined in fots.xq line 12, but eXide complained of a > syntax error on this line: > > > error found while executing expression: > org.exist.xquery.XPathException: err:XPST0003 expecting semicolon ';', > found ':' [at line 12, column 46] > > 5. I worked around the error by deleting the "external" keyword from > line 12. Odd that the "external" keyword would raise an error, no? > The line in question: > > https://github.com/adamretter/fots-basex/blob/exist/fots.xq#L12 XQuery 1.0 only allowed you to declare a variable as either static, i.e. with a known value or as external. XQuery 3.0 allowed you to do that but also to specify a default value for an external variable if no value is given to be injected from an external context. I suspect that eXist hasn't been updated to 3.0 spec here and that the problem is not the `external` keyword but rather the default value that appears after that. > Anyway, next, eXide reported an error that I haven't been able to overcome yet: > >> error found while loading module fots: Error while loading module fots.xqm: error found while loading module env: Error while loading module fots-environment.xqm: prefix 'file' bind to 'http://exist-db.org/xquery/file' > > I took a look at fots.xqm, and it imports the expath file module: > > https://github.com/adamretter/fots-basex/blob/exist/fots-environment.xqm#L16 > > Thinking that your implementation of the expath file module might do > the trick, I cloned > https://github.com/adamretter/exist-expath-file-module and built the > xar as directed in the readme. But when I tried to deploy the .xar > file via Dashboard > Package Manager, I got this error: > >> Inconsistent package descriptor, the JAR file is not in the package: ntinuations-library_2.11-1.0.1.jar > > The closest name I can find to this is in > target/file-module-1.0-SNAPSHOT-bin/lib/scala-continuations-library_2.11-1.0.1.jar, > but I don't know how to overcome the error. Can you suggest a way > forward? I've pasted in my console log from the maven builds here: > http://pastebin.com/y54v4q3s. Ah right! Yes so unfortunately I also had problems with generating Xar's; I am using Claudius's XAR plugin for Maven, but unfortunately it seems to scramble the names of the Xar files inside the exist.xml file of the Xar package. You can manually fix it by editing the exist.xml file inside the Xar and ensuring that each <jar> entry correctly matches the name of a Jar file in the package. You will see that most have lost the first few characters from their file name due to some bug in the plugin. > Should I keep trying to get the expath file module installed & > registered with the namespace prefix "file" (I fear this would collide > with eXist's own file module with this namespace prefix), or should I > drop the idea of installing the expath file module and just adapt the > code to use eXist's file module? You can likely use the EXPath module, but you will need to unregister the eXist file module from conf.xml and restart first. > Thanks for any guidance, > Joe > > On Tue, Jan 19, 2016 at 5:02 AM, Adam Retter <ad...@ex...> wrote: >> Hey Joe, >> >> Good question! >> >> Ultimately it is down to a lack of resources to be able to do this. >> However, the good news is that you could help ;-) >> >> Leo from BaseX started a test-suite harness for the W3C XQuery Test >> Suite, he wrote it in XQuery for BaseX. I started porting it over to >> eXist early last year, but never had the time or pressing need to >> complete it. My branch with the changes for eXist is here - >> https://github.com/adamretter/fots-basex/tree/exist. Whilst a work in >> progress, I think I was able to get some tests running. The nice thing >> is that EXPath uses the same Test Suite format as W3C, so if we can >> get a test harness working, we can run many tests :-) >> >> Perhaps this is something you would like to pick up and work on? I >> could certainly offer guidance if you get stuck... but well I think >> you are probably a pretty good XQuery programmer ;-) >> >> Cheers Adam. >> >> On 19 January 2016 at 04:33, Joe Wicentowski <jo...@gm...> wrote: >>> Hi all, >>> >>> I notice eXist isn't included in this round of tests. I'd be >>> interested to know what are the barriers or obstacles to running the >>> tests and participating in these exercises? >>> >>> I imagine the release of eXist 3.0 is a higher priority for the >>> project than passing a not-yet-final spec, among others. But I think >>> that eXist's presence at some point would help the WG's work and >>> strengthen the spec's goal of being supported by many implementations. >>> Even if eXist doesn't promise complete XQ3.1 coverage (heck, they keep >>> adding new features like templates!), the areas it does support are, I >>> think, quite well developed - and this hard work would be worth >>> celebrating through inclusion in these tests. >>> >>> Joe >>> >>> >>> ---------- Forwarded message ---------- >>> From: O'Neil Delpratt <on...@sa...> >>> Date: Mon, Jan 18, 2016 at 9:40 AM >>> Subject: Reporting on QT3 test results for the 3.1 Specs >>> To: pub...@w3... >>> >>> >>> Dear All, >>> >>> I have re-generated the reports on the implementation results received >>> for the QT3 test suite. See update: >>> http://dev.w3.org/2011/QT3-test-suite/ReportingResults31/report.html >>> We now have three implementations for XQuery 3.1, with one being >>> anonymous. However we only have one for XPath 3.1. >>> >>> We have been working on the main page today. Specifically the stats on >>> the optional features. We found that there were some overlap reported >>> in the passes and failures. For example under ‘staticTyping’ it is >>> reported that there are 75 test not being passed by any >>> implementation. Under the 'higherOrderFunction’ feature we have 18 >>> test passed by no implementation. If you inspect the >>> higherOrderFunction tests more closely we will see that 17 of these >>> tests depend on staticTyping therefore the underlying reason for the >>> higherOrderFunction failures is to do with staticTyping. With what I >>> have said in mind we think it helpful to show the combination of >>> optional features for the test case. >>> >>> I welcome feedback on your preference of presentation on the Optional >>> Features section. I find 2) much more useful: >>> >>> 1) http://dev.w3.org/2011/QT3-test-suite/ReportingResults31/report.html#optFeatures >>> 2) http://dev.w3.org/2011/QT3-test-suite/ReportingResults31/report.html#optComboFeatures >>> >>> >>> Using 1) or 2) we observe that we have 75 tests with dependency on >>> staticTyping not being passed by any implementation (including those >>> with combinations of other dependencies). I would like to ask if it >>> still merits having tests on static typing? >>> >>> kind regards, >>> >>> >>> ------------------------------- >>> O'Neil Delpratt >>> Software Developer, Saxonica Limited >>> Email: on...@sa... >>> Twitter: https://twitter.com/ond1 >>> Tel: +44 118 946 5894 >>> Web: http://www.saxonica.com >>> Saxonica Community site: http://dev.saxonica.com >>> Bug tracking site: https://saxonica.plan.io/ >>> >>> ------------------------------------------------------------------------------ >>> Site24x7 APM Insight: Get Deep Visibility into Application Performance >>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month >>> Monitor end-to-end web transactions and take corrective actions now >>> Troubleshoot faster and improve end-user experience. Signup Now! >>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 >>> _______________________________________________ >>> Exist-development mailing list >>> Exi...@li... >>> https://lists.sourceforge.net/lists/listinfo/exist-development >> >> >> >> -- >> Adam Retter >> >> eXist Developer >> { United Kingdom } >> ad...@ex... >> irc://irc.freenode.net/existdb -- Adam Retter eXist Developer { United Kingdom } ad...@ex... irc://irc.freenode.net/existdb |