Validating lax ANY content with W3C XML Schema validators

This is an issue that came out of a discussion on the public "newsml" list. 
NewsML has a "DataContent" element which can contain any non-NewsML content,
and the "xsd:any" validation is set to "lax".  Some NewsML users were unclear
how to add a Schema for the non-NewsML content, so I posted some examples (270K
ZIP file):

http://www.londonmarketsystems.com/newsml/newml-embedded-content.zip

In one of my examples, "invalidContent.xml", the "xsd:any" content has a
Schema, and the content is intentionally invalid.  As I read the W3C XML Schema
spec, the "xsd:any" content should be validated using the Schema, and the error
should be flagged.  Turbo XML & XSV both flag the error as I would expect, but
XML Spy doesn't.  Xerces is ruled out because it ignores
"xsi:noNamespaceSchemaLocation" if there is also an "xsi:schemaLocation", and
so it can't validate my examples correctly.

Am I right in my expectation here, that lax "xsd:any" content should be able to
cause real validation errors whenever a Schema for that content can be found?

	Cheers,
		Tony.
====
Anthony B. Coates
London Market Systems Limited
33 Throgmorton Street, London, EC2N 2BR 
http://www.londonmarketsystems.com/
mailto:abcoates@londonmarketsystems.com
Mobile/Cell: +44 (79) 0543 9026
[MDDL Editor (Market Data Definition Language), http://www.mddl.org/]
[FpML Arch WG Member (Financial Products Markup Language), http://www.fpml.org/]
-----------------------------------------------------------------------
This Email may contain confidential information and/or copyright material and is intended for the use of the addressee only.
Any unauthorised use may be unlawful. If you receive this Email by mistake please advise the sender immediately by using the reply  facility in your e-mail software.
Email is not a secure method of communication and London Market Systems Limited cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which London Market Systems Limited accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of London Market Systems Limited.

Received on Wednesday, 15 January 2003 06:10:27 UTC