Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: schema namespace error in xerces

From: ht@---.--.--.-- (----- -. --------)
To: "Karen Smith" <KSmith@------.--->
Date: 5/20/2004 11:14:00 AM
Well, you haven't given quite enough information, but there's
something odd in what you _have_ provided:

<Device xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:hl7-org:v3 C:\\COCT_MT140000.xsd">

This says
  Device is in no known namespace
  A schema document for elements etc. in namespace "urn:h17-org:v3"
      can be found at C:\\COCT_MT140000.xsd

There are at least two potential problems here:

 1) The element is not in the namespace you say the schema document is
     for;
 2) C:\\COCT_MT140000.xsd is not a valid URI

I'm not sure which way to fix the first problem (either include
 xmlns="urn:h17-org:v3" on the Device element, or change to
 xsi:noNamespaceSchemaLocation), but I'm guessing you need/want the
namespace declaration.

Fix the second problem by using file:///C:/COCT_MT140000.xsd

Second set of possible problems:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

This does not specify a targetNamespace, that is, the namespace the
elements and types are being declared/defined in.  If this is
COCT_MT140000.xsd, then I'm guessing you need/want
targetNamespace="urn:hl7-org:v3", in which case you will at least need
to declare e.g. xmlns:h="urn:hl7-org:v3" and change

 type="COCT_MT140000.Device"

to

 type="h:COCT_MT140000.Device"
 
In other words -- make sure each of your schema documents, and your
instance document, have a consistent story about what namespace things
are in, as reflected by namespace declarations, qualified names,
xsi:schemaLocation, targetNamespace and include/import.

ht
-- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@i...
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]

From nobody@w...  Fri May 21 00:29:12 2004
Return-Path: <nobody@w...>
X-O


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent