You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/05/24 18:15:47 UTC

DO NOT REPLY [Bug 9369] - parser could not catch violations to uniqueness and refernetial integrity constraints

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

parser could not catch violations to uniqueness and refernetial integrity constraints

knoaman@ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From knoaman@ca.ibm.com  2002-05-24 16:15 -------
You have elementFormDefault set to true, which means all local elements will 
have the target NS attached to them. So, when creating you IC, you need to
prefix the elements in your xpath expression. You should also use './/' instead 
of 'manufacturer', since you are selecting elements within manufacturer. I have 
modified your schema, and tried with latest nightly build, and the parser is 
reporting errors.

    <xs:element name="manufacturer" type="mh:manufacturerType">
            <xs:unique name="orderKey">
                <xs:selector xpath=".//mh:order"/> <!-- or xpath="mh:order"-->
                <xs:field xpath="@orderID"/>
            </xs:unique>
            <xs:keyref name="orderFK" refer="mh:orderKey">
                <xs:selector xpath=".//mh:part/mh:orderPart"/>
                <xs:field xpath="mh:orderID"/>
            </xs:keyref>
    </xs:element>

Regards,
Khaled

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