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. If block is set to #all, then you can’t do either of these things. If block is set to extension, then the instance element’s type can’t be an extension of the declared type. If block includes restriction, then the instance element’s type can’t be a restriction of the declared type. If block includes substitution, 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 and unqualified. If qualified, the element must be used—with a prefix—in the schema’s target namespace. If unqualified, the element must be used without a namespace. (form provides an opportunity to override the elementFormDefault attribute of the xs: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.