Elements

The <context> element inserts a Typefi Element into your document. Typefi Elements represent a chunk of content that is outside the main story flow in your Adobe InDesign template. Typefi Elements can exist both inside or outside of paragraphs.

Typefi Designer supports three types of Typefi Elements: fixed, inline, and floating. In CXML, <context> represents all three types.

Fixed and inline Typefi Elements can nest to any number of levels. Floating Typefi Elements cannot be nested, but they can contain nested Typefi Elements (fixed or inline).

New in CXML 3.4

<context> now supports @author and @dateTime.

<context> has eight attributes:

AttributeValueDescription
typestringRequired. The name of the Typefi Element (defined within Typefi Designer for Adobe InDesign).
idstringThe unique ID of the Typefi Element.
variantstringA floating Typefi Element subtype in Typefi Designer.
conditionstringThe name of the condition; for more information, see Conditions .
xml:langstringThe language of text. The string must be an ISO-639 two-letter code with an (optional) ISO-3166 two-letter country code. See ISO language names and codes .
statusadded
changed
deleted
Indicates the modification status of the Typefi Element.
author NEWstringThe author of the tracked change.
dateTime NEWISO 8601 datetime stringThe date and time of the tracked change (2024-01-09T14:37:00Z).

Some Typefi Elements:

xml
<section>
  <p>We have ridden since the snows of winter covered this land, 
  through the kingdom of Mercia, through...</p>
  <context type="Map">
    <image ref="kingdom_of_mercia.png" />
    <p>A map of the kingdoms of Mercia</p>
  </context>
  <p>Where'd you get the coconuts?</p>
  <context type="Diagram">
    <image ref="coconut-diagram.png" />
    <p>A diagram of a coconut</p>
  </context>
  <p>What do you mean?</p>
  <context type="Sidebar">
    <p>Found them? In Mercia? The coconut's tropical!</p>
  </context>
  <p>The swallow may fly south with the sun or the house martin or 
  the plover may seek warmer climes in winter, yet these are 
  not strangers to our land?</p>
</section>

A Typefi Element with tracked changes:

xml
<context type="Sidebar" status="added" author="Terry Jones" dateTime="1975-04-05T09:00:00Z">
  <p>Found them? In Mercia? The coconut's tropical!</p>
  </context>
Last updated: 27 Apr 2026, 18:30:36
Loading navigation...