Name
xs:element
Attributes
abstract
Set to
false
(the default) when the element can appear in a document;true
when this element can be replaced only with a member of its substitution group.block
Normally, you can use the
xsi:type
attribute to indicate that a particular instance of the element has a type that is a subtype of the type it’s declared to have in the schema. You can also substitute an element with a member of its substitution group. Ifblock
is set to#all
, then you can’t do either of these things. Ifblock
is set toextension
, then the instance element’s type can’t be an extension of the declared type. Ifblock
includesrestriction
, then the instance element’s type can’t be a restriction of the declared type. Ifblock
includessubstitution
, then the element can’t be substituted with a member of the substitution group.final
Used to determine whether other elements can use this element as the head of their substitution group. If set to
extension
, then members of this element’s substitution group can’t have types that are extensions of this element’s type. If set to#all
, then members of this element’s substitution group must have the same type as this element.form
Takes the values
qualified
andunqualified
. Ifqualified
, the element must be used—with a prefix—in the schema’s target namespace. Ifunqualified
, the element must be used without a namespace. (form
provides an opportunity to override theelementFormDefault
attribute of thexs:schema
element.)form
works only on local ...
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.