Joern Nettingsmeier wrote:
Andreas Hartmann wrote:
Hi Jörn,
IMO the problem about this schema is that it is not generic,
i.e. it is not possible to add custom meta data sets without
changing the schema.
that's a feature.
Well, IMO Lenya should behave like a framework and define the
structure of the meta data, but not the actual content. It should
be possible to add components without modifying the core. What
if you want to use a custom Workflow component which doesn't use
version elements to store meta data, or something like that?
[...]
SoC at its very best, and totally useless for both validation *and*
documentation.
In the case of meta data, validation and documentation shouldn't
be applied to the XML format. The format is just a representation
of the internal meta data. The actual validation is done when
the meta data are entered via the API (MetaDataManager.setValue()
or something like that).
The internal meta data are not meant to be transmitted between
applications, for this purpose you would provide explicit interfaces.
These interfaces could make use of a special grammar.
Actually, I would like to introduce something like "private"
meta data, which can only be accessed by a certain component.
This would apply for instance to workflow meta data. They wouldn't
be exposed by the LenyaMetaDataGenerator etc.
incidentally, it pretty much reflects the current state,
except that it is hierarchic :-D
my suggestion is extensible, but it requires an element hierarchy for
that - as you said, that's not desirable for internal representation.
so how about this:
we define a grammar that can contain some fixed lenya-internal metadata
items from a special namespace "lenya-meta:". these are validatated in a
very thorough way, and must be represented 1:1 in the grammar, leading
to a well-defined api and good documentation.
IMO the well-defined API and documentation should be handled by
declaring meta data sets. The declaration would serve as a configuration
for the meta data management component, which would be reponsible to
validate values.
-- Andreas
--
Andreas Hartmann
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]