cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Rosenstrauch <dar...@dti.net>
Subject Re: Question about XSLT parameters
Date Thu, 20 Dec 2001 13:21:06 GMT
Yes.  Do it like this:

<map:transform src="page.xsl">
         <map:parameter name="parm" value="parm_val"/>
</map:transform>


Then, in your XSL, do this:

<xsl:stylesheet
         version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 >
         <xsl:param name="parm"/>


Now the parameter is available everywhere in your stylesheet by referencing "$parm".


DR


At 11:02 AM 12/20/01 +0100, you wrote:
>I'm working in web development and I'm traying to design our web site
>with xml and Cocoon2.
>With the cocoon 2 is possible pass to an XSLT one parameter usin this
>tag
><parameter name="myparam"value="myvalue"/> in a pipeline. This parameter
>is the name of server, in my case
>http://ensiola.uib.es:8080/. I need this information in the xslt for
>generare the url to the images with the fo generator.
>How can I recover this value in xlst? Or can I pass to all pipelines
>this information one time?
>
>Thank you.
>Bye
>
>---------------------------------------------------------------------
>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