int depth; /* current depth */
xmlDocPtr doc; /* current document */
xmlNodePtr node; /* current node */
- xmlDictPtr dict; /* the doc dictionary */
+ xmlDictPtr dict; /* the doc dictionnary */
int check; /* do just checkings */
int errors; /* number of errors found */
- int nodict; /* if the document has no dictionary */
+ int nodict; /* if the document has no dictionnary */
int options; /* options */
};
NULL, NULL, NULL, 0, 0,
"%s", msg);
}
-static void LIBXML_ATTR_FORMAT(3,0)
+static void
xmlDebugErr2(xmlDebugCtxtPtr ctxt, int error, const char *msg, int extra)
{
ctxt->errors++;
NULL, NULL, NULL, 0, 0,
msg, extra);
}
-static void LIBXML_ATTR_FORMAT(3,0)
+static void
xmlDebugErr3(xmlDebugCtxtPtr ctxt, int error, const char *msg, const char *extra)
{
ctxt->errors++;
* @ctxt: the debug context
* @name: the name
*
- * Do debugging on the name, for example the dictionary status and
+ * Do debugging on the name, for example the dictionnary status and
* conformance to the Name production.
*/
static void
((ctxt->doc == NULL) ||
((ctxt->doc->parseFlags & (XML_PARSE_SAX1 | XML_PARSE_NODICT)) == 0))) {
xmlDebugErr3(ctxt, XML_CHECK_OUTSIDE_DICT,
- "Name is not from the document dictionary '%s'",
+ "Name is not from the document dictionnary '%s'",
(const char *) name);
}
}
/* desactivated right now as it raises too many errors */
if (doc->type == XML_DOCUMENT_NODE)
xmlDebugErr(ctxt, XML_CHECK_NO_DICT,
- "Document has no dictionary\n");
+ "Document has no dictionnary\n");
#endif
ctxt->nodict = 1;
}