jaxp
  1. jaxp
  2. JAXP-26

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

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      26

      Description

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            jaxp-issues
            Reporter:
            kohsuke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: