> From: Chitharanjan Das [mailto:[EMAIL PROTECTED]] 
> 
> Just another thought ....
> 
> If you have the handle to the Transformer object, you could 
> parse or obtain the parameters and then set use the 
> setParameter() method on the Transformer object to set the 
> parameters for the XSL... To do the above, you may have to 
> write your own generator (refer Stream Generator for reference)

There's no need for this. Sitemap already supports that. As I've said
before, you can use an action to get params from whereever you need then
expose them to sitemap (using returning map in an action). Then you can
simply set those params in your trasformer call:

<map:transform>
        <map:param name="yours" value="{1}" />
</map:transform>

--
Konstantin Piroumian 
[EMAIL PROTECTED]

> 
> Hope this helps....
> 
> Regds,
> Chiths
> 
> -----Original Message-----
> From: Martin Mauri [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, March 25, 2002 7:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: XSL question
> 
> 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.
> 
> 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]>

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