mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
patch from Matthew Burgess to improve some schemas facets validation
* xmlschemas.c: patch from Matthew Burgess to improve some schemas facets validation messages. Daniel
This commit is contained in:
parent
0dcc50ae48
commit
f35984584e
@ -1,3 +1,8 @@
|
||||
Tue Apr 5 13:10:06 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xmlschemas.c: patch from Matthew Burgess to improve some schemas
|
||||
facets validation messages.
|
||||
|
||||
Sat Apr 2 12:48:41 CEST 2005 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* doc/* configure.in NEWS: preparing release 2.6.19, updated docs and
|
||||
|
21
NEWS
21
NEWS
@ -15,6 +15,27 @@ ChangeLog.html
|
||||
to the CVS at
|
||||
http://cvs.gnome.org/viewcvs/libxml2/
|
||||
code base.There is the list of public releases:
|
||||
2.6.19: Apr 02 2005:
|
||||
- build fixes: drop .la from RPMs, --with-minimum build fix (William
|
||||
Brack), use XML_SOCKLEN_T instead of SOCKLEN_T because it breaks with
|
||||
AIX 5.3 compiler, fixed elfgcchack.h generation and PLT reduction
|
||||
code on Linux/ELF/gcc4
|
||||
- bug fixes: schemas type decimal fixups (William Brack), xmmlint return
|
||||
code (Gerry Murphy), small schemas fixes (Matthew Burgess and
|
||||
GUY Fabrice), workaround "DAV:" namespace brokeness in c14n (Aleksey
|
||||
Sanin), segfault in Schemas (Kasimier Buchcik), Schemas attribute
|
||||
validation (Kasimier), Prop related functions and xmlNewNodeEatName
|
||||
(Rob Richards), HTML serialization of name attribute on a elements,
|
||||
Python error handlers leaks and improvement (Brent Hendricks),
|
||||
uninitialized variable in encoding code, Relax-NG validation bug,
|
||||
potential crash if gnorableWhitespace is NULL, xmlSAXParseDoc and
|
||||
xmlParseDoc signatures, switched back to assuming UTF-8 in case
|
||||
no encoding is given at serialization time
|
||||
- improvements: lot of work on Schemas by Kasimier Buchcik on facets
|
||||
checking and also mixed handling.
|
||||
-
|
||||
|
||||
|
||||
2.6.18: Mar 13 2005:
|
||||
- build fixes: warnings (Peter Breitenlohner), testapi.c generation,
|
||||
Bakefile support (Francesco Montorsi), Windows compilation (Joel Reed),
|
||||
|
20
xmlschemas.c
20
xmlschemas.c
@ -1684,18 +1684,26 @@ xmlSchemaVFacetErr(xmlSchemaValidCtxtPtr ctxt,
|
||||
"maximum value allowed ('%s').\n");
|
||||
xmlSchemaVErr(ctxt, node, error, (const char *) msg, value,
|
||||
facet->value);
|
||||
#if 0
|
||||
} else if (facetType == XML_SCHEMA_FACET_MINEXCLUSIVE) {
|
||||
msg = xmlStrcat(msg, BAD_CAST "The value '%s' is less than the "
|
||||
"minimum exclusive value allowed ('%s').\n");
|
||||
msg = xmlStrcat(msg, BAD_CAST "The value '%s' must be less than "
|
||||
"'%s'.\n");
|
||||
xmlSchemaVErr(ctxt, node, error, (const char *) msg, value,
|
||||
facet->value);
|
||||
} else if (facetType == XML_SCHEMA_FACET_MAXEXCLUSIVE) {
|
||||
msg = xmlStrcat(msg, BAD_CAST "The value '%s' is greater than the "
|
||||
"maximum exclusive value allowed ('%s').\n");
|
||||
msg = xmlStrcat(msg, BAD_CAST "The value '%s' must be more than "
|
||||
"'%s'.\n");
|
||||
xmlSchemaVErr(ctxt, node, error, (const char *) msg, value,
|
||||
facet->value);
|
||||
#endif
|
||||
} else if (facetType == XML_SCHEMA_FACET_TOTALDIGITS) {
|
||||
msg = xmlStrcat(msg, BAD_CAST "The value '%s' has more "
|
||||
"digits than are allowed ('%s').\n");
|
||||
xmlSchemaVErr(ctxt, node, error, (const char*) msg, value,
|
||||
facet->value);
|
||||
} else if (facetType == XML_SCHEMA_FACET_FRACTIONDIGITS) {
|
||||
msg = xmlStrcat(msg, BAD_CAST "The value '%s' has more fractional "
|
||||
"digits than are allowed ('%s').\n");
|
||||
xmlSchemaVErr(ctxt, node, error, (const char*) msg, value,
|
||||
facet->value);
|
||||
} else if (node->type == XML_ATTRIBUTE_NODE) {
|
||||
msg = xmlStrcat(msg, BAD_CAST "The value '%s' is not facet-valid.\n");
|
||||
xmlSchemaVErr(ctxt, node, error, (const char *) msg, value, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user