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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to