Answers of such type are not satisfactory for me. What is the reasoning behind your statement? – Aoi Karasu Jan 15 '10 at 11:00 XML schema types are very similar to you OO programming types.
You can create a complex type and you can restrict order of elements type of element and attribute and restriction on what kind of values can be assigned. That is all xsd can do for you. What you want is something of constraint that span more than one element/attribute which is simply not possible with xsd.
You have to write your own code to valid this. – affan Jan 15 '10 at 14:51 I also think it is not possible, and that saying that is a pretty good answer (if it's correct) :-) – Yossi Dahan Jan 15 '10 at 15:21 Thank you very much for your comment. Now I get the picture :) – Aoi Karasu Jan 15 '10 at 8:36.
No .. the reason is : In your case you are trying to validate the presence of an element/tag depending on the value of some other tag/attribute .. (XSD is basically a set of declaration) which requires multiple declaration of a same element .. Multiple declaration of a same element isn't allowed in XSD .. :-( Check out the similar problem (click here) posted by a stackOverFlow member.
W3C XML Schema requires all of its sequences to be fully deterministic. For performance/simplicity reasons, it is not designed to look ahead or look back, only works on the current element. Also I believe this is inherited from SGML.
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.