Hi I am facing problem in creating a schema if anyone could please assist. I am using Oxygen XML Editor. So the problem is that I have a schema declaration as below:
So what teh above intends is that some element has an 'output' attribute which is optional. But if this attribute is defined, then it cannot have values 'result' or 'isTimedOut' i.e. if in the instance xml I say output="result" then it should not validate. Now the problem is that in the xml I cannot have the element without 'output' attribute even though I am declaring it as optional. So if the tag does not define the output attrbute then the xml is not validated. Could anyone please suggest how to mandate the optional behaviour for this attribute. Below is the error that Oxygen gives: Element task does not satisfy assertion (@output ne 'result') and (@output ne 'isTimedOut') -- View this message in context: http://old.nabble.com/assert-error-using-schema-1.1-tp34607109p34607109.html Sent from the Xerces - J - Users mailing list archive at Nabble.com.