XForms W3C suite and XPath Functions in Orbeon
Posted by
nvdbleek on
Jan 12, 2010; 9:20pm
URL: https://discuss.orbeon.com/XForms-W3C-suite-and-XPath-Functions-in-Orbeon-tp1012497.html
Hi Erik, Alessandro, and others,
As you probably already know, I'm working on a test harness for the XForms 1.1 test suite. I reworked almost everything compared to what I had at the last XForms WG FtF meeting. The tests now run directly from within the browser. But the main difference is that they are now written in a simple XML format. Currently I've written the tests for Chapter 2 and 7. You can find the source at
http://github.com/nvdbleek/com.orbeon.testsuite.w3c if you want to check it out. Please read the Readme.txt to get you up to speed (in fact you have to execute only one ant target). Any comments are welcome.
I added some missing XPath funtions to Orbeon see
http://github.com/nvdbleek/orbeon-formsI also made changes to seconds-from-dateTime() and seconds-to-dateTime() which I want your opinion about before merging them to my master branch of Orbeon (they are currently on
http://github.com/nvdbleek/orbeon-forms/commits/xpath_functions_fixes).
The changes I made are:
1) seconds-from-dateTime(): changed the return type from integer to double (to pass test in testsuite)
http://github.com/nvdbleek/orbeon-forms/commit/1af695f7ee7b933611bc7ed0aff6cf20e64542a52) seconds-to-dateTime(): changed argument type to NUMBER_TYPE -> seconds-to-dateTime((number('NaN')) now returns empty string as specified in the XForms spec
http://github.com/nvdbleek/orbeon-forms/commit/9e35d27bc174bfb59993902b326b10d2dfbeee80Could you please give your opinion about these two fixes? I will then incorporate your remarks and merge them afterwards to my master.
Thanks in Advance,
Nick Van den Bleeken
R&D Manager
Phone: +32 3 821 01 70
Office Fax: +32 3 821 01 71
nick@bleeken.eu
http://www.inventivedesigners.com