On 15 July 2014 21:38, sshanmug <srividhyashanmu...@fico.com> wrote: > If I have more than one complex types extending from abstract-comp-type, > how do I add validation to check if all the sub types have an element named > element1? > > <j-users-h...@xerces.apache.org>
I think, this can be simply accomplished by having following assertion within your type abstract-comp-type, <xs:assert test="element1"/> This will work for your requirement, because asserts are derived all the way down the type hierarchy. -- Regards, Mukul Gandhi