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=myparamvalue=myvalue/ in a pipeline. This parameter
is the name of server, in my case
http://ensiola.uib.es:8080/. I
Hi Bartomeu,
create this:
xsl:param name=myparam/
as a top level element in your stylesheet.
You can then reference it like this:
xsl:value-of select=$myparam/
Hth,
Christian
On Thu, Dec 20, 2001 at 11:02:38AM +0100, Bartomeu Adrover wrote:
I'm working in web development and I'm
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
is 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]>
R
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