3.7.4 <foreign>

The <foreign> element allows the introduction of non-DITA content, for example, MathML, SVG, or Rich Text Format (RTF). The <foreign> element or a specialization can contain more than one type of non-DITA content or a mix of DITA and non-DITA content. Specialization of the <foreign> element generally is implemented as a domain, but architects looking for more control over the content can implement foreign vocabularies as structural specializations.

Processors should attempt to display <foreign> content unless otherwise instructed. If the processor cannot render the content, it MAY issue a warning.

The enabler of the foreign vocabulary must provide the processing and override the base processing for <foreign>.

Content models

See appendix for information about this element in OASIS document type shells.


- topic/foreign

SVG Example within a <p> element

<p>... as in the formula 
    <svg:svg width="100%" height="100%" version="1.1"

<ellipse cx="300" cy="150" rx="200" ry="80"


MathML Example within an <object> element

<p>... as in the formula 
  <desc>4 + x</desc>
    <m:math display="block">


The following attributes are available on this element: Universal attribute group and outputclass.

Return to main page.