ZVON > Tutorials > XML Schema and Relax NG Tutorial
Index
Contents > Extensions of complexTypes

Extensions of complexTypes

Extension of a sequence

When we extend the complexType, which contains a sequence A with a sequence B, then the sequence B will be appended to sequence A.

We can simulate the same behaviour in Relax NG using the "define" and "ref" elements.

...
Extension of a choice

When we extend a complexType, which contains a "choice", with another "choice", then the result will be a sequence of the choices.

We can simulate the same behaviour in Relax NG using the "define" and "ref" elements.

...