[DDI-users] DDI schema 2.1 (Winona Salesky)

Mark R. Diggory mdiggory at latte.harvard.edu
Mon Jan 16 14:39:27 EST 2006


Actually, after some minor review, I determined the correction should 
actually look like:

>         <xs:sequence>
>             <xs:choice maxOccurs="unbounded">
>                 <xs:element name="range" type="rangeType"/>
>                 <xs:element name="item" type="itemType"/>
>             </xs:choice>
>             <xs:element name="key" type="keyType" minOccurs="0"/>
>             <xs:element name="notes" type="notesType" minOccurs="0" 
> maxOccurs="unbounded"/>
>         </xs:sequence>

And is this way in and prior to Version1-3.xsd. I made corrections in 
the CVS tree and am currently working on changes for the formating tags 
there today as well.

Cheers,
Mark

Mark R. Diggory wrote:

> I would like to add that for some of us w3c schema is a necessity. 
> Having a correct schema version of the DDI is paramount. So any 
> obvious error will be will be handled expeditiously. I will add this 
> on to the other formatting tag corrections we will be resolving this 
> week.
>
> I do clearly see the problem, in the DTD:
>
>> <!ELEMENT valrng  ((range | item)+, key?, 
>> notes*)                       >
>> <!ATTLIST valrng
>>       %a.global;   
>
>
> was translated in creating the schema to the following, clearly an error:
>
>> <xs:complexType name="valrngType">
>>         <xs:sequence>
>>             <xs:element name="range" type="rangeType" 
>> maxOccurs="unbounded"/>
>>             <xs:element name="item" type="itemType" 
>> maxOccurs="unbounded"/>
>>             <xs:element name="key" type="keyType" minOccurs="0"/>
>>             <xs:element name="notes" type="notesType" minOccurs="0" 
>> maxOccurs="unbounded"/>
>>         </xs:sequence>
>>         <xs:attributeGroup ref="GLOBALS"/>
>>     </xs:complexType>
>
>
> ... more logically, it should look like this:
>
>>     <xs:complexType name="valrngType">
>>         <xs:sequence>
>>             <xs:choice minOccurs="1" maxOccurs="unbounded">
>>                 <xs:element name="item" type="itemType" minOccurs="0" 
>> maxOccurs="1"/>
>>                 <xs:element name="range" type="rangeType" 
>> minOccurs="0" maxOccurs="1"/>
>>             </xs:choice>
>>             <xs:element name="key" type="keyType" minOccurs="0"/>
>>             <xs:element name="notes" type="notesType" minOccurs="0" 
>> maxOccurs="unbounded"/>
>>         </xs:sequence>
>>         <xs:attributeGroup ref="GLOBALS"/>
>>     </xs:complexType>
>
>
> I see this error as well for invalrng as well, I can make these 
> modifications in the schema maintained on our sourceforge site.
>
> -Mark Diggory
> Harvard MIT Data Center
>
> Sanda Ionescu wrote:
>
>> Hi, Winona.
>> To cut a long story short, the DDI schema(s) on our site, irrespective
>> of version, are known to contain errors. We have fixed some as we found
>> them, but there may be others that we are not aware of.
>> Therefore it is best to continue to use the DTDs (which are correct) for
>> document creation and validation.
>> Good luck, and let me know if you have questions.
>> Sanda.
>>
>>
>> -----Original Message-----
>> From: ddi-users-bounces at icpsr.umich.edu
>> [mailto:ddi-users-bounces at icpsr.umich.edu] On Behalf Of
>> ddi-users-request at icpsr.umich.edu
>> Sent: Friday, January 13, 2006 12:01 PM
>> To: ddi-users at icpsr.umich.edu
>> Subject: DDI-users Digest, Vol 21, Issue 2
>>
>> Send DDI-users mailing list submissions to
>>     ddi-users at icpsr.umich.edu
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>     http://www.icpsr.umich.edu/mailman/listinfo/ddi-users
>> or, via email, send a message with subject or body 'help' to
>>     ddi-users-request at icpsr.umich.edu
>>
>> You can reach the person managing the list at
>>     ddi-users-owner at icpsr.umich.edu
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of DDI-users digest..."
>>
>>
>> Today's Topics:
>>
>>   1. DDI schema 2.1 (Winona Salesky)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Fri, 13 Jan 2006 10:15:45 -0500
>> From: "Winona Salesky" <wmeltzer at Princeton.EDU>
>> Subject: [DDI-users] DDI schema 2.1
>> To: <ddi-users at icpsr.umich.edu>
>> Message-ID: <200601131514.k0DFEGWg025727 at smtpserver1.Princeton.EDU>
>> Content-Type: text/plain; charset="us-ascii"
>>
>> Hi,
>>
>> Is anybody using the DDI schema 2.1? We are moving our files over from
>> DTD
>> to schema and I have run into a very odd validation error. In our
>> variable
>> description we frequently use <valrng>, according to the example in the
>> tag
>> library we are using this correctly:
>>
>>
>>
>> <valrng><range min="1" max="3" /></valrng>
>>
>>
>>
>> However, the above example doesn't validate, because <range> and <item>
>> are
>> both mandatory tags in <valrng>. In order to make the above validate I
>> would
>> need to include an <item> tag:
>>
>>
>>
>> <valrng><range min="1" max="3" /><item VALUE="1"/></valrng>
>>
>> This second example validates just fine, but seems redundant, what is
>> the
>> point of having a range if you need to specify the individual values. Is
>> this a mistake in the schema? Am I misusing these tags?
>>
>> Any help is appreciated.
>> Thanks,
>>
>> -Winona Salesky
>> Applications Delivery Specialist
>> wmeltzer at princeton.edu
>> CPANDA [www.cpanda.org]
>> Princeton University Library
>>
>>
>>
>>
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> http://www.icpsr.umich.edu/pipermail/ddi-users/attachments/20060113/5aa6
>> 4d60/attachment-0001.html
>>
>> ------------------------------
>>
>> _______________________________________________
>> DDI-users mailing list
>> DDI-users at icpsr.umich.edu
>> http://www.icpsr.umich.edu/mailman/listinfo/ddi-users
>>
>>
>> End of DDI-users Digest, Vol 21, Issue 2
>> ****************************************
>>
>> _______________________________________________
>> DDI-users mailing list
>> DDI-users at icpsr.umich.edu
>> http://www.icpsr.umich.edu/mailman/listinfo/ddi-users
>>  
>>
> _______________________________________________
> DDI-users mailing list
> DDI-users at icpsr.umich.edu
> http://www.icpsr.umich.edu/mailman/listinfo/ddi-users



More information about the DDI-users mailing list