Actually thats not quite what the original poster was asking.
You're correct in that XSLT is for transforms, and XSP compares
favourably with JSP.
However you can extend XSLT using extension functions and elements,
thereby adding to its capabilities. So with XSLT alone you *do* have
a way to invoke arbitrary code during your transforms (although you
should take care not to introduce side-effects).
That said, XSP generates compiled classes, whereas most XSLT
processors don't do anything similar; although the Sun Translet
technology does go someway towards this.
The advantage of XSP is mainly its a cleaner form of JSP, the layering
seems better defined, and the syntax easier to read.
The other advantage of XSP over XSLT is that it exposes the HTTP
environment (i.e. the same info as in JSP/servlets), whereas you'd
have to produce some custom implementation to achieve that with
XSLT alone.
HtH,
L.
--
Leigh Dodds, Systems Architect | "Pluralitas non est ponenda
http://weblogs.userland.com/eclectic | sine necessitate"
http://www.xml.com/pub/xmldeviant | -- William of Ockham
> -----Original Message-----
> From: Eduardo Yanez [mailto:[EMAIL PROTECTED]]
> Sent: 03 July 2001 16:56
> To: [EMAIL PROTECTED]
> Subject: RE: Why XSP?
>
>
> Hi Mikael,
>
> XSLT is just a transforming language, you can use it for transform any xml
> document to any other textual format (html, txt, svg, pdf, etc).
>
> On the other side you can compare XSP with JSP, they technologies for
> dynamic content generation, JSP allow you to create servlets easily for
> dynamic html generation, with XSP you have dynamic XML generation!.
>
> In fact XSP uses XSLT in the transformers (C2) and in the XSP processor
> (C1).
>
> I hope the explanation aids you.
>
> Regards,
> Eduardo Yanez.
>
> -----Original Message-----
> From: Mikael Steldal [mailto:[EMAIL PROTECTED]]
> Sent: Viernes, 29 de Junio de 2001 04:51 a.m.
> To: [EMAIL PROTECTED]
> Subject: Why XSP?
>
>
> What is the need for XSP? Why not use XSLT with extensions instead?
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>