cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rogier Peters" <Rog...@hippo.nl>
Subject RE: Modifying an xslt stylesheet before utilisation.
Date Thu, 18 Jul 2002 12:32:39 GMT
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:guy.bobenrieth@neurosoft.fr]
> Sent: Thursday, July 18, 2002 2:26 PM
> To: cocoon-users@xml.apache.org
> 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:     <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/faq/index.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