<xsd:attribute name="type" type="opinionType"/>
<xsd:attributeGroup name="opinionType"> <xsd:attributeGroup ref="agent"/> <xsd:attribute name="type" type="opinionType"/> </xsd:attributeGroup>