The following issue has been updated:

    Updater: Serge Knystautas (mailto:[EMAIL PROTECTED])
       Date: Mon, 12 Apr 2004 2:25 PM
    Changes:
             Attachment changed from testXerces.java
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/XERCERJ-450?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCERJ-450

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCERJ-450
    Summary: Duplicate unique value whereas there is no duplicate unique value.
       Type: Bug

     Status: Resolved
 Resolution: FIXED

    Project: Xerces2-J

   Assignee: Xerces-J Developers Mailing List
   Reporter: Eric Hartmann

    Created: Mon, 2 Sep 2002 4:15 PM
    Updated: Mon, 12 Apr 2004 2:25 PM
Environment: Operating System: Other
Platform: Other

Description:
I've just tested Xerces 2.1.0 to validate some XML files with some schema, and 
many problems are resolved but I found one more.

I have a XML file like :

<?xml version="1.0" encoding="UTF-8"?>
<A xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="/tmp/test.xsd">
        <B>
                <C id="C1">
                        <D id="1" refC="C3"/>
                        <D id="2"/>
                </C>
                <C id="C2" >
                        <D id="1"/>
                        <D id="3"/>
                </C>
        </B>
        <B>
                <C id="C3">
                        <D id="1"/>
                        <D id="2"/>
                </C >
                <C id="C4" >
                        <D id="1"/>
                        <D id="3"/>
                </C>
        </B>
</A>


When I want to use uniqueness for the C id with a selector like ".//C". Xerces 
found duplicate values :
Error : Duplicate unique value [ID Value:  1] declared for identity constraint 
of element "A".
Error : Duplicate unique value [ID Value:  1] declared for identity constraint 
of element "A".
Error : Duplicate unique value [ID Value:  1] declared for identity constraint 
of element "A".

If I use "./B/C", everything is fine. 

I will attach the schema.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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

Reply via email to