First I think in merge all XSLs into one single. But they are about 1150,
and I think that would be very heavy for the server.

I solved the problem by using a session attribute. I put the transaction
name (the value that determines the XSL to use) in the session (in the setup
method of the generator) and take it in the setup method of the transformer.
It isn't elgant, but it works.

Thanks

Lautaro


----- Original Message -----
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 01, 2002 6:57 PM
Subject: Re: Transformer


> Does this mean, that you want to select another XSL file used for
> transformation depending on the input document? Why don't you use an
> XSL, which includes the other XSL files and so the different matching
> templates? Or use modes in the stylesheets like J. Pietschmann provided
> at
> http://www.mail-archive.com/cocoon-users@xml.apache.org/msg21224.html.
> Otherwise you must use an action, which chooses the
> correct transformer.
>
> Joerg
>
> [EMAIL PROTECTED] wrote:
>  > I want to change the XSL file of a transformer according a element of
the
>  > input XML. There is any way to do this?
>  >
>  > Thanks
>  >
>  > Lautaro
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>
> --
> www.Argentina.com
> E-mail Profesional y Acceso a Internet UltraVeloz totalmente GRATIS en
> Buenos Aires, Rosario, Cordoba, Mendoza, Mar del Plata, Moreno, Merlo,
> La Plata, Pilar, Escobar, Campana y Zárate
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to