Name
xs:anyAttribute
Attributes
namespace
One of
##any
,##other
, or a list of URIs used to limit the namespaces of the attributes that may appear here. The URI list may include the special value##targetNamespace
, meaning the schema’s target namespace, and##local
, to indicate that attributes without a namespace may appear.##any
is the default, allowing attributes in any namespace.##other
allows attributes in any namespace except the schema’s target namespace.processContents
One of
lax
,skip
, orstrict
. Ifstrict
(the default), all attributes appearing here must be declared in the schema and must conform to those declarations. Ifskip
, attributes don’t need to be declared; if they are declared, they don’t need to be valid. Iflax
, attributes don’t need to be declared, but if they are declared, they have to be valid according to that declaration.
Contents
xs:annotation?
The xs:anyAttribute
element is used to specify attribute contents very loosely. The
attributes may be used to provide more control over which
attributes are allowed to appear, limiting them by namespace
(namespace
) or the kind of
schema processing they should receive (processContents
). Like xs:attribute
, this element may only
appear inside an xs:complexType
element.
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.