cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Substractive view labels [was : Re: aggregate and views : what'sthe correct behaviour ?]
Date Mon, 25 Mar 2002 09:54:09 GMT

Sylvain Wallez wrote:
>So my proposal was to allow to locally "substract" a label defined at
>the component level. The above snippet would then become :
>   <map:match pattern="body-todo.xml">
>     <map:generate type="file" src="xdocs/todo.xml" label="-content"/>
>     <map:transform src="stylesheets/todo2document.xsl" label="content"/>
>     <map:transform src="stylesheets/document2html.xsl"/>
>     <map:serialize/>
>   </map:match>

>>This is about a todo that says "View must start not from the first
>>encountered label, but from the last one".

If Views start from the last label, which IMHO make sence, but then
label="-content" is unnecessary.

>My opinion is that there are some uses case where automatic jump isn't
>good. Let's consider the following :
>  <map:view name="books" from-label="books">
>  ...
>  <map:aggregate element="root">
>    <map:part src="isbn-codes.xml" label="books"/>
>    <map:part src="authors.xml"/>
>  <map:aggregate>
>  <map:transform src="isbn2books.xsl" label="books"/>
>  <map:transform src="books2html.xsl"/>
>  <map:serialize/>
>The "books" view should give the list of books. With automatic jump, the
>above only gives a list of isbn codes and we cannot apply
>"isbn2books.xsl". On the contrary, explicit labels mean that there's no
>jump to the view from map:aggregate and that the stylesheet is correctly

>So, in short, my opinion is that labels of map:part should be for
>_selecting_ which parts belong to the view, and that view branching
>should depend _only_ on the labels of map:aggregate.

>What is your opinion ?

Good idea!


Volker Schmitt
BASF IT Services GmbH
Ludwigshafen, Germany

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

View raw message