cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piroumian, Konstantin" <KPiroum...@flagship.ru>
Subject RE: XSL question
Date Mon, 25 Mar 2002 14:58:48 GMT
> -----Original Message-----
> From: Martin Mauri [mailto:mmauri@profesi.com.ar] 
> Sent: Monday, March 25, 2002 5:36 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: XSL question
> 
> 
> Dear Alexandre,
> 
> Yes, I already know how to use params, but the point here is 
> that I need to
> pass the param from an outside source, say, the xml page that 
> uses this
> stylesheet ok? I don't know if I'm being clear, but that's my problem.

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" <avictoor@prisma-presse.com>
> To: <cocoon-users@xml.apache.org>
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> 
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

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


Mime
View raw message