Re: Element Substitution

Paul Mensonides <[email protected]> Mon, 3 May 2021 03:15:36 -0700
Newsgroups gmane.text.xml.saxon.help
Message-ID <[email protected]>
On 5/3/2021 12:36 AM, Martin Honnen wrote:
> Am 02.05.2021 um 23:35 schrieb Paul Mensonides:

>> In content of element <a:element>: The content model does not allow
>> element <Q{urn:b}element> to appear as the first child. The element is
>> in namespace urn:b but it should be in namespace urn:a.
> 
> I have tried oXygen 23.1 with Saxon 9.9.1.7 but I don't get any
> validation error, only a warning about a duplicate schema import.
> 
> Saxon 9.9.1.7 and 10.5 EE from the command line also validate successfully.

Okay, I figured it out.  I have "Multiple schema imports" turned on (for 
other reasons) and thus didn't see a warning.  Oxygen is validating the 
document twice--once with a.xsd (yielding the error) and once with b.xsd 
(yielding no error).

Thanks for testing.

Regards,
Paul Mensonides