W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2003

Problem with validation against Schema.

From: SHAY <shayb@rafael.co.il>
Date: Thu, 30 Jan 2003 23:48:31 +0200
To: "Xmlschema-Dev" <xmlschema-dev@w3.org>


I'm facing a validation problem between an Instance xml document and a
Schema I created (with no targetNanespace).
The Instance looks something like this:

<?xml version="1.0"?>

<xsi:proposals xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:///C:/My Documents/schema1.xsd">



The problems with this Instance:
1. The xml processor forces me to use the xsi namespace even though my
intention is not to use any namespace. When the elements are written without
namespace, the processor screams that the "elements are used but not
2. When the browser loads the Instance, the processor locates the Schema
document based on the xsi:noNamespaceSchemaLocation, but it only tests it
for well-formedness, NO VALIDATION BEING DONE HERE (e.g: Test the elements
and attributes data types, sequences etc..).

I assume that by identifying a namespace, the processor chooses not to
validate the Instance against my schema after locating it.

How can I enforce the processor to perform validation against my schema.

Thanks a lot!

Received on Thursday, 30 January 2003 16:49:22 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:59 UTC