W3C home > Mailing lists > Public > public-appformats@w3.org > August 2006

Re: Decouple XBL2 From CSS

From: Mark Baker <distobj@acm.org>
Date: Thu, 3 Aug 2006 22:08:53 -0400
Message-ID: <c70bc85d0608031908r270be70dyf680fb39a73b12c9@mail.gmail.com>
To: "Ian Hickson" <ian@hixie.ch>
Cc: public-appformats@w3.org

On 8/3/06, Ian Hickson <ian@hixie.ch> wrote:
> Providing multiple languages would double the load on implementors,
> implementations, testers, documentors, and me [...]

Only if the languages were required.  A selector syntax is pretty core
to XBL, and I agree with you that it would be overly burdensome on
implementations to require support for multiple syntaxes.  So I'm
happy that the default be CSS selectors, since it's the most widely
understood selector syntax that exists today.

But I see no reason why other selector syntaxes couldn't be supported.
 If an author wanted to use XPath, we'd just need a hook to let them,
something like;

<xbl:binding selectorType="xpath" element="/foo/bar[2]" > ...

Support of XPath would be optional, of course, so the implementation
burden on those who just want to support the default, CSS, would be
negligible.  The specification, test cases and documentation for
selectorType should be trivial too.

Mark.
Received on Friday, 4 August 2006 02:10:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:10:20 GMT