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

RE: XSLT vs. CSS (Re: Indexing)


download models css plane
Hi Simon,

Simon said:
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.

Didier replies:
Yes it is competing but not with the same advantages. CSS is more limited
due to its nature and right at the beginning will suffer from an unfair
competition.

Since the CSS model is based on a 1::1 mapping between an XML object and a
rendering object, my rendition is limited to the structure and order imposed
by my original XML document. Moreover, the only visual object made available
to me are the one proposed by CSS.

In contrast, XSLT allows a 1::n mapping which directly translates into the
capacity to create - on the fly -  new rendering objects. XSLT allows me to
create new objects not part of a visual model, for instance, I may create
new visual objects like tabs, explorer like trees, windows or dialog boxes
even if the target rendering language doesn't include such objects. This is
probably the most powerful feature of XSLT and unfortunately, CSS cannot
sustain the competition against such versatility. But such versatility comes
with a certain price, the price to go through a learning curve.

Thus CSS is easier to learn but suffers from its inherent limitations. XSLT
is a lot more powerful and versatile but suffers from a steep learning
curve. Its like flying with a delta place, I do not need to get a license,
its easy to learn but I cannot go far and do what I want in the air. In
contrast flying an airplane gives me more autonomy but is more complex to
learn and in addition I need to go through a learning curve to get a
license. Both delta plane and airplanes are needed, fulfill different needs,
involve different costs and provide different degree of freedom.

Cheers
Didier PH Martin
http://didier-martin.com



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.