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

Duplicate unique value whereas there is no duplicate unique value.

           Summary: Duplicate unique value whereas there is no duplicate
                    unique value.
           Product: Xerces2-J
           Version: 2.0.2
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

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

Reply via email to