Changed xmlSchemaFormatIDCKeySequence() to use
* xmlschemas.c: Changed xmlSchemaFormatIDCKeySequence()
to use xmlSchemaGetCanonValueWhtspExt() in order to
correctly report values for xs:anySimpleType.
* test/schemas/idc-keyref-err1*
result/schemas/idc-keyref-err1*: Added a test for this change.
diff --git a/xmlschemas.c b/xmlschemas.c
index d30ad07..f72dc04 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -22156,15 +22156,16 @@
int count)
{
int i, res;
- const xmlChar *value = NULL;
+ xmlChar *value = NULL;
*buf = xmlStrdup(BAD_CAST "[");
for (i = 0; i < count; i++) {
*buf = xmlStrcat(*buf, BAD_CAST "'");
- res = xmlSchemaGetCanonValueWhtsp(seq[i]->val, &value,
- xmlSchemaGetWhiteSpaceFacetValue(seq[i]->type));
+ res = xmlSchemaGetCanonValueWhtspExt(seq[i]->val,
+ xmlSchemaGetWhiteSpaceFacetValue(seq[i]->type),
+ &value);
if (res == 0)
- *buf = xmlStrcat(*buf, value);
+ *buf = xmlStrcat(*buf, BAD_CAST value);
else {
VERROR_INT("xmlSchemaFormatIDCKeySequence",
"failed to compute a canonical value");
@@ -22175,7 +22176,7 @@
else
*buf = xmlStrcat(*buf, BAD_CAST "'");
if (value != NULL) {
- xmlFree((xmlChar *) value);
+ xmlFree(value);
value = NULL;
}
}