cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Passing Sitemap Params
Date Thu, 11 Oct 2001 21:04:11 GMT
Is it possible to define a Sitemap Parameter in one portion,
and use it in a called section.  Example:

   <map:match pattern="**book.xml">
     <map:generate src="xdocs/{1}book.xml"/>
     <map:act type="theme-chooser">
       <map:transform src="stylesheets/{theme}/book2menu.xsl">
         <map:parameter name="use-request-parameters" value="true"/>
         <!-- here is where the param needs to be picked up -->
     <map:serialize type="xml"/>

   <map:match pattern="**.html">
    <map:parameter name="resource" value="{1}.html"/>
    <map:aggregate element="site">
     <map:part src="cocoon:/book.xml"/>
     <map:part src="cocoon:/body-{1}.xml"/>
    <map:act type="theme-chooser">
    <map:transform src="stylesheets/{theme}/site2xhtml.xsl">
       <map:parameter name="use-request-parameters" value="true"/>
       <map:parameter name="header" value="graphics/{1}-header.jpg"/>

I don't seem to know how to make it work.  If I have to do it through
an action, I will.  I just think it might be heavy handed.

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

View raw message