<xsd:attributeGroup id="attGp.mandatoryId" name="mandatoryId">
<!-- Note: name differs from attributeGroup name -->
<xsd:attribute id="att.mandatoryId" name="id" type="idType" use="required">
<xsd:annotation>
<xsd:documentation>
<h:div class="summary">An attribute providing a mandatory unique ID for an element.</h:div>
<h:div class="description">This is a horrible hack. It should be possible to add 'required' to the attributeGroup where used... (Maybe it is and I am still fighting Schema Wars.</h:div>
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:attributeGroup> |