[DDI-SRG] schema for DDI 3.1
J Gager
j.b.gager at gmail.com
Tue Jul 7 14:45:17 EDT 2009
Absolutely :)
From: Sanda Ionescu [mailto:sandai at umich.edu]
Sent: Tuesday, July 07, 2009 2:41 PM
To: J Gager; Pascal Heus; Wendy Thomas
Cc: TIC list; Mary Vardigan; A. Gregory
Subject: RE: [DDI-SRG] schema for DDI 3.1
OK, thanks.
But, let us also remove that text from the published version whenever it is
ready to publish - does that make sense?
Sanda.
Sanda Ionescu
ICPSR
University of Michigan
P.O. Box 1248
Ann Arbor, MI 48106
Phone, Fax: 734-615-7890
From: J Gager [mailto:j.b.gager at gmail.com]
Sent: Tuesday, July 07, 2009 1:26 PM
To: 'Pascal Heus'; 'Wendy Thomas'
Cc: 'TIC list'; Sanda Ionescu; Mary Vardigan; 'A. Gregory'
Subject: RE: [DDI-SRG] schema for DDI 3.1
Wendy is right. The issue is due to the instance.xsd declaring the xml
prefix for the xml namespace, not the import of the xml.xsd module. FYI, the
module itself (xml.xsd) is imported because some processors require it.
However, the namespace should never be declared in the schemas.
Sanda -
To resolve the issue, you should only need to remove the text:
xmlns:xml="http://www.w3.org/XML/1998/namespace"
from line 22 (the line that starts <xs:schema) from the file instance.xsd.
J
From: ddi-srg-bounces at icpsr.umich.edu
[mailto:ddi-srg-bounces at icpsr.umich.edu] On Behalf Of Pascal Heus
Sent: Tuesday, July 07, 2009 12:55 PM
To: Wendy Thomas
Cc: 'TIC list'; 'Sanda Ionescu'; 'Mary Vardigan'; A. Gregory
Subject: Re: [DDI-SRG] schema for DDI 3.1
more...
Namespace Constraint: Prefix Declared
The namespace prefix, unless it is xml or xmlns, must have been declared in
a namespace declaration attribute in either the start-tag of the element
where the prefix is used or in an an ancestor element (i.e. an element in
whose content the prefixed markup occurs). The prefix xml is by definition
bound to the namespace name http://www.w3.org/XML/1998/namespace. The prefix
xmlns is used only for namespace bindings and is not itself bound to any
namespace name.
*P
Wendy Thomas wrote:
Arofan,
I was just checking to see why this came up now but not earlier. It seems
that
xmlns:xml= <http://www.w3.org/XML/1998/namespace>
"http://www.w3.org/XML/1998/namespace"
was not in the first line (<xs:schema etc) in 3.0. It was simply the
first import line. Is there a reason for this? Just curious :)
Wendy
On Tue, 7 Jul 2009, A. Gregory wrote:
Sanda:
Usually this error is caused by tools which don't like the xml.xsd schema.
Try removing any mention of this from the namespace declarations and
imports, and see if that works.
Cheers,
Arofan
_____
From: ddi-srg-bounces at icpsr.umich.edu
[mailto:ddi-srg-bounces at icpsr.umich.edu] On Behalf Of Sanda Ionescu
Sent: Tuesday, July 07, 2009 4:45 AM
To: TIC list
Cc: Mary Vardigan
Subject: [DDI-SRG] schema for DDI 3.1
Hi, all.
I tried to create markup using the draft (?) for 3.1 and my editor would not
load the (Instance) schema.
Error:"Namespace prefix is not allowed to start with the reserved string
xml" - line 22, column 639.
Also, could you please let us know when you think 3.1 might actually be
published?
Sanda.
Sanda Ionescu
ICPSR
University of Michigan
P.O. Box 1248
Ann Arbor, MI 48106
Phone, Fax: 734-615-7890
Wendy L. Thomas Phone: +1 612.624.4389
Data Access Core Director Fax: +1 612.626.8375
Minnesota Population Center Email: wlt at pop.umn.edu
University of Minnesota
50 Willey Hall
225 19th Avenue South
Minneapolis, MN 55455
_______________________________________________
DDI-SRG mailing list
DDI-SRG at icpsr.umich.edu
http://www.icpsr.umich.edu/mailman/listinfo/ddi-srg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.icpsr.umich.edu/pipermail/ddi-srg/attachments/20090707/79d77869/attachment-0001.html
More information about the DDI-SRG
mailing list