Hi all,
Here is the context :
we use Marklogic 7.0-1.
we have a schema database containing ours schemas, this db is referenced in
our doc db as the schema db.
These schemas (version 1.1) defined a base type and 2 extension types (ie :
a basic publication as a base type and a 'summary' and an 'indicator' as
extension types). The extensions types have their own elements in addition
of the ones from the basic type. Some elements could be optional or
mandatory, they are 'unordered' (using xs:all). All these schemas use the
same namespace.
Because the root element is the same for the 2 extension type ('work') we
set the attribute 'schemalocation' in the 'work' root element to be sure ML
uses the right schema during the validation.
The documents have been validated against its schema in Oxygen without issue
Here is the issue!
When we try to validate a document before inserting it in Marklogic with
xdmp:validate using neither strict", "lax", or "type" (with its own type),
it failed.
The error message mentions the right schema but does not take in account
the optional elements.
Please find the mentioned (simplified) schema, XML sample and error message
here : https://gist.github.com/anonymous/8422411
Any help is welcome, many thanks
Lanz
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general