I just realised there was a misspelling. Of course it is "parameter" and not 
"paramter". That solved my problem.

Margrit

Am Dienstag, 30. April 2002 21:00 schrieben Sie:
> On 30.Apr.2002 -- 07:14 PM, Margrit John wrote:
> > Hi!
> > I am new to cocoon.
> >
> > In the sitemap I have the following example:
> >
> > <map:match pattern="*/*/*/">
> >   <map:generate type="directory" src="{1}/{2}/articles/{3}"/>
> >   <map:transform src="test.xsl">
> >     <map:paramter name="channel" value="{1}"/>
> >     <map:paramter name="section" value="{2}"/>
> >     <map:paramter name="year" value="{3}"/>
> >   </map:transform>
> >   <map:serialize type="html"/>
> > </map:match>
> >
> > In my stylesheet (test.xsl), I want to use the parameters "channel",
> > "section", "year".
> >
> > After a global declaration, I try to use them like this:
> >
> > <xsl:value-of select="$channel"/>
> >
> > This doesn't seem to work.  What is wrong?
>
> Do you have a <xsl:param name="channel"/> element (top level) in your XSL?
>
> Have a look at $COCOON/src/webapp/stylesheets/page/simple-page2html.xsl
> and sitemap.
>
>       Chris.

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to