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

2005-09-14 Thread GUY Fabrice
Hi,On 9/13/05, Kasimier Buchcik [EMAIL PROTECTED] wrote: Hi,On Thu, 2005-08-18 at 18:58 +0200, GUY Fabrice wrote: [EMAIL PROTECTED]:/data/home/kbuchcik/gnomecvs/tests$ xmllint --noout --schema keyref.xsd keyref.xml keyref.xml:6: Schemas validity error : Element 'element2': No match found for

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

2005-08-23 Thread Kasimier Buchcik
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?

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

2005-08-18 Thread GUY Fabrice
[EMAIL PROTECTED]:/data/home/kbuchcik/gnomecvs/tests$ xmllint --noout --schema keyref.xsd keyref.xml keyref.xml:6: Schemas validity error : Element 'element2': No match found for key-sequence ['test'] of key reference 'keyref'. keyref.xml fails to validate Is the output OK for you? I

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

2005-08-11 Thread Kasimier Buchcik
Hi, On Thu, 2005-08-11 at 13:14 +0200, GUY Fabrice wrote: Hi, I'm using key / keyref constraints in my schema, and in case of error the behaviour of the report message is not the same with libxml2-2.6.19 and libxml2-2.6.20 : - with the 2.6.19 version, the error is carried by the element

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

2005-08-11 Thread GUY Fabrice
maybe the line of the reference can be saved at the same time of the value, that's what I did for ID in DTD validation when streaming. And it is sufficient for the error report you don't need to keep a pointer to the node. For error report it is sufficient, but I suppose that for error