Example: <modelGrp>

These search results reproduce every example of the use of <modelGrp> in the Guidelines, including all localised and translated versions. In some cases, the examples have been drawn from discussion of other elements in the Guidelines and illustrating the use of <modelGrp> is not the main focus of the passage in question. In other cases, examples may be direct translations of each other, and hence identical from the perspective of their encoding.

22 Documentation Elements


22.5.5.4 Model Contexts and Outputs

<modelGrp output="mobile">
 <model behaviour="inline"
  predicate="@rend='inline'">

  <outputRendition>font-size: 7pt;</outputRendition>
 </model>
 <model behaviour="block"
  predicate="@rend='block'">

  <outputRendition>text-color: red;</outputRendition>
 </model>
</modelGrp>
<modelGrp output="print">
 <model behaviour="inline"
  predicate="@rend='inline'">

  <outputRendition>font-size: 12pt;</outputRendition>
 </model>
 <model behaviour="block"
  useSourceRendition="truepredicate="@rend='block'">

  <outputRendition>text-align: center;</outputRendition>
 </model>
</modelGrp>

22.5.5.5 Behaviours and their parameters

<elementSpec ident="choicemode="change">
 <modelGrp output="web">
  <model predicate="sic and corr"
   behaviour="alternate">

   <param name="default"
    value="corr[@cert='high']"/>

   <param name="alternatevalue="sic"/>
  </model>
  <model predicate="abbr and expan"
   behaviour="alternate">

   <param name="defaultvalue="expan[1]"/>
   <param name="alternatevalue="abbr"/>
  </model>
  <model predicate="orig and reg"
   behaviour="alternate">

   <param name="defaultvalue="reg"/>
   <param name="alternatevalue="orig"/>
  </model>
 </modelGrp>
</elementSpec>

22.5.5.6 Outputs

<elementSpec ident="datemode="change">
 <modelGrp output="print">
  <model predicate="text()"
   behaviour="inline"/>

  <model predicate="@when and not(text())"
   behaviour="inline">

   <param name="contentvalue="@when"/>
  </model>
 </modelGrp>
 <model output="webpredicate="@when"
  behaviour="alternate">

  <param name="defaultvalue="."/>
  <param name="alternatevalue="@when"/>
 </model>
</elementSpec>

<modelSequence>

<modelGrp output="print">
 <modelSequence>
  <model behaviour="inline">
   <param name="contentvalue="@n"/>
  </model>
  <model behaviour="footnote">
   <param name="placevalue="'foot'"/>
  </model>
 </modelSequence>
</modelGrp>

<modelGrp>

<elementSpec mode="changeident="abbr">
 <modelGrp output="web">
  <model predicate="parent::choice"
   behaviour="omit"/>

  <model predicate="ancestor::front"
   behaviour="inline">

   <outputRendition>font-style:italic; </outputRendition>
  </model>
  <model predicate="not(parent::choice)"
   behaviour="inline">

   <outputRendition scope="before">content: ' ('</outputRendition>
   <outputRendition scope="after">content: ')'</outputRendition>
  </model>
 </modelGrp>
 <modelGrp output="print">
  <model predicate="parent::choice"
   behaviour="omit"/>

  <model predicate="not(parent::choice)"
   behaviour="note">

   <param name="placevalue="'foot'"/>
  </model>
 </modelGrp>
</elementSpec>

<modelGrp>

<modelGrp output="print">
 <modelSequence>
  <model behaviour="inline">
   <param name="contentvalue="@n"/>
  </model>
  <model behaviour="note">
   <param name="placevalue="'foot'"/>
  </model>
 </modelSequence>
</modelGrp>