By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,587 Members | 1,076 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,587 IT Pros & Developers. It's quick & easy.

keyref(?) in xsd

P: n/a
Hi all,

Haven't figured out a way to validate the xml below:

<root>
<e1 e2="type1list_1" />
<e1 e2="type2list_1" />
....
<e1 e2="type2list_m" />
<e1 e2="type1list_n" />
<e2 name="type2list_1" />
....
<e2 name="type2list_m" />
</root>

the existence of type1list in the same doc will be validated in the
application (via C# code), no need(but a pattern validation is needed)
validate by the xsd.
type2list(s) of e1 need to be validated has a unique present in element
e2 as the value of its name attr.

So, the type for the attribute e2 will be a union of two different type
(xs:string type with pattern restriction and a user defined type, for
example). seems hard to validate attribute e2 with xsd, does it?

Thank in advance!
-s

Mar 23 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.