-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Murray Altheim
> > Schema support
> > -----------------------
> > We need to support schemas in an abstracted fashion.  If we can 
> > architect a content model API that would allow the system to
validate 
> > and operate against a content model without needing to know that the

> > content model is based on XML Schemas or Relax NG, that would be 
> > ideal.
> 
> Why in Xindice? There are several places where validation can occur:
1.
> upon storing in the database; 2. following an XUpdate; and 3. upon
retrieving
> content from the database. In all three cases, the DOM nodes to be
validated
> are already available to the developer outside of Xindice and can be
validated
> using existing validation tools and techniques.

<snip>
> If anyone is unclear as to how to provide Java-based XML validation
within their
> application, I'd be happy to suggest several books and available
software packages.

I am curious how you would suggest handling the situation mentioned by
others and myself in the past: Consider an environment where many
independently-developed applications need access to the same data
stores. One cannot be guaranteed that every application has been
developed with the same degree of attention towards this
"application-specific" validation that you seem to be suggesting. How
can I, the developer of application X, be certain that application Y
hasn't put corrupt data into the data store I need to access? Do I have
to assume that all applications will behave as well as I'd like them to?
Do I have to explicitly check data for inconsistencies every time I read
something from the DB, just in case some other application hasn't
followed the rules I expect them to? Providing validation within Xindice
seems to be the best way to ensure enterprise-wide data consistency.

I agree with many of your sentiments and have no desire to bog down
Xindice with unnecessary layers. However, without this kind of
validation I fear that I will not be able to use Xindice for many of the
solutions I would like. Is there another way I should look at the issue
that could dismiss this fear I have?

- Tim


Reply via email to