You don't have to declare it again.
This is an extract of my sitemap. Notice the parameter "relpath".
<map:match pattern="xsp/*/*.html">
<map:generate src="xsp/{1}/{2}.xsp" type="xsp"/>
<map:transform src="xsl/html.xmlpage.xsl">
<map:parameter name="relpath"
value="./../.."/>
</map:transform>
<map:serialize/>
</map:match>
This is the XSL (relevant part). Notice the declaration of the parameter on
top, and it's use in the code.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<xsl:param name="relpath"/>
<xsl:template match="/xml/layout">
<html>
<head>
<link type="text/css" rel="stylesheet">
<xsl:attribute name="href"><xsl:value-of
select="$relpath"/>/css/general.css</xsl:attribute>
</link>
</head>
<body>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
> I don't do that because I want my sitemap to choose the value of the
> parameter.
>
> I read some messages and it seems that's it's not possible to use global
> parameters in the sitemap with cocoon 2.0.4.
>
> At 13:48 17/03/2003 +0100, you wrote:
> >Why don't you want to declare it in the XSL ?
> >Otherwise, it's very simple: <xsl:param name="yourname"/>
> >and you can use it as <xsl:value-of select="$yourname"/>
> >
> > > Is it possible to get a sitemap parameter and using it into an xsl
> > > page. Here is my pipeline:
> > >
> > > <map:match pattern="search">
> > > <map:generate type="Request"/>
> > > <map:transform type="Query">
> > > <map:parameter name="interval" value="50"/>
> > > </map:transform>
> > > <map:transform type="xslt" src="proto/xsl/documents.xsl"/>
> > > <map:serialize/>
> > > </map:match>
> > >
> > > I want to use the parameter interval in the xslt transformation. But I
> > > don't want to declare it again into the xslt transformer.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >--
> >Met vriendelijke groeten,
> >Kind regards,
> >Bien � vous,
> >
> >Yves Vindevogel
> >
> >Implements
> >Kempische Steenweg 206 -- 3500 Hasselt -- Belgium
> >Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91
> >Mail: [EMAIL PROTECTED] -- www.implements.be
> >
> >Quote: The winner never says participating is more important than winning.
--
Met vriendelijke groeten,
Kind regards,
Bien � vous,
Yves Vindevogel
Implements
Kempische Steenweg 206 -- 3500 Hasselt -- Belgium
Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED] -- www.implements.be
Quote: The winner never says participating is more important than winning.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]