- From: Nick Van den Bleeken <Nick_Van_den_Bleeken@inventivegroup.com>
- Date: Thu, 21 Jan 2010 22:58:47 +0100
- To: "public-forms@w3.org" <public-forms@w3.org>
- CC: Erik Bruchez <ebruchez@orbeon.com>
- Message-ID: <98F519CDC2FA6146AE00069E9A1D91FD870604212D@erganix.dc.intranet>
Hi all, I want to ask the opinion of the Working Group members (and other interested people) regarding some possible changes that could be made to the 'XForms 1.2: XPath 2.0 support Module' [1]. In xpath 2.0 the function signatures: xs:decimal seconds-from-dateTime(xs: dateTime) xs: dateTime seconds-to-dateTime(numeric) Would make more sense then: xs:decimal seconds-from-dateTime(xs:string) xs:string seconds-to-dateTime(numeric) We opted at the last FtF meeting for xs:string instead of xs: dateTime for backwards compatibility with XForms 1.1. But we have an XPath version number attribute on model which can put the XForms engine in XPath 1.0 compatibility mode, we could say that XForms functions return types matching the XForms 1.1 types if xpath-version="1.0". Otherwise, the XPath 2.0-compatible signatures are used (with xs: dateTime). Migrating an XPath 1.0 form to XPath 2.0 will likely require some changes to a form anyway, and more precise types will ensure more power and easier detection of errors. All input is, as always, welcome. Regards, Nick Van den Bleeken R&D Manager Phone: +32 3 821 01 70 Office Fax: +32 3 821 01 71 Nick_Van_den_Bleeken@inventivegroup.com<mailto:Nick_Van_den_Bleeken@inventivegroup.com> http://www.inventivedesigners.com<http://www.inventivedesigners.com/> 1: http://www.w3.org/MarkUp/Forms/specs/XForms1.2/modules/xpath20/index-all.html PS: Adding an example with a dateTime with fractional seconds would be welcome too, before running the test suite I always thought the result was rounded down to an integer (e.g.: '1970-01-01T00:00:00.001Z' returns 0.001). ________________________________ Inventive Designers' Email Disclaimer: http://www.inventivedesigners.com/email-disclaimer -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. --
Received on Thursday, 21 January 2010 21:59:28 UTC