[
https://issues.apache.org/jira/browse/XMLBEANS-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Srinath updated XMLBEANS-321:
-----------------------------
Attachment: patch_xmlbeans321.diff
I tried to debug this problem and I have a fix for it which I have attached
along with this comment.
The IdentityConstraint.java was not implemented in a way to show the line
number of the invalid reference.
I did not want to touch the existing code without fully analyzing the
implications. The fix is implemented in a safe way so that it does not break
anything that is existing. I am sure this patch cannot be accepted as it is,
but it works for me :).
> XmlBeans reports incorrect line numbers for Identity constraints
> ----------------------------------------------------------------
>
> Key: XMLBEANS-321
> URL: https://issues.apache.org/jira/browse/XMLBEANS-321
> Project: XMLBeans
> Issue Type: Bug
> Components: Validator
> Affects Versions: Version 2.2
> Environment: Linux 2.6.12-1.1381_FC3 x86_64
> Reporter: Srinath
> Fix For: TBD
>
> Attachments: key_keyref.xml, patch_xmlbeans321.diff, simpleKeyref.xsd
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]