ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] Re: Can XLink be fixed?
by Robin Berjon other posts by this author
Aug 16 2002 9:11AM messages near this date
Re: [xml-dev] Re: Can XLink be fixed? | Re: [xml-dev] Re: Can XLink be fixed?
Norman Walsh wrote:
>  / "Simon St.Laurent" <simonstl@[...].com> was heard to say:
>  | Sure, though I'll admit that one of my projects with MOE is supporting
>  | CSS both as an annotation and as an explicit CSS-in-XML syntax.  
>  
>  CSS-in-XML sounds like a good idea. Let's see, it's a bag of
>  properties attached to a CSS Selector. (<rant>What happened to the
>  Last Call comments to rename the "Selectors" document[1] to "CSS3
>  Selectors". More paperwork to dig through...Sigh.</rant>)
>  
>  The bag of properties thing would be easy to deal with, but the set of
>  selectors is starting to look awfully ugly. "nth-last-child()"...Eeek!?
>  Simplicity is loosing everywhere, ain't it?

Do we really want or need to convert those selectors to XML? CSS-in-XML 
is a discussion that surfaces every three to six months on a number of 
mailing lists. Basically it would seem that you want to convert the 
selectors to XML if your goal is to munge them using basic XML tools 
(say display them with syntax colouring using XSLT) but you don't if 
you're looking for an easy way to decorate a tree (and would prefer an 
XML syntax ovre SAC, which is a largish underspecified API, at least 
compared to SAX).

Converting CSS selectors to XPath shouldn't be excessively complex 
provided we allow ourselves to use a few extension functions where there 
is no possible mapping and drop the interactivity bits. Most of the 
structural selectors can be mapped directly, and a number of the more 
complex-looking ones can probably be converted to predicates revolving 
around position() and a little arithmetic. Imho the useful 80% of CSS 
selectors can be covered by XPath, with the exclusion of class that will 
probably need an extension function by itself.

-- 
Robin Berjon <robin.berjon@[...].fr> 
Research Engineer, Expway


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:

Rick Jelliffe
Henry S. Thompson
Norman Walsh
Norman Walsh
Paul Prescod
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Robin Berjon
=?iso-8859-1?Q?Bill_de_h=D3ra?=
Simon St.Laurent
Paul Prescod
Simon St.Laurent
Robin Berjon
Simon St.Laurent
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
J. David Eisenberg
Norman Walsh
J. David Eisenberg
Robin Berjon
Norman Walsh
Simon St.Laurent
Norman Walsh
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Shane McCarron
Simon St.Laurent
Joe English
Norman Walsh
Simon St.Laurent
Keith W. Boone
Arjun Ray
Arjun Ray
Rick Jelliffe
Simon St.Laurent
Simon St.Laurent
Tim Bray
Simon St.Laurent
Tim Bray
Simon St.Laurent
Elliotte Rusty Harold
Simon St.Laurent
Lars Marius Garshol
Bob DuCharme
Elliotte Rusty Harold
Didier PH Martin
Elliotte Rusty Harold
Simon St.Laurent
Elliotte Rusty Harold
Norman Walsh
Tim Bray
Simon St.Laurent
Tim Bray
Simon St.Laurent
Simon St.Laurent
Simon St.Laurent
Ann Navarro
Simon St.Laurent
Elliotte Rusty Harold
Simon St.Laurent
Simon St.Laurent
Elliotte Rusty Harold
Simon St.Laurent
John Cowan
Rick Jelliffe
Simon St.Laurent
John Cowan
Simon St.Laurent
John Cowan
Simon St.Laurent
Mike Champion
Didier PH Martin
John Cowan
Mike Champion
Simon St.Laurent
Norman Walsh
Tim Bray
Simon St.Laurent
Rick Jelliffe
Norman Walsh
Masayasu Ishikawa
John Cowan
Jeff Rafter

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved