<specGrpRef>

<specGrpRef> (reference to a specification group) indicates that the declarations contained by the specGrp referenced should be inserted at this point.
Moduletagdocs — 22 Documentation Elements
AttributesIn addition to global attributes
targetpoints at the specification group which logically belongs here.
Status Required
Datatype

<rng:ref name="data.pointer"/>
data.pointer
Used byschemaSpec model.oddRef
May containEmpty element
Declaration

<rng:element name="specGrpRef">
<rng:ref name="att.global.attributes"/>
<rng:attribute name="target">
 <rng:ref name="data.pointer"/>
</rng:attribute>
<rng:empty/>
</rng:element>
element specGrpRef
{
   att.global.attributes,
   attribute target { data.pointer },
   empty
}
Example
<p>This part of
the module contains declarations for names of persons, places,
and organisations:
<specGrpRef target="#names.pers"/>
 <specGrpRef target="#names.place"/>
 <specGrpRef target="#names.org"/>
</p>
<!-- elsewhere -->
<specGrp xml:id="names.pers">
<!--... -->
</specGrp>
<!-- elsewhere -->
<specGrp xml:id="names.place">
<!--... -->
</specGrp>
<!-- elsewhere -->
<specGrp xml:id="names.org">
<!--... -->
</specGrp>
Note
In ODD documentation processing, a specGrpRef usually produces a comment indicating that a set of declarations printed in another section will be inserted at this point in the specGrp being discussed. In schema processing, the contents of the specified specGrp are made available for inclusion in the generated schema.
The specification group identified by the target attribute will normally be part of the current ODD document.