[xml] "XML Schema attribute use patch, the second"



Hi,

Please find attached a possible patch for bug #136678 [1]. It implements 
validation of the attribute "use" XML Schema item. Feel free to modify. 
I'm a bit unsure about how to name and where to put the additional 
constants and error types.

I don't know if the last patch made it to the list. It had the drawback 
that if an attribute, invalid due to the "use" definition was 
encountered, all following attributes were mistaken as invalid as well, 
since the validation function was exited. This patch should be used 
instead.

Additionally: It tries to solve bug #136678 - *not* bug #139791 as I 
wrote in the last mail.


Kasimier

[1] http://bugzilla.gnome.org/show_bug.cgi?id=136678

Attachment: xsd_attr_use_schemasInternals.h.diff
Description: Text Data

Attachment: xsd_attr_use_xmlerror.h.diff
Description: Text Data

Attachment: xsd_attr_use_xmlschemas.c.diff
Description: Text Data

Attachment: xsd_attr_use_test_invalid_02.xml
Description: Text Data

Attachment: xsd_attr_use_test.xsd
Description: Text Data

Attachment: xsd_attr_use_test_invalid_01.xml
Description: Text Data

Attachment: xsd_attr_use_test.xml
Description: Text Data



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