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

Reply via email to