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

[EMAIL PROTECTED] changed:

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



------- Additional Comments From [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to