yes, absolutely - an action can do that.  The easiest way (IMO) is to just
code the java, although they apparently can be written in xsp.  I'd get the
concept first in java, though and then try doing it in xsp if you want.

I'll mark up your original email with some examples of how it would be done.
Sorry I dropped out there for a while - i'm working from home on one phone
line and have been expecting some important calls so trying to stay offline
when not necessary.

Geoff

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 23, 2003 12:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Different stylesheets called on runtime?
>
>
>
> OK, now I have to think of an other way, how to choose my XSLs.
>
> or
>
> The different XSLs are "choosen" from request parameters and an resulting
> database query. Is there a way to do that in an action or somewhere else?
>
> Cheers
> Jonny
>
> ------------------------------------------------------------------
> ----------------------------------
>
> This electronic message contains information from the mmo2 plc Group which
> may be
> privileged or confidential. The information is intended to be for the use
> of the
> individual(s) or entity named above. If you are not the intended recipient
> be aware
> that any disclosure, copying, distribution or use of the contents of this
> information
> is prohibited. If you have received this electronic message in error,
> please notify
> us by telephone or email (to the numbers or address above) immediately.
>
>
>
> |---------+-------------------------------------->
> |         |           Christian Haul             |
> |         |           <[EMAIL PROTECTED]|
> |         |           rmstadt.de>                |
> |         |                                      |
> |         |           01/23/03 06:51 PM          |
> |         |           Please respond to          |
> |         |           cocoon-users               |
> |         |                                      |
> |---------+-------------------------------------->
>
> >-----------------------------------------------------------------
> -------------------------------------------------------------|
>   |
>                                                                |
>   |       To:       [EMAIL PROTECTED]
>                                                                |
>   |       cc:
>                                                                |
>   |       Subject:  Re: Different stylesheets called on runtime?
>                                                                |
>
> >-----------------------------------------------------------------
> -------------------------------------------------------------|
>
>
>
>
> On 23.Jan.2003 -- 06:35 PM, [EMAIL PROTECTED] wrote:
> >
> > >> Unfortunately, you've skipped the crucial part i.e. how the xsl is
> > chosen :-|
> >
> > I think I don't understand you right., but this should be just
> an "dummy"
> > example.
> > So if(whichXSL == 1) then the number1.xsl should be choosen for output,
> > else if(whichXSL == 2) then the number2.xsl should be choosen
> for output,
> > bla, bla. I hope this is clearer.
>
> You cannot change the transformation with data from the XSP. Period.
> Before you reach that part of the XSP, the pipeline has been setup and
> the transformation has already begun.
>
> If you told us how the style is chosen, we might have been able to
> point you to some existing components to use instead.
>
> > >>  around one transform and use a returned value as file name, e.g.
> > >>
> > >>   <map:act type="sel-style">
> > >>      <map:transform src="{file}.xsl"/>
> > >>   </map>
> >
> > Ok. But I don't get the part (in combination with the xsp) how, if for
> > example number2.xsl is choosen, to choose it.
> > How do I "produce" the return value in the xsp?
>
> You don't. It's impossible. (sort of)
>
>              Chris.
> --
> C h r i s t i a n       H a u l
> [EMAIL PROTECTED]
>     fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08
>
> ---------------------------------------------------------------------
> 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]>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> 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]>
>
>
>


---------------------------------------------------------------------
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