diff options
Diffstat (limited to 'valid.c')
-rw-r--r-- | valid.c | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -2325,11 +2325,11 @@ xmlDumpNotationDecl(xmlBufferPtr buf, xmlNotationPtr nota) { xmlBufferWriteQuotedString(buf, nota->PublicID); if (nota->SystemID != NULL) { xmlBufferWriteChar(buf, " "); - xmlBufferWriteCHAR(buf, nota->SystemID); + xmlBufferWriteQuotedString(buf, nota->SystemID); } } else { xmlBufferWriteChar(buf, " SYSTEM "); - xmlBufferWriteCHAR(buf, nota->SystemID); + xmlBufferWriteQuotedString(buf, nota->SystemID); } xmlBufferWriteChar(buf, " >\n"); } @@ -3306,8 +3306,9 @@ xmlValidateNamesValue(const xmlChar *value) { cur += len; } - while (IS_BLANK(val)) { - while (IS_BLANK(val)) { + /* Should not test IS_BLANK(val) here -- see erratum E20*/ + while (val == 0x20) { + while (val == 0x20) { val = xmlStringCurrentChar(NULL, cur, &len); cur += len; } @@ -3418,8 +3419,9 @@ xmlValidateNmtokensValue(const xmlChar *value) { cur += len; } - while (IS_BLANK(val)) { - while (IS_BLANK(val)) { + /* Should not test IS_BLANK(val) here -- see erratum E20*/ + while (val == 0x20) { + while (val == 0x20) { val = xmlStringCurrentChar(NULL, cur, &len); cur += len; } |