cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <>
Subject Re: FAQ and snippet, document() function
Date Thu, 11 Jul 2002 06:31:16 GMT

Conal Tuohy wrote:
>>-----Original Message-----
>>From: Nicola Ken Barozzi []
>>Sent: Thursday, 11 July 2002 03:16
>>Subject: Re: FAQ and snippet, document() function
> <snip/>
>>You can do many things with XSLT, but also with Java, C, Assembler...
>>It's just a matter of picking the right tool for the right job.
> That's right - that's why we shouldn't tell people "never use XSLT for
> inclusion". That's too dogmatic. Sometimes XSLT is the right tool.

It's correct if I tell you not to write your web application in 
assembler, IMO it's not dogmatic.
The fact is that IMO XSLT is not the right tool for this job.

>>If you find it simpler to do aggregation with XSLT, I think
>>that there
>>is a usage difficulty with XInclude-CInclude stuff; we could
>>simply make
>>a XSLTInclude that wraps the request in an XSLT call, but that's an
>>implementation detail.
> I don't know what you mean by adding a "wrapper" - can you explain?

Well, the main problem with using XSLT for aggregation is that you can 
simply use also the other things that don't only aggregate, and this is 
really asks for abuse ;-)

Instead, if I define my XSLTI xml syntax, limited to defining tags that 
include, and then use XSLT underneath as a motor, but without having the 
user use it directly, I have effectively wrapped it.

Nicola Ken Barozzi         
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)

View raw message