开发者

Multiple Parent Keys for element/attribute in an XSD

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜