Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-321

XmlBeans reports incorrect line numbers for Identity constraints

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: Version 2.2
    • Fix Version/s: TBD
    • Component/s: Validator
    • Labels:
      None
    • Environment:
      Linux 2.6.12-1.1381_FC3 x86_64

      Description

      I have defined some Identity constraints in my schema using Key and KeyRef constructs.
      When I validate a sample document with the xmlbeans generated for that schema, the line number seems to be incorrect. This happens only for Identity constraints.

      It appears that the line number reported is always that of the last opening tag in the entire document being validated irrespective of where the constraint is violated.

        Attachments

        1. simpleKeyref.xsd
          1 kB
          Srinath
        2. patch_xmlbeans321.diff
          3 kB
          Srinath
        3. key_keyref.xml
          0.3 kB
          Srinath

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              srinathc Srinath
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: