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

RE: XSLT vs. CSS (Re: Indexing)


xslt override css
michael.h.kay@n... (Michael Kay) writes:
>> However, the XSLT based approach is more complicated. I could 
>> create a template for para, but then that would override 
>> *all* of the default styling for paragraphs, which is not 
>> what I want. The lack of additive, cascading templates in 
>> XSLT means that I would need a detailed knowledge of the 
>> structure of the default style sheets in order to customise 
>> them effectively, whereas CSS allows me to concentrate on the 
>> structure of my documents instead.
>
>Customisable XSLT stylesheets can certainly be written, though it's
>true that they do require careful design and documentation. It's very
>similar to writing customisable DTDs, in fact, and has the same
>characteristic that the person doing the customising has to become
>pretty familiar with the design of the base styesheet.
>
>So: it's not easy, but it can be done, and is well worth doing.

It certainly _can_ be done.  The problem I see is that the user of an
XSLT stylesheet is far more severely at the mercy of the stylesheet
writer than is the case with CSS, as users have to worry far less about
how the CSS was originally written in order to override.

CSS seems to me to have been written with such cases in mind, and its
design suggests to me that its creators expected that developers would
want to create stylesheets for specific instance documents as well as
stylesheets for classes of documents.  XSLT excels at the latter
problem, but creates an enormous amount of work if document-by-document
tweaking is valuable to you.

-- 
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com -- http://monasticxml.org

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.