Name
xs:attribute
Attributes
default
A value for the attribute that should be reported in cases where instance documents don’t explicitly include the attribute. (An
xs:attribute
element may have either adefault
attribute or afixed
attribute, but not both.)fixed
A value for the attribute that cannot be changed. Documents may not provide a different value for the attribute, and this value is provided if the documents don’t explicitly include the attribute. (An
xs:attribute
element may have either adefault
attribute or afixed
attribute, but not both.)form
Takes the values
qualified
andunqualified
. Ifqualified
, the attribute must be used—with a prefix—in the schema’s target namespace. Ifunqualified
, the attribute must be used without a namespace. (form
provides an opportunity to override theattributeFormDefault
attribute of thexs:schema
element.) This only works on local attribute declarations.name
The local name of the attribute. Note that this is not the qualified name; the namespace for the attribute is determined by the value of the
form
attribute ifname
is used. (Anxs:attribute
element may have either aname
attribute or aref
attribute, but not both. Anxs:attribute
element that usesname
must also provide atype
attribute to complete the definition of the attribute; otherwise, it defaults toxs:anySimpleType
.)ref
The namespace-qualified name of the attribute to be included by reference to a declaration at the top level of the schema. (An
xs:attribute
element may have either ...
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.