Name
xs:include
Attributes
id
A unique ID value (optional)
schemaLocation
A URI identifying where to find the schema to be imported
Contents
xs:annotation?
xs:include
is used when
you want to break your large schema into several smaller and
potentially reusable parts. All the declarations in the included
files must use the target namespace of the schema doing the
inclusion. (If they don’t identify a target namespace, they will
be assigned the namespace of the schema doing the inclusion, which
allows the creation of highly-flexible “chameleon” schema
components.) Inclusions are allowed to be circular: Schema A can
include schema B, which can in turn include schema A. You cannot
change the definitions of included schemas using this element; to
do that, use xs:redefine
.
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.