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

RE: XML design of ((a and b) or c)

  • From: "Klotz, Leigh" <Leigh.Klotz@x...>
  • To: "Michael Kay" <mike@s...>, "Rick Marshall" <rjm@z...>
  • Date: Fri, 15 Dec 2006 15:35:28 -0800

xforms if
Yes, I think that's the same problem I pointed out.  We didn't see a way
to add if() other than as an extension function, and adding the ternary
operator semantics (conditional evaluation) as an XPath extension
function doesn't appear possible, and adding it outside the XPath
extension function mechanism would have made an incompatible XPath. 

On the nighmare issue, originally all XForms XPath extension functions
were in the XForms namespace, but we removed that as a result of public
comments that showed that the XPath 1.0 Recommendation did not allow
qualified names, and that neither XSLT nor XML Signature W3C
recommendations specified qualified names as extension functions.  

We contacted the XPath functions task force and got assurance that
extension functions would be namespaced in XPath 2.0.  But the botch is
with XPath 1.0 not allowing them.  (I realize that this flies in the
face of the extension function implementation of just about every XPath
implementation on the planet, but back in spec land, we had to be
compliant.)

Personally, I would welcome any helpful suggestions you have about
upward compatibility, with XForms 1.1 and with XPath 2.0.

Leigh.

-----Original Message-----
From: Michael Kay [mailto:mike@s...] 
Sent: Friday, December 15, 2006 3:24 PM
To: Klotz, Leigh; 'Rick Marshall'
Cc: 'Ken North'; xml-dev@l...
Subject: RE:  XML design of ((a and b) or c)

> 
> XForms added one to its XPath functions, but it doesn't (and 
> can't) do conditional evaluation. 
> http://www.w3.org/TR/xforms/slice7.html#fn-if

Worse, the XForms if() function allows (and arguably requires) both the
"then" and "else" expressions to be evaluated regardless whether the
"condition" parameter is true or false.

(There's also a forwards compatibility nightmare looming because XForms
failed to put its "if" function in a private namespace: it now clashes
with
the XPath 2.0 "if" construct).

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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.