You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Carles Canellas <cc...@yahoo.es> on 2002/10/25 16:25:42 UTC

[bug] Resource parameter in sitemap.

Well, I've found another bug, that one in the sitemap.

   <map:match pattern="*.html">
    <map:aggregate element="site">
     <map:part src="cocoon:/book-{1}.xml"/>
     <map:part src="cocoon:/tab-{1}.xml"/>
     <map:part src="cocoon:/body-{1}.xml"
label="content"/>
    </map:aggregate>
    <map:call resource="skinit">
      <map:parameter name="type" value="site2xhtml"/>
      <map:parameter name="dir" value=""/>
      <map:parameter name="resource" value="{0}"/>
    </map:call>
   </map:match>

   <map:match pattern="**/*.html">
    <map:aggregate element="site">
     <map:part src="cocoon:/{1}/book-{1}/{2}.xml"/>
     <map:part src="cocoon:/{1}/tab-{1}/{2}.xml"/>
     <map:part src="cocoon:/body-{1}/{2}.xml"
label="content"/>
    </map:aggregate>
     <map:call resource="skinit">
      <map:parameter name="type" value="site2xhtml"/>
      <map:parameter name="dir" value="{1}/"/>
     </map:call>
   </map:match>

As you can see, in the match of *.html we skin with
parameter resource, but when we do the match
**/*.html, we skin without that parameter. That's a
bug, I think (in my project skin, we need the footer
to appear in each index.html, not only in the main
one. It's up to the skin decide what to do with that
resource)

Hope it helps,

=====
Carles Canellas.
VicerTec S.L.

_______________________________________________________________
Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ¡Gratis! 
Descárgalo ya desde http://messenger.yahoo.es

Re: [bug] Resource parameter in sitemap.

Posted by Jeff Turner <je...@apache.org>.
On Fri, Oct 25, 2002 at 04:25:42PM +0200, Carles Canellas wrote:
...
> As you can see, in the match of *.html we skin with
> parameter resource, but when we do the match
> **/*.html, we skin without that parameter. That's a
> bug, I think (in my project skin, we need the footer
> to appear in each index.html, not only in the main
> one. It's up to the skin decide what to do with that
> resource)

Ah yes, thanks.  Fixed in CVS.  The 'resource' param now passes through
{0}, ie the full path to the file.

--Jeff

> Hope it helps,
> 
> =====
> Carles Canellas.
> VicerTec S.L.
>