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