[DDI-users] DDI validation
Joachim Wackerow
joachim.wackerow at gesis.org
Wed Sep 26 05:24:47 EDT 2007
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
More information about the DDI-users
mailing list