ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: [xml-dev] XSLT vs. CSS (Re: Indexing)
by Mitch Amiano other posts by this author
Jul 8 2003 1:03PM messages near this date
Re: [xml-dev] XSLT vs. CSS (Re: Indexing) | RE: [xml-dev] XSLT vs. CSS (Re: Indexing)
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
> 
>   
> 



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Michael Day
Norman Walsh
Mitch Amiano
Michael Day
Thomas B. Passin
Dave Pawson
Simon St.Laurent
Dave Pawson
Simon St.Laurent
Eric van der Vlist
Didier PH Martin
Simon St.Laurent
Mitch Amiano
Didier PH Martin
Michael Kay
Dave Pawson
Simon St.Laurent
Simon St.Laurent
Thomas B. Passin
Simon St.Laurent
Thomas B. Passin
Simon St.Laurent

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved