|
top
|
Subject: Re: lementFormDefault='unqualified' Author: (Deleted User) Date: 22 Oct 2002 10:53 AM
|
Hi Robert,
I cannot be specific without looking at your XML Schema, but I think your
problems is caused by a definition like this:
{xsd:schema targetNamespace="xxx" xmlns="xxx"
elementFormDefault="unqualified" }
....
{xsd:element name="a"}
...
{xsd:element ref="header"/}
Now, you expect that "header" is considered to be in the "xxx" namespace,
being it the default namespace; instead, because of the "unqualified"
setting, it is put in no namespace (as it has no prefix).
So, when you use it inside your XML file, you get the error "Element
'header' should be un-qualified" meaning "you should make so that there is
no default namespace in place when you use it".
You have two choices at this point:
a) you switch to elementFormDefault="qualified"; in this case, having a
default namespace in place in the XML Schema, "header" will be part of it
b) you really want "header" to be in no namespace; in this case you should
remove the prefix or unset the default namespace in the XML file, like in
{header xmlns=""/}
Hope this helps,
Alberto
|
|
|