> From: Martin Mauri [mailto:[EMAIL PROTECTED]] 
> Dear Konstantin,
> 
> That's fine, but what I need to do is to choose dinamically 
> between two stylesheets to include in the current one, so 
> it's not possible to use select statement in that stage of 
> the page. I mean:
> 
> I want to include
>   <xsl:include href="params1.xsl"/>
> or
>   <xsl:include href="params2.xsl"/>
> 
> depending on a external variable.

Hm... So, it's not possible event with pure XSLT, so you'll need to refactor
your stylesheets to work some other way, say, merge those params1 and
params2 into one stylesheet and select then depending on some other external
param.

Or, you can do this: create to separate stylesheets where first one includes
the params1 and the second one - params2, then setup your pipeline with a
selector to choose the needed one. But it seems to me that you can achieve
the same result in a less complicated way.

Regards,
Konstantin

> 
> thanks!
> 
> >
> > If you need a param that comes from the page you are processing then
> there's
> > no need for a param, just use <xsl:variable 
> > select="/path/to/data-you-need"/> and you'll get what you want.
> >
> > If you need a param from some other source (not sitemap) 
> then you can 
> > use
> an
> > Action to create that param for you in sitemap then you can 
> use it as
> usual.
> >
> > Regards,
> > Konstantin Piroumian
> >
> > > thanks!
> > >
> > > ----- Original Message -----
> > > From: "Alexandre Victoor" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, March 25, 2002 11:32 AM
> > > Subject: Re: XSL question
> > >
> > >
> > > > Hi,
> > > > you need to declare your parameter at the beginiing of the
> > > stylesheet :
> > > >
> > > > <xsl:param name="yourparam"/>
> > > > ....
> > > > <xsl:template match="/">
> > > > ....
> > > >
> > > > Then in the body of your stylesheet, $yourparam  gives you
> > > the value of
> > > the
> > > > parameter.
> > > >
> > > > Good luck
> > > > Alex
> > > >
> > > >
> > > >
> > > >
> > > >
> > > 
> --------------------------------------------------------------------
> > > -
> > > > Please check that your question has not already been 
> answered in 
> > > > the FAQ before posting. <http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.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/faqs.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/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to