What are you doing in the stylesheet? You need a top-level <xsl:param/>:
<xsl:stylesheet>
<xsl:param name="lang" select="'defaultvalue'"/>
<xsl:template match="/">
<xsl:value-of select="$lang"/>
</xsl:template>
</xsl:stylesheet>
Regards,
Joerg
Barbara Post wrote:
> Hello, I want the trail of the match to be passed to my stylesheet, and used
> there as a variable. the following does not work. thanks for any help.
>
> <map:match pattern="i/want/**">
> <map:aggregate element="page">
> <map:part ............. />
> </map:aggregate>
> <!-- this stylesheet gets parameter "lang" -->
> <map:transform src="xsl/mysheet.xsl">
> <map:parameter name="lang" value="{1}"/>
> </map:transform>
> <map:serialize type="html"/>
> </map:match>
--
System Development
VIRBUS AG
Fon +49(0)341-979-7419
Fax +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>