Issue Details (XML | Word | Printable)

Key: JAXP-26
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: jaxp-issues
Reporter: kohsuke
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

"Cannot find the declaration" -> "undefined element"

Created: 30/Mar/07 12:29 PM   Updated: 30/Mar/07 12:29 PM
Component/s: www
Affects Version/s: current
Fix Version/s: milestone 1

Time Tracking:
Not Specified


Operating System: All
Platform: All

Issuezilla Id: 26
Participants: jaxp-issues and kohsuke

 Description  « Hide

The cvc-elt.1 error message produced by the JAXP RI is the following:

> [java] parsing a schema...
> [java] [ERROR] cvc-elt.1: Cannot find the declaration of element 'jxb:bindings'.
> [java] line 97 of file:positionTypes.xsd
> [java] Failed to parse a schema.

The error message is formulated toward schema authors, but that is wrong.
validation errors need to be phrased to instance document authors.

So this error message should become "Undefined element 'jaxb:bindings'" or
"'jaxb:bindings' is not allowed here."

Also make sure to use the string edit distance algorithm to try to find if this
is a typo of something else.

There are no comments yet on this issue.