[DDI-users] R: DDI validation

Gay gay at irer.it
Fri Sep 28 07:04:07 EDT 2007


Hello Achim 

Following your advice, I've tried another free XML editor, XMLPad, that
validates my first DDI instance without any problems.

If it's not too much trouble, could you send me a "simple" valid DDI 3.0
instance?


Thank you very much.


Guido Gay
Responsabile di progetto 

-----
IReR - Istituto Regionale di Ricerca della Lombardia
Via Copernico, 38 20125 Milano
tel. 02.67.38.30.229

fax. 02.66.96.945
e.mail gay at irer.it
www.irer.it



Confidentiality Notice

Il presente messaggio, e ogni eventuale documento a questo allegato,potrebbe
contenere informazioni da considerarsi strettamente riservate ad esclusivo
utilizzo del destinatario in indirizzo, il quale e' l'unico autorizzato ad
usarlo, copiarlo e, sotto la propria responsabilità, diffonderlo. Chiunque
ricevesse questo messaggio per errore o comunque lo leggesse senza esserne
legittimato e' avvertito che trattenerlo, copiarlo, divulgarlo, distribuirlo
a persone diverse dal destinatario e' severamente proibito ed e' pregato di
darne notizia immediatamente al mittente oltre che cancellare il messaggio e
i suoi eventuali allegati dal proprio sistema. Le opinioni espresse nel
messaggio sono quelle proprie del mittente, se non diversamente e
specificatamente dichiarato dal mittente stesso.


This message, and any attached file transmitted with it, contains
information that may be confidential or privileged for the sole use of the
intended recipient who only may use, copy and, under his responsibility,
further disseminate it. If you are not the intended recipient  of this
e-mail or read it without entitlement be advised that keeping, copying,
disseminating or distributing this message to persons other than the
intended recipient is strictly forbidden. You are to notify immediately to
the sender and to delete this message and any file attached from your
system. Any views expressed in this message are those of the individual
sender, except where the sender specifically states otherwise.


-----Messaggio originale-----
Da: ddi-users-bounces at icpsr.umich.edu
[mailto:ddi-users-bounces at icpsr.umich.edu] Per conto di Joachim Wackerow
Inviato: mercoledì 26 settembre 2007 11.25
A: Data Documentation Initiative Users Group
Oggetto: Re: [DDI-users] DDI validation

Hello Guido

The file is valid. I tested it with XML Spy. It seems to be an error related
to the XML Copy editor. You can also validate with some XSLT processors like
XALAN. Some tools stumble over the duplicate definition of xml:lang etc.
like XML Mind Editor. XML Mind Editor Personal edition is another free XML
editor which is aware of XML Schema.

Achim

Gay wrote:
> Dear sirs,
> I'm trying to validate the following DDI instance:
> 
> <?xml version="1.0" encoding="UTF-8"?> <ddi:DDIInstance 
> xmlns:ddi="ddi:instance:3_0_CR"
> xmlns:r="ddi:reusable:3_0_CR"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xsi:schemaLocation="ddi:instance:3_0_CR instance.xsd">
>   <r:MaintainableID>
>   <r:ID>  2006B003 </r:ID> 
>   </r:MaintainableID>
>  </ddi:DDIInstance>
> 
> But, using XML Copy Editor, I get the following error (or warning):
> 
> Error at line 2, column 190: Elemento denominato <attribute> duplicato :
> nome = "{http://www.w3.org/XML/1998/namespace}lang". Source text:
> <ddi:DDIInstance xmlns:ddi="ddi:instance:3_0_CR"
> xmlns:r="ddi:reusable:3_0_CR"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="ddi:instance:3_0_CR instance.xsd">
> 
> Translation: "Elemento denominato <attribute> duplicato : nome =" -> 
> "duplicate element named  <attribute> : name = "
> 
> All .xsd 3_0_CR files are in the same directory containing the XML
instance.
> 
> Could you help me?
> 
> Thank you
> 
> 
> Guido Gay
> Responsabile di progetto
> 
> -----
> IReR - Istituto Regionale di Ricerca della Lombardia Via Copernico, 38 
> 20125 Milano tel. 02.67.38.30.229
> 
> fax. 02.66.96.945
> e.mail gay at irer.it
> www.irer.it

_______________________________________________
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