cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giacomo <giac...@apache.org>
Subject Re: [C2] <parameter> or <map:parameter> ?
Date Wed, 09 May 2001 21:09:16 GMT


On Wed, 9 May 2001, Donald Ball wrote:

> On Wed, 9 May 2001, Berin Loritsch wrote:
>
> > > > > I just realized that <parameter> elements in the sitemap aren't
in the
> > > > > map: namespace. Since they are handled by the sitemap, it would be
more
> > > > > consistent for them to be in the sitemap namespace.
> > > >
> > > > I don't remember why this syntax is so but it was that way since the
> > > > idea of the sitemap was realized.
> > >
> > > +1 to change it before beta. now's the time to clean up inconsistencies
> > > like that.
> >
> > I think part of the reason was that the Parameters object can be created from
> > a Configuration object containing <parameter> elements.  The Configuration
> > reader ignores namespaces, and uses the QName for the configuration names.
> > Hense, <map:parameter> as a configuration element would have a name of
> > "map:parameter" as opposed to "parameter".
> >
> > Since we directly manipulate the Parameters object now, the <map:parameter>
> > approach will work.  I just like using the shorter "parameter" name.
>
> but one can set a default namespace for the sitemap:
>
> <sitemap xmlns="http://apache.org/cocoon/sitemap/1.0">
>
> instead of
>
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
>
> if we go ahead and make all sitemap configuration elements live in the map
> namespace. just a thought.

I don't know. The configuration elements (like the
<doctype-public>...</doctype-public> dosen't seems to make sense under
the map namespace to me. They are the components own snippets and
(someday) they might need their own namespace.

Giacomo


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


Mime
View raw message