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 14:27:39 GMT
On 23.Jan.2003 -- 02:36 PM, Johannes.Becker@o2.com wrote:
> Hi,
> 
> I have  for example an XSP and various XSLs for the output (of the data
> from that XSP).
> In the <xsp:logic>-part it should/is deceided on runtime, which one of the
> XSLs to use for the output.
> 
> Where do I have to manage that? I mean, how/where do I tell cocoon which
> XSL to use(In the sitemap?Can the xsp handle that?)?

Yes, the sitemap is the place. No, XSP cannot handle that. You need to
use one of the sitemap components for that: a matcher, a selector, or
an action.

If the stylesheet depends on the request this is pretty easy. If it
depends on calculations or data retrieved inside the XSP, you may need
to write your own action, selector, matcher.

	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