cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: Different stylesheets called on runtime?
Date Thu, 23 Jan 2003 17:51:10 GMT
On 23.Jan.2003 -- 06:35 PM, Johannes.Becker@o2.com 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
haul@informatik.tu-darmstadt.de
    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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message