Document Types > Document Types Available from Arbortext > FOSI Support for DITA Document Types > Occurrence
  
Occurrence
During occurrence matching, a DITA specialized element represents both itself and its more general elements.
For example, assume refpara is a specialized element of para:
<!ATTLIST refpara class CDATA "- topic/para ref/refpara ">
and these e-i-c's exist in the FOSI:
<e-i-c gi="para" occur="first">...</e-i-c>
<e-i-c gi="refpara" occur="first">...</e-i-c>
<e-i-c gi="para" occur="last">...</e-i-c>
<e-i-c gi="refpara" occur="last">...</e-i-c>
In this document fragment:
<APIsection>
<para>First</para>
<refpara>Second</refpara>
<refpara>Third</refpara>
<para>Fourth</para>
</APIsection>
each child of the APIsection is matched with one of the e-i-c's as follows.
Element
Matched e-i-c
<para>First</para>
<e-i-c gi="para" occur="first">...</e-i-c>
<refpara>Second</refpara>
<e-i-c gi="refpara" occur="first">...</e-i-c>
<refpara>Third</refpara>
<e-i-c gi="refpara" occur="last">...</e-i-c>
<para>Fourth</para>
<e-i-c gi="para" occur="last">...</e-i-c>
Although the second child is not the first para, it is the first refpara. The third child is the last refpara but not the last para.
In the following document fragment:
<APIsection>
<refpara>First</refpara>
<para>Second</para>
<para>Third</para>
<refpara>Fourth</refpara>
</APIsection>
the elements are matched as follows:
Element
Matched e-i-c
<refpara>First</refpara>
<e-i-c gi="para" occur="first">...</e-i-c>
<e-i-c gi="refpara" occur="first">...</e-i-c>
<para>Second</para>
None
<para>Third</para>
None
<refpara>Fourth</refpara>
<e-i-c gi="para" occur="last">...</e-i-c>
<e-i-c gi="refpara" occur="last">...</e-i-c>
Since a refpara is also a para, the first child of the APIsection is both the first refpara and the first para. The second child is not the first para. The third child is not the last para because the fourth child is both the last refpara and the last para.