Re: CSS selectors are syntactic sugar for XPath expressions

Alexander Johannesen <[email protected]>
Newsgroups gmane.text.xml.devel
Message-ID <CAF89bCDYXi5KQzLtCzA2ng+9R9qHNBLPnSU=b4RJHRE+xeQRBw@mail.gmail.com>
The whole point of the design of CSS is that important data (as in
terms of styling) resides in classes and id's, it was designed
specifically not to deal with textual content itself, both in terms of
complexity added and the simplicity of the language. So, if you have
control over how the XML is written, it's easy;

   <longitude class="coord">...</longitude>
   <latitude class="coord">...</latitude>

Select it with "person.coord", and off you go. The CSS styling
interpretation isn't locked to a "each selected bunch are treated as
individual items, and then iterated over". It's up to you in how you
work with these selectors and compound selections. Often they *are*
treated as a group selection, often for performance reasons.


Cheers,

Alex
-- 
 Information Alchemist, tone modulator, swords master
 thinkplot.org | linkedin.com/in/shelterit | sheltered-objections.blogspot.com

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: [email protected]
subscribe: [email protected]
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.