[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 17:12:06 -0800

RE:  XML design of ((a and b) or c)
Thank you; I'll take this off xml-dev and onto www-forms. Leigh. 

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

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

I think one useful idea would be to enable a function prefix (or absence
of
a prefix) to be bound essentially to a search path containing multiple
namespaces. The WG rejected this notion when I proposed it, but that's
because I presented it badly. In fact I think it's currently legal: we
don't
constrain how you build a library of functions and assign them to a
namespace, and one way of doing it is to assemble a new namespace from
multiple existing namespaces with a priority rule for resolving any
clashes:
a sort of "virtual function namespace". That mechanism would allow you
to
put the XForms functions in a separate namespace and then allow the user
to
bind a prefix to a URI that identifies a search path containing first
the
XForms functions and then the XPath 2.0 functions.

That leaves "if", which is a nasty problem. Technically you can probably
disambiguate the XForms function from the XPath 2.0 conditional
expression
by lookahead based on the presence of "then" after the ")", but that's
difficult to specify, and adds yet another nasty glitch to XPath
parsing.
Orbeon Forms has this problem because it already uses XPath 2.0, and I
think
it simply forces the user to prefix the "if" function.

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.