cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@dff.st>
Subject RE: Allowed Sitemap Constructs
Date Thu, 03 Jan 2002 12:45:57 GMT
On Thu, 3 Jan 2002, Carsten Ziegeler wrote:

> John Morrison wrote:
> >
> > > -----Original Message-----
> > > From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> > > Sent: Thursday, 03 January 2002 12:32 pm
> > > To: Cocoon-Dev
> > > Subject: Allowed Sitemap Constructs
> > >
> > >
> > > Hi,
> > >
> > > I currently run into the problem that I created pipelines which I
> > > thought were possible, but currently are not support by Cocoon:
> > >
> > > It is not possible to nest anything other than a map:part into
> > > a map:aggregate, so the following doesn't work:
> > > <map:aggregate>
> > >   <map:select type="test">
> > >     <map:when test="a">
> > >       <map:part src="a"/>
> > >     </map:when>
> > >     <map:otherwise>
> > >       <map:part src="b"/>
> > >     </map:otherwise>
> > >   </map:select>
> > >   <map:part src="constant"/>
> > > </map:aggregate>
> > >
> > > Is this a bug or is this by design?
> > > My personal opinion is, that this should be possible.
> > >
> > > Another restriction we currently have is already entered as a bug with
> > > the number 4357: An Action is not possible as a root element inside
> > > a map:pipeline, only map:match can be a used as a root element.
> > > So here again, is this by design?
> >
> > What would you expect the Action to do and when would you expect it to do
> > it?
> >
> For example:
> <map:pipeline>
>   <map:act type="LogStatus"/>
>
>   <map:act type="ProtectAllResource">
>
>     <map:match pattern="docs/*">
>      ..
>     </map:match>
>   </map:act>
>
> </map:pipeline>
>
> So the actions are invoked immediately at the start of the sitemap
> processing,
> for example for any debugging or authentication or initialization of the
> object
> model etc.

Well, but this can easily achieved by a match all ("**"). Maybe we
can even add a new matcher that always matches. This would be an easy
but quite ugly work-around.

Questioning this restriction is obvious IMHO.
--
Torsten


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


Mime
View raw message