You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Daniel Fagerstrom <da...@nada.kth.se> on 2004/01/12 14:26:43 UTC
[Question] [Request|Session]AttributeOutputModules prefixes attribute
names, why? (was: Re: [ANN] Module Source and XModule Source)
Daniel Fagerstrom wrote:
...
> AFAIK the new sources can cover all use cases for the mentioned
> components (as well as doing plenty of new things):
...
> [Read|Write]SessionTransformers
> -------------------------------
...
I forgot to mention the problem with output modules that I described in
the announcement of [X]ModuleSource.
Anyone knowing anything about this?
Daniel Fagerstrom wrote:
> Open Issue
> ----------
>
> A peculiarity in the RequestAttributeOutputModule and
> SessionAttributeOutputModule is that they as default prefix
> all attribute names with
> org.apache.cocoon.components.modules.output.OutputModule", why?
>
> To make the samples for the xmodule source work this must be
> reconfigured to using attribute names without prefixes. This is
> done in the cocoon.xconf by puting an empty key-prefix" element:
>
> <key-prefix/>
>
> as child to the configurations of the output-modules
> "request-attr" and "session-attr".
>
...
>
> Could we change the default behaviour for the
> [Request|Session]AttributeOutputModules so that they not prepending any
> "name spaces" as default. I found the current behaviour rather strange,
> but maybe I am missing something.
/Daniel