Archive for the ‘xsl’ Category
css selectors
Posted by detour1999 | Filed under css, nerdly, xsl
okay…
here’s something I’ve been thinking about.
XHTML is just a specific flavor of XML, right?
Furthermore, valid HTML is almost valid XML (aside from some non-closed tags, like <hr>, <br> etc..)
CSS uses selectors to chose which parts of the markup to affect, essentially returning a set of nodes based on a selector.
XPath queries return a set of nodes based on that query.
Why can’t we use XPath queries as CSS selectors?
I know the obvious answer is that it doesn’t support it… I guess my question is why not?
I know, this sounds a lot like XSL…
but not.
I just want the selectors that XSL has for CSS.
Can anyone tell me why that’s a bad idea?
-d.