1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

switched Relax-NG module to teh new error reporting. Better default

* error.c relaxng.c include/libxml/xmlerror.h: switched Relax-NG
  module to teh new error reporting. Better default report, adds
  the element associated if found, context and node are included
  in the xmlError
* python/tests/reader2.py: the error messages changed.
* result/relaxng/*: error message changed too.
Daniel
This commit is contained in:
Daniel Veillard
2003-10-07 11:33:24 +00:00
parent 141310afa1
commit 4c00414711
36 changed files with 5856 additions and 5625 deletions

View File

@ -1,3 +1,12 @@
Tue Oct 7 13:30:39 CEST 2003 Daniel Veillard <daniel@veillard.com>
* error.c relaxng.c include/libxml/xmlerror.h: switched Relax-NG
module to teh new error reporting. Better default report, adds
the element associated if found, context and node are included
in the xmlError
* python/tests/reader2.py: the error messages changed.
* result/relaxng/*: error message changed too.
Mon Oct 6 10:46:35 CEST 2003 Daniel Veillard <daniel@veillard.com>
* win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc

47
error.c
View File

@ -216,32 +216,39 @@ xmlParserPrintFileContext(xmlParserInputPtr input) {
* routines.
*/
static void
xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str)
xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str,
xmlGenericErrorFunc channel, void *data)
{
char *file = NULL;
int line = 0;
int code = -1;
int domain;
const xmlChar *name = NULL;
xmlNodePtr node;
xmlErrorLevel level;
xmlGenericErrorFunc channel;
xmlParserInputPtr input = NULL;
xmlParserInputPtr cur = NULL;
void *data;
if (err == NULL)
return;
channel = xmlGenericError;
data = xmlGenericErrorContext;
if (channel == NULL) {
channel = xmlGenericError;
data = xmlGenericErrorContext;
}
file = err->file;
line = err->line;
code = err->code;
domain = err->domain;
level = err->level;
node = err->node;
if (code == XML_ERR_OK)
return;
if ((node != NULL) && (node->type == XML_ELEMENT_NODE))
name = node->name;
/*
* Maintain the compatibility with the legacy error handling
*/
@ -264,6 +271,9 @@ xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str)
else
channel(data, "Entity: line %d: ", line);
}
if (name != NULL) {
channel(data, "element %s: ", name);
}
if (code == XML_ERR_OK)
return;
switch (domain) {
@ -303,8 +313,11 @@ xmlReportError(xmlErrorPtr err, xmlParserCtxtPtr ctxt, const char *str)
case XML_FROM_SCHEMAS:
channel(data, "Schemas ");
break;
case XML_FROM_RELAXNG:
channel(data, "Relax-NG ");
case XML_FROM_RELAXNGP:
channel(data, "Relax-NG parser ");
break;
case XML_FROM_RELAXNGV:
channel(data, "Relax-NG validaty ");
break;
case XML_FROM_CATALOG:
channel(data, "Catalog ");
@ -422,11 +435,17 @@ __xmlRaiseError(xmlGenericErrorFunc channel, void *data, void *ctx,
to = &ctxt->lastError;
} else if ((node != NULL) && (file == NULL)) {
int i;
base = xmlNodeGetBase(NULL, node);
if ((node->doc != NULL) && (node->doc->URL != NULL))
base = xmlStrdup(node->doc->URL);
for (i = 0;
((i < 10) && (node != NULL) && (node->type != XML_ELEMENT_NODE));
i++)
node = node->parent;
if ((base == NULL) && (node != NULL) &&
(node->doc != NULL) && (node->doc->URL != NULL))
base = xmlStrdup(node->doc->URL);
if ((node != NULL) && (node->type == XML_ELEMENT_NODE))
line = (int) node->content;
}
@ -454,6 +473,8 @@ __xmlRaiseError(xmlGenericErrorFunc channel, void *data, void *ctx,
to->str3 = (char *) xmlStrdup((const xmlChar *) str3);
to->int1 = int1;
to->int2 = int2;
to->node = node;
to->ctxt = ctxt;
/*
* Find the callback channel.
@ -463,7 +484,7 @@ __xmlRaiseError(xmlGenericErrorFunc channel, void *data, void *ctx,
channel = ctxt->sax->warning;
else
channel = ctxt->sax->error;
data = ctxt;
data = ctxt->userData;
} else if (channel == NULL) {
channel = xmlGenericError;
data = xmlGenericErrorContext;
@ -475,7 +496,10 @@ __xmlRaiseError(xmlGenericErrorFunc channel, void *data, void *ctx,
(channel == xmlParserWarning) ||
(channel == xmlParserValidityError) ||
(channel == xmlParserValidityWarning))
xmlReportError(to, ctxt, str);
xmlReportError(to, ctxt, str, NULL, NULL);
else if ((channel == (xmlGenericErrorFunc) fprintf) ||
(channel == xmlGenericErrorDefaultFunc))
xmlReportError(to, ctxt, str, channel, data);
else
channel(data, "%s", str);
}
@ -782,8 +806,11 @@ xmlCopyError(xmlErrorPtr from, xmlErrorPtr to) {
to->code = from->code;
to->level = from->level;
to->line = from->line;
to->node = from->node;
to->int1 = from->int1;
to->int2 = from->int2;
to->node = from->node;
to->ctxt = from->ctxt;
if (from->message != NULL)
to->message = (char *) xmlStrdup((xmlChar *) from->message);
else

View File

@ -38,7 +38,8 @@ typedef enum {
XML_FROM_XPOINTER, /* The XPointer module */
XML_FROM_REGEXP, /* The regular expressions module */
XML_FROM_SCHEMAS, /* The W3C XML Schemas module */
XML_FROM_RELAXNG, /* The Relax-NG module */
XML_FROM_RELAXNGP, /* The Relax-NG parser module */
XML_FROM_RELAXNGV, /* The Relax-NG validator module */
XML_FROM_CATALOG, /* The Catalog module */
XML_FROM_C14N, /* The Canonicalization module */
XML_FROM_XSLT /* The XSLT engine from libxslt */
@ -64,6 +65,8 @@ struct _xmlError {
char *str3; /* extra string information */
int int1; /* extra number information */
int int2; /* extra number information */
void *ctxt; /* the parser context if available */
void *node; /* the node in the tree */
};
/**
@ -200,13 +203,17 @@ typedef enum {
XML_ERR_URI_FRAGMENT, /* 92 */
XML_WAR_CATALOG_PI, /* 93 */
XML_ERR_NO_DTD, /* 94 */
XML_NS_ERR_XML_NAMESPACE,
XML_ERR_CONDSEC_INVALID_KEYWORD,
XML_ERR_VERSION_MISSING,
XML_WAR_UNKNOWN_VERSION,
XML_WAR_LANG_VALUE,
XML_WAR_NS_URI,
XML_WAR_NS_URI_RELATIVE,
XML_NS_ERR_XML_NAMESPACE = 200,
XML_NS_ERR_UNDEFINED_NAMESPACE,
XML_NS_ERR_QNAME,
XML_NS_ERR_ATTRIBUTE_REDEFINED,
XML_ERR_CONDSEC_INVALID_KEYWORD,
XML_ERR_VERSION_MISSING,
XML_DTD_ATTRIBUTE_DEFAULT,
XML_DTD_ATTRIBUTE_DEFAULT = 500,
XML_DTD_ATTRIBUTE_REDEFINED,
XML_DTD_ATTRIBUTE_VALUE,
XML_DTD_CONTENT_ERROR,
@ -244,12 +251,129 @@ typedef enum {
XML_DTD_UNKNOWN_ENTITY,
XML_DTD_UNKNOWN_ID,
XML_DTD_UNKNOWN_NOTATION,
XML_WAR_UNKNOWN_VERSION,
XML_WAR_LANG_VALUE,
XML_WAR_NS_URI,
XML_WAR_NS_URI_RELATIVE,
XML_HTML_STRUCURE_ERROR,
XML_HTML_UNKNOWN_TAG
XML_HTML_STRUCURE_ERROR = 800,
XML_HTML_UNKNOWN_TAG,
XML_RNGP_ANYNAME_ATTR_ANCESTOR = 1000,
XML_RNGP_ATTR_CONFLICT,
XML_RNGP_ATTRIBUTE_CHILDREN,
XML_RNGP_ATTRIBUTE_CONTENT,
XML_RNGP_ATTRIBUTE_EMPTY,
XML_RNGP_ATTRIBUTE_NOOP,
XML_RNGP_CHOICE_CONTENT,
XML_RNGP_CHOICE_EMPTY,
XML_RNGP_CREATE_FAILURE,
XML_RNGP_DATA_CONTENT,
XML_RNGP_DEF_CHOICE_AND_INTERLEAVE,
XML_RNGP_DEFINE_CREATE_FAILED,
XML_RNGP_DEFINE_EMPTY,
XML_RNGP_DEFINE_MISSING,
XML_RNGP_DEFINE_NAME_MISSING,
XML_RNGP_ELEM_CONTENT_EMPTY,
XML_RNGP_ELEM_CONTENT_ERROR,
XML_RNGP_ELEMENT_EMPTY,
XML_RNGP_ELEMENT_CONTENT,
XML_RNGP_ELEMENT_NO_CONTENT,
XML_RNGP_ELEM_TEXT_CONFLICT,
XML_RNGP_EMPTY,
XML_RNGP_EMPTY_CONSTRUCT,
XML_RNGP_EMPTY_CONTENT,
XML_RNGP_EMPTY_NOT_EMPTY,
XML_RNGP_ERROR_TYPE_LIB,
XML_RNGP_EXCEPT_EMPTY,
XML_RNGP_EXCEPT_MISSING,
XML_RNGP_EXCEPT_MULTIPLE,
XML_RNGP_EXCEPT_NO_CONTENT,
XML_RNGP_EXTERNALREF_EMTPY,
XML_RNGP_EXTERNAL_REF_FAILURE,
XML_RNGP_EXTERNALREF_RECURSE,
XML_RNGP_FORBIDDEN_ATTRIBUTE,
XML_RNGP_FOREIGN_ELEMENT,
XML_RNGP_GRAMMAR_CONTENT,
XML_RNGP_GRAMMAR_EMPTY,
XML_RNGP_GRAMMAR_MISSING,
XML_RNGP_GRAMMAR_NO_START,
XML_RNGP_GROUP_ATTR_CONFLICT,
XML_RNGP_HREF_ERROR,
XML_RNGP_INCLUDE_EMPTY,
XML_RNGP_INCLUDE_FAILURE,
XML_RNGP_INCLUDE_RECURSE,
XML_RNGP_INTERLEAVE_ADD,
XML_RNGP_INTERLEAVE_CREATE_FAILED,
XML_RNGP_INTERLEAVE_EMPTY,
XML_RNGP_INTERLEAVE_NO_CONTENT,
XML_RNGP_INVALID_DEFINE_NAME,
XML_RNGP_INVALID_URI,
XML_RNGP_INVALID_VALUE,
XML_RNGP_MISSING_HREF,
XML_RNGP_NAME_MISSING,
XML_RNGP_NEED_COMBINE,
XML_RNGP_NOTALLOWED_NOT_EMPTY,
XML_RNGP_NSNAME_ATTR_ANCESTOR,
XML_RNGP_NSNAME_NO_NS,
XML_RNGP_PARAM_FORBIDDEN,
XML_RNGP_PARAM_NAME_MISSING,
XML_RNGP_PARENTREF_CREATE_FAILED,
XML_RNGP_PARENTREF_NAME_INVALID,
XML_RNGP_PARENTREF_NO_NAME,
XML_RNGP_PARENTREF_NO_PARENT,
XML_RNGP_PARENTREF_NOT_EMPTY,
XML_RNGP_PARSE_ERROR,
XML_RNGP_PAT_ANYNAME_EXCEPT_ANYNAME,
XML_RNGP_PAT_ATTR_ATTR,
XML_RNGP_PAT_ATTR_ELEM,
XML_RNGP_PAT_DATA_EXCEPT_ATTR,
XML_RNGP_PAT_DATA_EXCEPT_ELEM,
XML_RNGP_PAT_DATA_EXCEPT_EMPTY,
XML_RNGP_PAT_DATA_EXCEPT_GROUP,
XML_RNGP_PAT_DATA_EXCEPT_INTERLEAVE,
XML_RNGP_PAT_DATA_EXCEPT_LIST,
XML_RNGP_PAT_DATA_EXCEPT_ONEMORE,
XML_RNGP_PAT_DATA_EXCEPT_REF,
XML_RNGP_PAT_DATA_EXCEPT_TEXT,
XML_RNGP_PAT_LIST_ATTR,
XML_RNGP_PAT_LIST_ELEM,
XML_RNGP_PAT_LIST_INTERLEAVE,
XML_RNGP_PAT_LIST_LIST,
XML_RNGP_PAT_LIST_REF,
XML_RNGP_PAT_LIST_TEXT,
XML_RNGP_PAT_NSNAME_EXCEPT_ANYNAME,
XML_RNGP_PAT_NSNAME_EXCEPT_NSNAME,
XML_RNGP_PAT_ONEMORE_GROUP_ATTR,
XML_RNGP_PAT_ONEMORE_INTERLEAVE_ATTR,
XML_RNGP_PAT_START_ATTR,
XML_RNGP_PAT_START_DATA,
XML_RNGP_PAT_START_EMPTY,
XML_RNGP_PAT_START_GROUP,
XML_RNGP_PAT_START_INTERLEAVE,
XML_RNGP_PAT_START_LIST,
XML_RNGP_PAT_START_ONEMORE,
XML_RNGP_PAT_START_TEXT,
XML_RNGP_PAT_START_VALUE,
XML_RNGP_PREFIX_UNDEFINED,
XML_RNGP_REF_CREATE_FAILED,
XML_RNGP_REF_CYCLE,
XML_RNGP_REF_NAME_INVALID,
XML_RNGP_REF_NO_DEF,
XML_RNGP_REF_NO_NAME,
XML_RNGP_REF_NOT_EMPTY,
XML_RNGP_START_CHOICE_AND_INTERLEAVE,
XML_RNGP_START_CONTENT,
XML_RNGP_START_EMPTY,
XML_RNGP_START_MISSING,
XML_RNGP_TEXT_EXPECTED,
XML_RNGP_TEXT_HAS_CHILD,
XML_RNGP_TYPE_MISSING,
XML_RNGP_TYPE_NOT_FOUND,
XML_RNGP_TYPE_VALUE,
XML_RNGP_UNKNOWN_ATTRIBUTE,
XML_RNGP_UNKNOWN_COMBINE,
XML_RNGP_UNKNOWN_CONSTRUCT,
XML_RNGP_UNKNOWN_TYPE_LIB,
XML_RNGP_URI_FRAGMENT,
XML_RNGP_URI_NOT_ABSOLUTE,
XML_RNGP_VALUE_EMPTY,
XML_RNGP_VALUE_NO_CONTENT,
XML_RNGP_XML_NS
} xmlParserErrors;
/**

View File

@ -12,10 +12,10 @@ import libxml2
libxml2.debugMemory(1)
err=""
expect="""../../test/valid/rss.xml:177: validity error : Element rss does not carry attribute version
expect="""../../test/valid/rss.xml:177: element rss: validity error : Element rss does not carry attribute version
</rss>
^
../../test/valid/xlink.xml:450: validity error : ID dt-arc already defined
../../test/valid/xlink.xml:450: element termdef: validity error : ID dt-arc already defined
<p><termdef id="dt-arc" term="Arc">An <ter
^
../../test/valid/xlink.xml:530: validity error : attribute def line 199 references an unknown ID "dt-xlg"

11129
relaxng.c

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor10_1_4.xml line 1 element foo
Expecting a namespace for element foo
./test/relaxng/tutor10_1_4.xml:1: element foo: Relax-NG validaty error : Expecting a namespace for element foo

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor10_1_5.xml line 1 element foo
Element foo has wrong namespace: expecting http://www.example.com
./test/relaxng/tutor10_1_5.xml:1: element foo: Relax-NG validaty error : Element foo has wrong namespace: expecting http://www.example.com

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor10_1_6.xml line 1 element foo
Element foo has wrong namespace: expecting http://www.example.com
./test/relaxng/tutor10_1_6.xml:1: element foo: Relax-NG validaty error : Element foo has wrong namespace: expecting http://www.example.com

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor10_2_3.xml line 1 element foo
Expecting no namespace for element foo
./test/relaxng/tutor10_2_3.xml:1: element foo: Relax-NG validaty error : Expecting no namespace for element foo

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor10_2_4.xml line 1 element foo
Expecting no namespace for element foo
./test/relaxng/tutor10_2_4.xml:1: element foo: Relax-NG validaty error : Expecting no namespace for element foo

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor10_7_3.xml line 2 element card
Element card failed to validate attributes
./test/relaxng/tutor10_7_3.xml:2: element card: Relax-NG validaty error : Element card failed to validate attributes

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor10_8_3.xml line 2 element card
Element card failed to validate attributes
./test/relaxng/tutor10_8_3.xml:2: element card: Relax-NG validaty error : Element card failed to validate attributes

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor11_2_2.xml line 3 element card
Invalid attribute foo for element card
./test/relaxng/tutor11_2_2.xml:3: element card: Relax-NG validaty error : Invalid attribute foo for element card

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor11_2_3.xml line 3 element card
Invalid attribute b for element card
./test/relaxng/tutor11_2_3.xml:3: element card: Relax-NG validaty error : Invalid attribute b for element card

View File

@ -1,2 +1,2 @@
Attributes conflicts in group
./test/relaxng/tutor11_3.rng:1: element element: Relax-NG parser error : Attributes conflicts in group
Relax-NG schema ./test/relaxng/tutor11_3.rng failed to compile

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor3_2_1.xml line 1 element email
Did not expect element email there
./test/relaxng/tutor3_2_1.xml:1: element email: Relax-NG validaty error : Did not expect element email there

View File

@ -1,4 +1,2 @@
RNG validity error: file ./test/relaxng/tutor3_5_2.xml line 2 element email
Expecting element name, got email
RNG validity error: file ./test/relaxng/tutor3_5_2.xml line 2 element email
Element card failed to validate content
./test/relaxng/tutor3_5_2.xml:2: element email: Relax-NG validaty error : Expecting element name, got email
./test/relaxng/tutor3_5_2.xml:2: element email: Relax-NG validaty error : Element card failed to validate content

View File

@ -1,2 +1,2 @@
xmlRelaxNGParseElement: element has no content
./test/relaxng/tutor3_7.rng:1: element element: Relax-NG parser error : xmlRelaxNGParseElement: element has no content
Relax-NG schema ./test/relaxng/tutor3_7.rng failed to compile

View File

@ -1,6 +1,3 @@
RNG validity error: file ./test/relaxng/tutor3_7.rng line 1 element element
Expecting an element , got nothing
RNG validity error: file ./test/relaxng/tutor3_7.rng line 1 element element
Invalid sequence in interleave
RNG validity error: file ./test/relaxng/tutor3_7.rng line 1 element element
Element element failed to validate content
./test/relaxng/tutor3_7.rng:1: element element: Relax-NG validaty error : Expecting an element , got nothing
./test/relaxng/tutor3_7.rng:1: element element: Relax-NG validaty error : Invalid sequence in interleave
./test/relaxng/tutor3_7.rng:1: element element: Relax-NG validaty error : Element element failed to validate content

View File

@ -1,2 +1,2 @@
Detected a cycle in inline references
./test/relaxng/tutor4_4.rng:25: element ref: Relax-NG parser error : Detected a cycle in inline references
Relax-NG schema ./test/relaxng/tutor4_4.rng failed to compile

View File

@ -1,2 +1,2 @@
Element bad has a content type error
./test/relaxng/tutor5_3.rng:1: element element: Relax-NG parser error : Element bad has a content type error
Relax-NG schema ./test/relaxng/tutor5_3.rng failed to compile

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor6_1_3.xml line 1 element card
Element card failed to validate attributes
./test/relaxng/tutor6_1_3.xml:1: element card: Relax-NG validaty error : Element card failed to validate attributes

View File

@ -1,4 +1,2 @@
RNG validity error: file ./test/relaxng/tutor6_2_4.xml line 4 element text
Error validating value
RNG validity error: file ./test/relaxng/tutor6_2_4.xml line 4 element text
Element preferredFormat failed to validate content
./test/relaxng/tutor6_2_4.xml:4: element preferredFormat: Relax-NG validaty error : Error validating value
./test/relaxng/tutor6_2_4.xml:4: element preferredFormat: Relax-NG validaty error : Element preferredFormat failed to validate content

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor6_3_1.xml line 1 element card
Element card failed to validate attributes
./test/relaxng/tutor6_3_1.xml:1: element card: Relax-NG validaty error : Element card failed to validate attributes

View File

@ -1,6 +1,3 @@
RNG validity error: file ./test/relaxng/tutor7_1_2.xml line 1 element text
failed to validate type float
RNG validity error: file ./test/relaxng/tutor7_1_2.xml line 1 element text
Error validating list
RNG validity error: file ./test/relaxng/tutor7_1_2.xml line 1 element text
Element vector failed to validate content
./test/relaxng/tutor7_1_2.xml:1: element vector: Relax-NG validaty error : failed to validate type float
./test/relaxng/tutor7_1_2.xml:1: element vector: Relax-NG validaty error : Error validating list
./test/relaxng/tutor7_1_2.xml:1: element vector: Relax-NG validaty error : Element vector failed to validate content

View File

@ -1,6 +1,3 @@
RNG validity error: file ./test/relaxng/tutor7_1_3.xml line 1 element text
Extra data in list: 5.6
RNG validity error: file ./test/relaxng/tutor7_1_3.xml line 1 element text
Error validating list
RNG validity error: file ./test/relaxng/tutor7_1_3.xml line 1 element text
Element vector failed to validate content
./test/relaxng/tutor7_1_3.xml:1: element vector: Relax-NG validaty error : Extra data in list: 5.6
./test/relaxng/tutor7_1_3.xml:1: element vector: Relax-NG validaty error : Error validating list
./test/relaxng/tutor7_1_3.xml:1: element vector: Relax-NG validaty error : Element vector failed to validate content

View File

@ -1,6 +1,3 @@
RNG validity error: file ./test/relaxng/tutor7_2_4.xml line 1 element vector
failed to validate type double
RNG validity error: file ./test/relaxng/tutor7_2_4.xml line 1 element vector
Error validating list
RNG validity error: file ./test/relaxng/tutor7_2_4.xml line 1 element vector
Element vector failed to validate content
./test/relaxng/tutor7_2_4.xml:1: element vector: Relax-NG validaty error : failed to validate type double
./test/relaxng/tutor7_2_4.xml:1: element vector: Relax-NG validaty error : Error validating list
./test/relaxng/tutor7_2_4.xml:1: element vector: Relax-NG validaty error : Element vector failed to validate content

View File

@ -1,6 +1,3 @@
RNG validity error: file ./test/relaxng/tutor7_3_4.xml line 1 element text
Extra data in list: 5.6
RNG validity error: file ./test/relaxng/tutor7_3_4.xml line 1 element text
Error validating list
RNG validity error: file ./test/relaxng/tutor7_3_4.xml line 1 element text
Element path failed to validate content
./test/relaxng/tutor7_3_4.xml:1: element path: Relax-NG validaty error : Extra data in list: 5.6
./test/relaxng/tutor7_3_4.xml:1: element path: Relax-NG validaty error : Error validating list
./test/relaxng/tutor7_3_4.xml:1: element path: Relax-NG validaty error : Element path failed to validate content

View File

@ -1,6 +1,3 @@
RNG validity error: file ./test/relaxng/tutor7_3_5.xml line 1 element text
failed to validate type double
RNG validity error: file ./test/relaxng/tutor7_3_5.xml line 1 element text
Error validating list
RNG validity error: file ./test/relaxng/tutor7_3_5.xml line 1 element text
Element path failed to validate content
./test/relaxng/tutor7_3_5.xml:1: element path: Relax-NG validaty error : failed to validate type double
./test/relaxng/tutor7_3_5.xml:1: element path: Relax-NG validaty error : Error validating list
./test/relaxng/tutor7_3_5.xml:1: element path: Relax-NG validaty error : Element path failed to validate content

View File

@ -1,4 +1,2 @@
RNG validity error
Extra element title in interleave
RNG validity error: file ./test/relaxng/tutor8_2_4.xml line 5 element title
Element head failed to validate content
Entity: line 0: Relax-NG validaty error : Extra element title in interleave
./test/relaxng/tutor8_2_4.xml:5: element title: Relax-NG validaty error : Element head failed to validate content

View File

@ -1,6 +1,3 @@
RNG validity error: file ./test/relaxng/tutor8_2_5.xml line 1 element head
Expecting an element title, got nothing
RNG validity error: file ./test/relaxng/tutor8_2_5.xml line 1 element head
Invalid sequence in interleave
RNG validity error: file ./test/relaxng/tutor8_2_5.xml line 1 element head
Element head failed to validate content
./test/relaxng/tutor8_2_5.xml:1: element head: Relax-NG validaty error : Expecting an element title, got nothing
./test/relaxng/tutor8_2_5.xml:1: element head: Relax-NG validaty error : Invalid sequence in interleave
./test/relaxng/tutor8_2_5.xml:1: element head: Relax-NG validaty error : Element head failed to validate content

View File

@ -1,4 +1,2 @@
RNG validity error
Extra element base in interleave
RNG validity error: file ./test/relaxng/tutor8_2_6.xml line 4 element base
Element head failed to validate content
Entity: line 0: Relax-NG validaty error : Extra element base in interleave
./test/relaxng/tutor8_2_6.xml:4: element base: Relax-NG validaty error : Element head failed to validate content

View File

@ -1,4 +1,2 @@
RNG validity error: file ./test/relaxng/tutor9_5_2.xml line 2 element card
Invalid sequence in interleave
RNG validity error: file ./test/relaxng/tutor9_5_2.xml line 2 element card
Element card failed to validate attributes
./test/relaxng/tutor9_5_2.xml:2: element card: Relax-NG validaty error : Invalid sequence in interleave
./test/relaxng/tutor9_5_2.xml:2: element card: Relax-NG validaty error : Element card failed to validate attributes

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor9_5_3.xml line 2 element card
Invalid attribute error for element card
./test/relaxng/tutor9_5_3.xml:2: element card: Relax-NG validaty error : Invalid attribute error for element card

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor9_6_2.xml line 2 element card
Element card failed to validate attributes
./test/relaxng/tutor9_6_2.xml:2: element card: Relax-NG validaty error : Element card failed to validate attributes

View File

@ -1,2 +1 @@
RNG validity error: file ./test/relaxng/tutor9_6_3.xml line 2 element card
Invalid attribute error for element card
./test/relaxng/tutor9_6_3.xml:2: element card: Relax-NG validaty error : Invalid attribute error for element card