cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <>
Subject Re: [PATCH] Sitemap Draft - Misc. fixes and preliminary schema
Date Tue, 04 Jul 2000 10:47:55 GMT

--- "N. Sean Timm" <> wrote:
> "Stefano Mazzocchi" <> wrote:
> >
> > I don't see any problem with this.
> During my initial schema work, I came under the impression that those
> parameters *had* to be declared in a namespace in order to create a schema
> at all.  I see now that this is not the case.  So, yes, we could allow
> anything in the default namespace as parameters.  The only consequence is
> that all parameter names/values will not be able to be validated against a
> schema.  I like the idea of being able to validate the entire sitemap
> against a schema while I'm developing it.  It would certainly help prevent
> certain simple (but stupid) mistakes.  :)  On the other hand...doing it like
> I suggested (ie. <map:param name="foo" value="bar"/> wouldn't allow
> parameter validation, either.  Like I mentioned, I didn't like declaring
> namespaces for the parameters, either, but it's the only way to validate the
> parameters.  Is this something anyone cares about?  I'm rather ambivalent at
> this point, so I'm curious if anyone else feels that schema-based parameter
> validation is important.  If not, then the default namespace works just
> great.

Validating the sitemap would be really cool. But the params of the components should be validated
by the component itself. They knew what's valid or not. This makes integration of new components
really pluggable and there is no need to change your Schema evey time you integrate new
components. IMHO, the formalism

 <map:param name="foo" value="bar"/>

is sufficent and still would allow to validate the structure of the sitemap.


PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7           
CH-8166 Niederweningen                    Web:

Do You Yahoo!?
Kick off your party with Yahoo! Invites.

View raw message