An Attribute Group maps to a simple UML Class with the stereotype XSDattributeGroup.
If the reference is generated, a name is not generated.
When an <attributeGroup> appears as a daughter of <schema> or <redefine>, it corresponds to an attribute group definition, shown below. When it appears as a daughter of <complexType> or <attributeGroup>, it does not correspond to any component as such.
<xs:schema xmlns:nm = "http://nomagic.com" xmlns:xs = "http://www.w3.org/2001/XMLSchema" targetNamespace = "http://nomagic.com" <xs:attributeGroup name = "global_attr_group"> <xs:attribute name = "address" type = "xs:string" /> <xs:attributeGroup name = "attr_group_name" > <xs:annotation> <xs:documentation>attribute group documentation</xs:documentation> <xs:attribute name = "surname" type = "xs:string"/> <xs:attribute name = "name" type = "xs:string" > <xs:annotation > <xs:documentation >name attribute documentation</xs:documentation> </xs:annotation> <xs:attributeGroup ref = "nm:global_attr_group2" > <xs:annotation > <xs:documentation >reference documentation</xs:documentation> </xs:annotation> </xs:attributeGroup> <xs:attributeGroup name = "global_attr_group2" > </xs:schema> |