开发者

Multiple Parent Keys for element/attribute in an XSD

开发者 https://www.devze.com 2023-03-21 17:01 出处:网络
Can I refer to multiple \'key\' references for a single attribute in an XSD? My requirement is that there is an attribute AddressID which is a reference for two other attributes of AddressID in Physi

Can I refer to multiple 'key' references for a single attribute in an XSD?

My requirement is that there is an attribute AddressID which is a reference for two other attributes of AddressID in PhysicalAddress and ForeignAddress. In effect the reference value can be either of the two specified primary keys.

I tried two entries for 'selector xpath' values, but failed. I also tried separating the xpaths with '|' in the selector xpath value (the field value remaining the same in both these cases), but am facing error at ru开发者_运维百科ntime 'Identity constraint validation error: 'duplicate keys'.'

Thanks for your time. Please let me know for any other info.

Regards, Krish

0

精彩评论

暂无评论...
验证码 换一张
取 消