W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2004

Re: default namespace

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Wed, 18 Feb 2004 17:15:02 -0500
Message-Id: <5.2.0.9.0.20040218171330.0158acf0@pop.storm.ca>
To: xmlschema-dev@w3.org

At 2004-02-16 23:38 +0100, Rolf Schumacher wrote:
>I run an xml editor that's able to validate against xml schema.
>I have this very simple schema:
>...
>It perfectly validates this instantiation:
>...
>But it does not validate this one:
>...
>To be honest, I can't find a significant difference.

There isn't one.

>Just to make it very clear: Where is the error?

There is no error.  If you don't believe me, below is a report by MSV that 
everything is fine with your instances.

I hope this helps.

....................... Ken

t:\ftemp>type rolf.xsd
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema elementFormDefault="qualified"
  targetNamespace="http://www.example.org/testNamespace"
  xmlns="http://www.example.org/testNamespace"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 >
  <xsd:element name="root" type="xsd:string"/>
</xsd:schema>

t:\ftemp>type rolf1.xml
<?xml version="1.0" encoding="UTF-8"?>
<ns:root xmlns:ns="http://www.example.org/testNamespace">
    the string
</ns:root>

t:\ftemp>type rolf2.xml
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns="http://www.example.org/testNamespace">
    the string
</root>
t:\ftemp>msv rolf.xsd rolf1.xml
No validation errors.

t:\ftemp>msv rolf.xsd rolf2.xml
No validation errors.

t:\ftemp>


--
Public courses: upcoming world tour of hands-on XSL training events
Each week:    Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
Washington, DC: 2004-03-15            San Francisco, CA: 2004-03-22
Hong Kong: 2004-05-17    Germany: 2004-05-24    England: 2004-06-07
World-wide on-site corporate, government & user group XML training!

G. Ken Holman                  mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.           http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness   http://www.CraneSoftwrights.com/x/bc
Received on Wednesday, 18 February 2004 17:15:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:41 GMT