XSD reverse generation: AnyAttribute
The "AnyAttribute" tag defines a group that may contain any type of attribute. However, you can restrict the group of attributes to a set of attributes belonging to certain namespaces.
"AnyAttribute" is modeled by a class of the "schema Group" stereotype, in its definition. The declaration of this group is represented by a UML composition, and the group occurrence is represented by the UML class role on the side of the Group class.
The XDD Order generation parameter for the class is set to "none".
The XSD Any generation parameter is set to "anyAttribute".
If the group has no siblings, the name of the class is "AnyAttribute" . Otherwise, it is "AnyAttribute" followed by an index indicating the placement in the group.
Attributes of AnyAttribute
• Id: modeled by the XSD Id generation parameter for the class.
• Namespace: modeled by the XSD Namespace generation parameter. It takes a tabulated value from the following list:
• ##any: any attribute is suitable
• ##other: any attribute not belonging to the current namespace
• Uri list: any attribute belonging to the list of namespaces
• ##targetNamespace: any attribute belonging to the current namespace
• ##Local: any element local to a type.
• processContents: modeled by the XSD processContents generation parameter. It takes a tabulated value from the following list:
• lax: if the element has a defined, known type, the element must be valid in comparison to its definition. Otherwise, it must simply be well-formed.
• skip: no constraint is applied. The element must simply be well-formed.
• strict: the element must be validated once its type is identified in the document instance by a defined type or by a type referenced by the xsi :type attribute.