You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de> on 2003/01/23 15:27:39 UTC

Re: Different stylesheets called on runtime?

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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Different stylesheets called on runtime?

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 23.Jan.2003 -- 05:57 PM, Konstantin Piroumian wrote:
> From: "Christian Haul" <ha...@dvs1.informatik.tu-darmstadt.de>
> > On 23.Jan.2003 -- 02:36 PM, Johannes.Becker@o2.com wrote:
> 
> input module.
> 
> Chris, how could you forget about it? ;)

Dear me! But it looks like I successfully missionated so far ;-)

Cheers.

	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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: Different stylesheets called on runtime?

Posted by Konstantin Piroumian <kp...@apache.org>.
From: "Christian Haul" <ha...@dvs1.informatik.tu-darmstadt.de>
> 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.

and an input module.

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

input module.

Chris, how could you forget about it? ;)

--
  Konstantin

>
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>
>


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>