[DDI-SRG] schema for DDI 3.1

Wendy Thomas wlt at pop.umn.edu
Wed Jul 8 09:37:22 EDT 2009



As noted earlier this was not in any 3.0 version. Further testing in 
Stylus Studio shows 3.1 instance.xsd valid both with and without the line. 
Also xml:lang is valid with or without this declaration.

I'm just testing things here. I leave it up to you to determine what is 
correct.

Wendy





On Wed, 8 Jul 2009, A. Gregory wrote:

> Folks:
>
> Here's what I don't understand. Presumably, XMetal didn't choke on the
> existing, published 3.0 schemas which bind the xml namespace (see, for
> example, the reusable schema module.) Why, then, now, does it suddenly
> choke?
>
> Sanda: did you use XMetal for the 3.0 version of DDI?
>
> Cheers,
>
> Arofan
>
> -----Original Message-----
> From: Joachim Wackerow [mailto:joachim.wackerow at gesis.org]
> Sent: Wednesday, July 08, 2009 12:59 AM
> To: A. Gregory
> Cc: 'Pascal Heus'; 'Wendy Thomas'; 'TIC list'; 'Sanda Ionescu'; 'Mary
> Vardigan'
> Subject: Re: [DDI-SRG] schema for DDI 3.1
>
> One the one hand hand DDI should follow the spec. On the other hand DDI
> should validate in major editors and parsers like XMetal (Sanda
> mentioned it).
>
> We should verify that DDI can be validated in major editors and parsers.
> When an issue raises just with one of them, we can take following action:
> - document the issue on the DDI web site
> - email the vendor about the issue (like I did with a previous version
> of XMLSpy).
>
> Achim
>
> A. Gregory wrote:
>> Pascal:
>>
>>
>>
>> It has always been there, in at least one of the schemas.
>>
>>
>>
>> I know this is a weird interpretation of the spec, but when I tested
>> this most parsers choked if it wasn't declared. Some tools like it, some
>> don't, but the majority do, from my tests.
>>
>>
>>
>> It is **not** illegal to explicitly declare the xml namespace binding,
>> so long as it is bound to the namespace stated.
>>
>>
>>
>> Cheers,
>>
>>
>>
>> Arofan
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> *From:* Pascal Heus [mailto:pascal.heus at gmail.com]
>> *Sent:* Tuesday, July 07, 2009 8:55 AM
>> *To:* Wendy Thomas
>> *Cc:* A. Gregory; 'TIC list'; 'Sanda Ionescu'; 'Mary Vardigan'
>> *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"
>>
>>
>>
>> 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>
>>> [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
> <mailto: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 <mailto:DDI-SRG at icpsr.umich.edu>
>>
>> http://www.icpsr.umich.edu/mailman/listinfo/ddi-srg
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> DDI-SRG mailing list
>> DDI-SRG at icpsr.umich.edu
>> http://www.icpsr.umich.edu/mailman/listinfo/ddi-srg
>
>
> -- 
> GESIS - Leibniz Institute for the Social Sciences
> Postal address: P.O. Box 122155, 68072 Mannheim, Germany
> Visiting address: B2 1, 68159 Mannheim, Germany
> Phone: +49 (0)621 1246 262
> Fax: +49 (0)621 1246 100
> E-mail: joachim.wackerow at gesis.org
> www.gesis.org/en/institute/
>

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


More information about the DDI-SRG mailing list