[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|