Hi Jim et al,
I work on a CSS2.1 parsing and query system for Scheme called SCSS
(http://www.nongnu.org/scss/) that, like WebIt!, features integration
with SXML. The existence of WebIt! was recently brought to my
attention, and I particularly liked the stylesheet representation you
guys use -- so much so that I'm planning to make SCSS use it in the
next release. The only problem is that WebIt!'s representation only
covers CSS1 selector syntax, which means that I need to come up with a
way to handle the stuff introduced in 2.1, specifically attribute
selectors and the contextual selector modifiers + and >.
I don't know if you're planning to support CSS2.1 in the future, but
I thought we could discuss some possible additions to your format.
For + and >, I think it's probably sufficient to prepend the symbols
in a contextual selector list with + or > respectively, as needed --
e.g.,
(// foo bar +baz)
or
(// foo >bar baz)
For attribute selectors, I propose two forms. A verbose form, something like:
(attrib <match-type> <name> <value>)
(attrib <type> <match-type> <name> <value>)
e.g.,
(attrib = foo bar)
(attrib (id elem z98y) = foo bar)
...as well as shorter form, like
elem[foo|=val]
Thoughts?
Regards,
Julian
|