Problems with XSD schema in validators

Jirka Kosek jirka at
Tue Dec 1 15:37:02 CET 2009


I have checked the latest set of schemas for DCOR1 in various validators.

Everything worked OK with the exception of .NET 2.0 validator. Removal
of id attribute from xsd:import element in the following schemas (both
in T and S)

•	dml-diagram.xsd
•	pml.xsd
•	shared-math.xsd
•	sml.xsd

solved the problem. I propose to drop id attributes from those schemas
as it serves no purpose and such change will increase usability of schemas.

I also checked schemas in MSXML 4.0/5.0/6.0 and I haven't noticed
problems described in Japan comment -- might be because I have used the
latest MSXML 4.0 with SP3 applied on it.

The only problem with MSXML 4.0/5.0 is that they do not contain schema
for XML namespace, you have to add schema manually to validator. Then
they work as expected.


FYI, in order to test schema in MSXML you can use the following WSH script:

var sc = WScript.CreateObject("Msxml2.XmlSchemaCache.4.0");
//var sc = WScript.CreateObject("Msxml2.XmlSchemaCache.5.0");
//var sc = WScript.CreateObject("Msxml2.XmlSchemaCache.6.0");

sc.validateOnLoad = true;

sc.add("", "xml.xsd"); // required
for MSXML 4.0/5.0

  Jirka Kosek      e-mail: jirka at
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the sc34wg4 mailing list