cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gou...@osmosis.gr
Subject Re: Passing parameter from sitemap
Date Tue, 20 Jan 2004 08:29:31 GMT
On Tue, 20 Jan 2004, Dmitry Diskin wrote:

> Hi,
> 
> I'm looking for a way to pass some constant parameter from sitemap to 
> all my xsl styles. Basically I need to replace multiple occurences (bad 
> design! not mine :)) of "(c) 2001-2003" to something like "(c) 
> 2001-${currentyear}", where "currentyear" will be defined in single 
> place (sitemap, sub-sutemap?).
> 
in sitemap
...
					<map:transform src="osml/extra/file2html.xsl">
						<map:parameter name="filename" value="{1}"/>
						<map:parameter name="extension" value="{2}"/>
						<map:parameter name="directory" value="c_{../locale}"/>
					</map:transform>
...


in .xsl

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

..
..
 

--stavros


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message