summaryrefslogtreecommitdiff
path: root/valid.c
diff options
context:
space:
mode:
Diffstat (limited to 'valid.c')
-rw-r--r--valid.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/valid.c b/valid.c
index 15514d8..6b2d08e 100644
--- a/valid.c
+++ b/valid.c
@@ -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;
}