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

Re: XSLT vs. CSS (Re: Indexing)


attaching css to xsl
Michael Day wrote:

>>I would say that your conclusion mirrors the rationale for XSLT
>>
>>"This specification defines the syntax and semantics of XSLT, which is a
>>language for transforming XML documents into other XML documents."
>>    
>>
>
>Yes, that is why I believe that XSLT is best used for general
>transformation tasks, rather than for styling documents.
>
>Pipelining is an important addition to XSLT and will certainly be useful
>for some transformation tasks. However I believe that it will not make
>XSLT any more suitable as a styling language, as it will make the
>connection between the input and output documents even vaguer than it is
>at present. Customising complex styling transforms will still be very
>difficult without detailed study of the default templates.
>  
>

That complexity is a trade-off which many apparently feel is well worth it.
Complex styling transforms of the kind enabled by XSLT, aren't plausible 
in CSS AFAIK.

One should use the best tool for the job. Sometimes that does mean 
avoiding XSLT and conveniently attaching CSS styles. Other times it 
means going with a full-bore transformation. The diversity of glitches 
in implementations of both  XSLT and CSS mean that in the general case 
there is rarely a clear-cut path. Both are valuable components in the 
toolkit.

>>IMHO, the language isn't so much at fault. It is the presumption of a
>>limited run-time model. Or simply the lack of maturity in what really is
>>a family of complicated formatting processes.
>>    
>>
>
>Or perhaps an unfortunate choice of styling model. By choosing to
>transform the document structure tree into an entirely separate page
>layout tree, (rather than annotating the document with formatting
>properties as in CSS), the styling becomes harder to specify and to
>customise.
>
Well, it was a deliberate choice based on consideration of the needs of 
a more diverse audience than that served by CSS. Also, since we have CSS 
as a separate Rec, there isn't much point in duplicating it. The 
complexity is a trade-off, but one which is well worth it considering 
the large number of formatting problems which are mitigated through 
transformation.

OTOH, could there be a cascading transform? Would it be more or less 
difficult to understand?

Regards,

Mitch

>Best regards,
>
>Michael Day
>
>  
>



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.