XSD: require attributes to have specific values?

You can enforce the first rule by declaring element be with minOccurs=4 and maxOccurs=4 like so: xs:element name="a.

You can enforce the first rule by declaring element be with minOccurs=4 and maxOccurs=4, like so: However, you can not use XSD to enforce the second rule. If you really want to do that, you can, for example, replace the 4 be elements with elements b1, b2, b3, and b4, each of which would implicitly represent the c attributes 1 through 4, respectively.

You can make a/b/@c a key with a global uniqueness constraint and then give an integer type with facets for min=1 and max=4. Still doesn't disallow 1, 3, 2, 4 though... – xan Feb 9 at 2:42.

However, you can not use XSD to enforce the second rule. If you really want to do that, you can, for example, replace the 4 be elements with elements b1, b2, b3, and b4, each of which would implicitly represent the c attributes 1 through 4, respectively. Terms of service.

Not the answer you're looking for?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions