You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/03/26 17:03:02 UTC

DO NOT REPLY [Bug 18372] New: - constraint ignored

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=18372>.
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=18372

<unique> constraint ignored

           Summary: <unique> constraint ignored
           Product: Xerces2-J
           Version: 2.3.0
          Platform: PC
               URL: http://http://
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: petr.kuzel@sun.com


Having the following XML document:
<doc>
  <elm1 alias="SameAlias" />
  <elm2 alias="SameAlias" />
</doc>

and the following XSD (fragment) document:
<element name="doc">
  <unique name="alias">
    <selector xpath="elm1|elm2" />
    <field xpath="@alias" />
  </unique>
</element>

the validation is succesfull...

It appears that the xpath union expression is
ignored and only the first union member (i.e.,
elm1) is utilized.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org