cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Russell Geraghty <>
Subject baselink: module
Date Wed, 24 Dec 2003 12:49:26 GMT

Has anyone been able to use the baselink: request module, I have tried 
the following and received an empty string when passing the parameter 
from the sitemap to xslt, see below:

----Sitemap fragment----
    <map:match pattern="test.xml">
            <!-- dont care what the base document is -->
            <map:generate type="request"/>
            <map:transform src="samples/test1/style.xsl">
                <map:parameter name="baselink" 
                <map:parameter name="test" value="my-sitemap-test-value"/>
            <map:serialize type="xml"/>

----Stylesheet ----

<xsl:stylesheet version="1.0" 

    <xsl:param name="baselink" select="string('base-not-defined')"/>
    <xsl:param name="test" select="string('test-not-defined')"/>

    <xsl:template match="/">
            <xsl:value-of select="$baselink" />
            <xsl:value-of select="$test" />




 From this I can see that the parameters are being passed to the stylesheet.

Any help getting this working would be greatly appreciated

Russell Geraghty

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message