[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: CSS does not use the XML syntax. Why not?

  • From: "Robert de Wilde" <wilde825@p...>
  • To: "'Thomas Lord'" <lord@e...>,"'Micah Dubinko'" <Micah.Dubinko@m...>
  • Date: Mon, 23 Jun 2008 20:28:58 +0200

RE:  CSS does not use the XML syntax.  Why not?
I've been working with the XML/XPath/XSLT/CSS combination for applying
styling since 2007, starting with my first ideas about it in this post:
http://lists.w3.org/Archives/Public/www-style/2002Dec/0074.html

I would recommend it; It's simple to create, simple to edit, simple to
maintain, simple to read, and simple to share.

You'll have to make a mix of applying it inline and through regular CSS
selectors. Inline isn't pretty for SEO, so some 'intelligence' would be nice
(though I hadn't the time and motivation to build this).

I'll consider sharing my framework, but there's no really need to cause you
can create it in just a few hours depending on what language you use. PHP is
very simple using the default DOM-modules+XSL(T).

Good luck!

-----Original Message-----
From: Thomas Lord [mailto:lord@e...] 
Sent: maandag 23 juni 2008 21:05
To: Micah Dubinko
Cc: Costello, Roger L.; xml-dev@l...
Subject: Re:  CSS does not use the XML syntax. Why not?

Micah Dubinko wrote:
> You could put a slight twist on the question and ask
>
> "Why don't any of the versions of CSS selectors use any of the versions of
> XPath?"
>   

History, again.   CSS precedes XPath by two years.


> (Not advocating any position, just interested in the discussion)
>   

Does it need advocacy?  A subset of XPath is surely isomorophic
to selectors.  The parsimony of sharing syntaxes, semantics, and
implementations would likely work well.   How could anyone
seriously object, were it practical to make that change?   (The
impracticality is serious, though:  we'll have browsers standardized
on the current syntax for quite a while to come I'm sure.  Changes
that cause more browsers to implement CSS *correctly* are surely
a higher priority :-)

Were one to attempt an XML syntax for stylesheets (and XSLT transform
to ordinary CSS syntax) it would be interesting to see if the XML
version could use XPath.  (Having XPath <-> XML transforms as
primitive operations or a standard library in XSLT and XQuery
would be handy for this and many purposes.)

An XML/XPath solution could (this is quite speculative) be a
very interesting tool.   For example, given an XML database,
libraries of styles could be associated with various parts of some
of the schema present in the database.   Then, pages could be
synthesized on the fly -- along with customized style sheets for
those pages.   One can imagine systems that let users program
up new queries interactively, on the fly, and then then render
reports from those queries very smartly - composing various
XML-ized style sheet fragments into a complete stylesheet which,
as a final step, gets transformed to the syntax browsers like.
Micro-formats on steroids, so to speak.

-t


_______________________________________________________________________

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: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

smime.p7s



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.