cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olivier demah <ode...@messagio.com>
Subject Re: Sitemap : <map:resource> and <map:when>
Date Mon, 05 Apr 2004 11:27:42 GMT
olivier demah wrote:

> Is that possible to use <map:when> in a <map:resource> ?
>
> in this current resource ; i would like to add sometimes a third part.
>
>    <map:resource name="my_page">
>        <map:aggregate element="root" label="content">
>            <map:part src="cocoon:/index.xml"/>
>            <map:part src="cocoon:/{my_page}"/>                  
> </map:aggregate>
>      <map:transform src="stylesheets/main.xslt"/>
>      <map:serialize type="html"/>
>    </map:resource>
>
>
>
i tried without success :

    <map:resource name="my_page">
        <map:select type="parameter">
            <map:parameter name="parameter-selector-test" 
value="{my_page_test}"/>
             <map:when test="index.html">
                    <map:part src="cocoon:/blog_index.xml"/>
          </map:when>
            <map:when test="blog.html">
                <map:aggregate element="root" label="content">
                    <map:part src="cocoon:/blog_index.xml"/>
                    <map:part src="cocoon:/{my_page}"/>
                    <map:part src="cocoon:/blog_news.xsp"/>
                </map:aggregate>
            </map:when>
            <map:otherwise>
            <map:aggregate element="root" label="content">
                <map:part src="cocoon:/blog_index.xml"/>
                <map:part src="cocoon:/{my_page}"/>
            </map:aggregate>
            </map:otherwise>
        </map:select>

      <map:transform src="stylesheets/main.xslt"/>
      <map:serialize type="html"/>
    </map:resource>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message