Giacomo Pati wrote:
>
> Hi all
>
> Maybe I've bothered you too much with implementational detail. Please
> forget my previous mail and respond to this instead.
>
> Let step back to a conceptional view of the sitemap. What fits best
> your needs concerning mounts of sub sitemaps. This
>
> ...
> <map:pipelines>
> <map:pipeline>
> <map:match pattern="dist/*">
> <map:mount src="./dist/{1}"/>
> </map:match>
> <map:match pattern="bugs/*">
> <map:mount src="jar://apps/bugs.cocoon#{1}"/>
> </map:match>
> ...
>
> or
>
> ...
> <map:mounts>
> <map:mount uri="dist/cocoon" src="./dist/cocoon"
> reload-check="yes"/>
> <map:mount uri="dist/xalan" src="./dist/xalan" reload-check="yes"/>
> <map:mount uri="dist/foobar" src="./dist/foobar"
> reload-check="no"/>
> <map:mount uri="bugs/cocoon" src="jar://apps/bugs.cocoon"/>
> </map:mounts>
> ...
As a naming suggestion, I like "check-reload" more than "reload-check".
Just being picky, I like the concept very much.
> The first examples gives the freedom to spread the mount elements all
> over the pipelines and have the uri which they are mounted on
> wildcarded (this means you don't really know where they are mounted
> on).
>
> The second example removes the mount element from the pipelines and
> have them centralized in one place in the sitemap. You also exactly see
> where they are mounted on.
>
> I don't see the need for the flexibility the first example gives. The
> second example reduces verbosity of the pipeline and separates the
> concern of mounting to a central place in the sitemap.
>
> I will suggest using the second example.
>
> And you?
+1
Given the problems it generates, I agree with you.
If the need emerges, we can do it in the future adaptively.
--
Stefano Mazzocchi One must still have chaos in oneself to be
able to give birth to a dancing star.
<stefano@apache.org> Friedrich Nietzsche
--------------------------------------------------------------------
Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------
|