Name

xs:extension

Attributes

base

The namespace-qualified name of the type being extended

Contents

xs:annotation?, ( (xs:group | xs:all | xs:choice | xs:
                   sequence)?,
                  ((xs:attribute | xs:attributeGroup)*,
                   xs:anyAttribute? ))

xs:extension is used to define extensions to the type specified in base. It can appear in xs:simpleContent and xs:complexContent, but when it appears in xs:simpleContent, it can specify only additional attributes, not element content. When additional elements are specified, they must appear after the contents specified in the original base definition.

Get XML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.