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

Re: XSLT vs. CSS (Re: Indexing)


css versus xsl
On Wed, 9 Jul 2003, Simon St.Laurent wrote:
> At 10:26 AM 7/9/2003 -0400, Mike Kozlowski wrote:

> >My point was, and is, simply that XSLT and CSS are solving different
> >problems entirely, and don't directly compete in any way.  Is that a
> >statement with which you can agree?
>
> No.  XSLT was designed for formatting-by-transformation, while CSS was
> designed for formatting-by-annotation.
> That may not feel like competition to you, but to people who are primarily
> interested in the formatting, it's competition.

I just can't see that.  Historically (in both XSL and DSSSL),
transformation and formatting have been viewed as complementary to each
other; and practically, the things that XSLT does aren't the things that
CSS does.

Consider again the example page I mentioned before
(http://www.klio.org/mlk/example.xml).  In that page, the most useful
contributions of XSLT are to:

1.  Sort the output
2.  Produce summary data
3.  Apply header/footer-style templating

The most useful contributions of CSS are to:

1.  Control the positioning of elements
2.  Control the properties of text blocks (color, spacing, margin, etc.)

The things that XSLT is doing simply can't be done by CSS, at all, ever.
The competition to XSLT would be PHP/Perl/JSP/JavaScript and XML
libraries.

The things that CSS is doing can't be done by XSLT alone, either.  You
could use XSLT to target inherently-styled vocabularies like HTML 3.2 or
XSL-FO, yes, but in that case it's XSL-FO and HTML 3.2 that are replacing
CSS.

If you want to convince me that XSLT and CSS compete directly, you need to
show me how CSS could do what XSLT is doing, and vice versa.

-- 
Mike Kozlowski
http://www.klio.org/mlk/


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.