![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XSD Question - Requiring element instance to contain attribute with specific value [Thread Next] Re: XSD Question - Requiring element instance to contain attribute with specific valueTo: NULL Date: 7/3/2005 12:17:00 PM "Martin Honnen" <mahotrash@y...> wrote in message news:OjYzYcYfFHA.3692@T...... > > > Nathan Alden wrote: > > >> but not this: >> >> <Applicant type="PrimaryApplicant"/> >> <Applicant type="PrimaryApplicant"/> > > You can use keys or unique specifications to prevent duplicated values. > >> and not this: >> >> <Applicant type="CoApplicant"/> > > If the enumeration allows the value CoApplicant then of course if you have > <xs:element name="Applicant" type="Applicant" /> > it would allow the value. > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ If the element cannot be empty then can't you define a fixed value of "Applicant" followed by an optional "CoApplicant"? -- Joe (MVP - XML) https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
