cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Haul <h...@dvs1.informatik.tu-darmstadt.de>
Subject Re: Use of sitemap parameter in xslt
Date Tue, 30 Apr 2002 19:00:58 GMT
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.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message