[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: The XForms/XPath paradox

Subject: RE: The XForms/XPath paradox
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 22 May 2008 18:09:35 +0100
RE:  The XForms/XPath paradox
> Why is it that the XForms people have to invent the 
> "boolean-from-string" XPath extension function?
> 
> What is missing, or has been forgotten, from our beloved 
> XPath 2 (& XQuery Functions & Operators library) to require 
> such an extension function and that which is not core?

Like most of the XForms extension functions, this was in XForms 1.0, which
came out in 2003, long before XPath 2.0 was ready. The functionality is
achieved in XPath 2.0 using the xs:boolean() constructor function.
Generally, I think nearly all the extension functions in XForms either do
something that's relatively easy in XPath 2.0 (but hard in XPath 1.0) or do
something (like instance() or property()) that's very specific to the XForms
environment.

It's unfortunate that XForms chose not to put these functions in their own
namespace (but then, XSLT set a bad precedent). It's also unfortunate that
at least one of the functions (seconds-from-dateTime()), has the same name
but different semantics from a function introduced into the core by XPath
2.0. 

Michael Kay
http://www.saxonica.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.