Re: [xml] Question about error reporting when using key / keyref constraints in Schema



Hi,

On Thu, 2005-08-18 at 18:58 +0200, GUY Fabrice wrote:

But I noticed that for key and unique constraints, there is no more
indication about the name of the constraint that failed to validate.
For example the following xml file :

<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<ELEMENTS>
<element>test1</element><element>test1</element>
</ELEMENTS>

- with libxml2 version 2.6.19 (using the same schema as above) xmllint outputs :
test-key.xml:3: element element: Schemas validity error : Element
'element' [key 'key']: Duplicate key-sequence found.
test-key.xml fails to validate

- and with libxml2 version 2.6.20
test-key.xml:3: element element: Schemas validity error : Element
'element': Duplicate key-sequence ['test1'].
test-key.xml fails to validate

Would it be possible to have the name of the constraint in the output message ?

Yes, I'll do; I hope you can wait a bit for this though (couple of
days?).

Regards,

Kasimier



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]