[Xml-compile] cross-namespace elements failing

Mark Overmeer mark at overmeer.net
Wed Oct 6 16:21:10 GMT 2010


* Daniel Ruoso (daniel at ruoso.com) [101006 17:14]:
> I have a schema definition split in three diferent schema files with
> three different namespaces. The main schema is "dossie" which is an
> envelope for "documento"s elements. Both refer to the "audit" type in
> the third schema.
> 
> When I try to read the "dossie" element (sample xml attached), it fails
> with:
> 
> error: element
> `{http://schemas.fortaleza.ce.gov.br/acao/auditoria.xsd}auditoria' not
> processed at
> {http://schemas.fortaleza.ce.gov.br/acao/dossie.xsd}dossie/audit
> 
> I couldn't find a way to understand why the problem happens.

Your audit element can only have 0 or 1 auditoria elements. You
should probably add maxOccurs="unbounded".  The complaint is about
the second element.
-- 
Regards,
               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list