DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7068>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7068

unique conttraints not working.

           Summary: unique conttraints not working.
           Product: Xerces2-J
           Version: 2.0.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I do not know if this is a bug or misunderstanding of how revision 2 works.
In version 1.4.3 the unique restrictions works just fine.
In version 2.0.1 unique restrictions seems to be ignored.
An example constraint is:
    <xsd:unique name="DecadeNumberConstraint">
      <xsd:selector xpath="decade"/>
      <xsd:field xpath="@number"/>
    </xsd:unique>
To test this I used (in version 1.4.3) dom.DOMCounter, which reported number 
duplications in the decade element, as it should do. Then (in version 2.0.1) I 
used dom.Counter, it simply ignores all duplicate number(s) in decade(s).
In both cases I invoked the sample counter application with the options -f -v 
-s to ensure that we used full schema based validation.

Avy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to