Sorry, fired that one off too fast, did'nt read the problem thoroughly
>
> the trick you're looking for is:
> <map:transform src="stylesheets/element.xsl">
> <map:parameter name="use-request-parameters" value="true"/>
> <map:parameter name="path" value="{1}/{2}"/>
> </map:transform>
> The parameter use-request-paramaters will (almost)
> automatically make the request parameters available as normal
> xsl:parameters. Almost, because you then have to define those
> parameters in your xsl (of course)
>
> With kind regards / Met vriendelijke groeten,
>
> Rogier Peters
> ---------------------------------------------------------
> Content Management Department
> Hippo Webworks
> Rogier(at)hippo(dot)nl / www.hippo.nl
>
> > -----Original Message-----
> > From: GB [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 18, 2002 2:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: Modifying an xslt stylesheet before utilisation.
> >
> >
> > Dear Cocoon readers !
> >
> > I need to transform a xslt stylesheet before using it over an
> > xml file.
> >
> > In fact, what I want to do is to modify the stylesheet so
> > that a parameter,
> > taken out of the http request, could be used as an xpath
> > string inside an
> > xsl:apply-templates' select attribute.
> >
> > The problem is that it isn't allowed to do that inside the
> > xslt directly by
> > using something like <xsl:apply-templates select="$value"/>
> >
> > I thought of using XSP to replace the $value field by its
> > real value before
> > using this stylesheet.
> >
> > Well, I don't know how to specify the use of the a
> > transformed xsl as a
> > transfomer inside a sitemap.
> >
> > Can you help me ???
> >
> > Thanks a lot.
> >
> > Guy Bobenrieth
> >
> >
> >
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > 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: <[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/faq/index.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/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>