Page 1 of 1

Is it possible (simpleType or complexType)?

Posted: Mon Feb 21, 2005 2:41 pm
by przemoc
Is it possible to define a schema for this?

I have element <arg>. I want that <arg> has simpletype (xs:integer) or only one child <var> and any other elements or text.

I don't want to create a new element e.g <number> for simpletype



please, help mi

Posted: Mon Feb 21, 2005 4:11 pm
by george

You cannot do that in XML Schema. You should be able to create a Relax NG schema to cover this requirement.

Best Regards,