Hi Bartomeu,

you can do what you want by :
1. inserting the following lines into sitemap.xmap:
    <map:match pattern="yourpattern">
      <map:generate src="docs/yourfile.xml"/>
        <map:transform src="stylesheets/file-page2html.xsl">
          <map:parameter name="yourparameter" value="http://ensiola.uib.es:8080/"/>
        </map:transform>
      <map:serialize/>
    </map:match>

2. getting the yourparameter value in the file-page2html.xsl file so:
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
    <!-- this def must be global !-->
    <xsl:param name="page_number"/>

3. use you value whereever you want in the same file-page2html.xsl file this 
way:
    <xsl:value-of select="$page_number"/>


Enjoy
pino

----Original Message Follows----
From: Bartomeu Adrover <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Question about XSLT parameters
Date: Thu, 20 Dec 2001 11:02:38 +0100

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
<< tomeu.adrover.vcf >>
---------------------------------------------------------------------
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]>




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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