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

XmlBeans reports incorrect line numbers for Identity constraints

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Version 2.2
    • TBD
    • Validator
    • None
    • 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. key_keyref.xml
          0.3 kB
          Srinath
        2. simpleKeyref.xsd
          1 kB
          Srinath
        3. patch_xmlbeans321.diff
          3 kB
          Srinath

        Activity

          People

            Unassigned Unassigned
            srinathc Srinath
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: