[DDI-SRG] schema for DDI 3.1
Joachim Wackerow
joachim.wackerow at gesis.org
Thu Jul 9 05:58:01 EDT 2009
XML Spy Enterprise Edition version 2008 rel 2 sp2
Valid with and without xmlns attribute for xml namespace.
Valid with import for xml namespace.
Not valid without import for xml namespace.
Achim
Wendy Thomas wrote:
> test it...I think you are the person using it
>
>
> On Wed, 8 Jul 2009, Joachim Wackerow wrote:
>
>> Should I test with XMLSpy or is it already done?
>>
>> Achim
>>
>> A. Gregory wrote:
>>> J:
>>>
>>> Agreed. This is exactly what I've found running a few tests here.
>>>
>>> Cheers,
>>>
>>> Arofan
>>>
>>> -----Original Message-----
>>> From: ddi-srg-bounces at icpsr.umich.edu
>>> [mailto:ddi-srg-bounces at icpsr.umich.edu] On Behalf Of J Gager
>>> Sent: Wednesday, July 08, 2009 7:41 AM
>>> To: 'A. Gregory'; 'Wendy Thomas'
>>> Cc: 'TIC list'; 'Sanda Ionescu'; 'Mary Vardigan'
>>> Subject: Re: [DDI-SRG] schema for DDI 3.1
>>>
>>> This is the rub when creating standard schemas - you want them to
>>> work in as
>>> many tools as possible, but different tools implement the specification
>>> differently. There are always compromises to be made. Although
>>> something may
>>> technically be correct, we should be as lenient as possible as to how we
>>> interpret the spec.
>>>
>>> I have yet to come across a tool that requires that the xml namespace
>>> prefix
>>> be declared. I have found plenty that want the schema imported, but none
>>> that require you to declare that namespace. As Wendy pointed out,
>>> this was
>>> new in the 3.1 instance.xsd. Since we have yet to find tools that
>>> require it
>>> (including while 3.0 was being used) but have found tools that don't
>>> like it
>>> - we should remove it.
>>>
>>> J
>>>
>>> -----Original Message-----
>>> From: ddi-srg-bounces at icpsr.umich.edu
>>> [mailto:ddi-srg-bounces at icpsr.umich.edu] On Behalf Of A. Gregory
>>> Sent: Wednesday, July 08, 2009 9:43 AM
>>> To: 'A. Gregory'; 'Wendy Thomas'
>>> Cc: 'TIC list'; 'Sanda Ionescu'; 'Mary Vardigan'
>>> Subject: Re: [DDI-SRG] schema for DDI 3.1
>>>
>>> Oops - I lie. It wants the xml namespace imported, but it doesn't care
>>> whether you have the xmlns attribute or not.
>>>
>>> Cheers,
>>>
>>> Arofan
>>>
>>> -----Original Message-----
>>> From: ddi-srg-bounces at icpsr.umich.edu
>>> [mailto:ddi-srg-bounces at icpsr.umich.edu] On Behalf Of A. Gregory
>>> Sent: Wednesday, July 08, 2009 5:42 AM
>>> To: 'Wendy Thomas'
>>> Cc: 'TIC list'; 'Sanda Ionescu'; 'Mary Vardigan'
>>> Subject: Re: [DDI-SRG] schema for DDI 3.1
>>>
>>> Wendy:
>>>
>>> Oxygen is the same as Stylus.
>>>
>>> Can somebody check it with Spy?
>>>
>>> Cheers,
>>>
>>> Arofan
>>>
>>> -----Original Message-----
>>> From: Wendy Thomas [mailto:wlt at pop.umn.edu]
>>> Sent: Wednesday, July 08, 2009 5:37 AM
>>> To: A. Gregory
>>> Cc: 'Joachim Wackerow'; 'Pascal Heus'; 'TIC list'; 'Sanda Ionescu';
>>> 'Mary
>>> Vardigan'
>>> Subject: RE: [DDI-SRG] schema for DDI 3.1
>>>
>>>
>>>
>>> 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
>>>
>>> _______________________________________________
>>> DDI-SRG mailing list
>>> 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
>>>
>>> _______________________________________________
>>> DDI-SRG mailing list
>>> 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/
>> _______________________________________________
>> DDI-SRG mailing list
>> DDI-SRG at icpsr.umich.edu
>> http://www.icpsr.umich.edu/mailman/listinfo/ddi-srg
>>
>
> 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
--
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/
More information about the DDI-SRG
mailing list