Structure

Content

All CXML documents must have exactly one root element, although it may have sibling comments. For a job to run through Typefi, the root element must be <content>.

Note

Although CXML allows for an alternative root element of a Typefi Section (<section>), this use case was deprecated with the release of Typefi 8.

<content> has the following attributes:

AttributeValueDescription
xmlns:tpshttp://www.typefi.com/ContentXMLRequired. Declares the TPS namespace binding.
xmlns:xsihttp://www.w3.org/2001/XMLSchema-instanceDeclares the XML Schema instance namespace binding.
xsi:schemaLocationhttp://www.typefi.com/ContentXML http://www.typefi.com/TPS/content/3_4/ContentXML.xsdSpecifies the CXML schema document location for assessment and validation. Requires the @xmlns:xsi namespace binding above.
schemaVersionstringSpecifies the version of the CXML schema that the document is using. For example, “3.4”.
xml:langstringThe language of the 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 .
whiteSpaceModestrict
preserve
classic
Specifies how white space characters should be handled. For more information, see White space .
typestringDeprecated. The default value is "book".
strictSpacetrue
false
Deprecated. Specifies whether white space characters are considered significant and preserved.

The root element is <content>:

xml
<content xmlns:tps="http://www.typefi.com/ContentXML" 
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="http://www.typefi.com/ContentXML 
         http://www.typefi.com/TPS/content/3_4/ContentXML.xsd" 
 schemaVersion="3.4" 
 whiteSpaceMode="strict" 
 xml:lang="en-US">
  <section type="Cover">
    <p type="Title">Introduction</p>
  </section>
</content>

Typefi Sections

The <section> element inserts a Typefi Section into your document. A Typefi Section is a top-level sectioning element in the root content (<content>) element. No content can appear outside of a Typefi Section.

New in CXML 3.4

<section> now supports @author and @dateTime.

<section> has the following ten attributes:

AttributeValueDescription
typestringRequired. Specifies the type of the Typefi Section. The type must correspond to a Typefi Section created in Typefi Designer.
idstringThe unique ID of the Typefi Section.  NEW  The @id attribute is now optional. It was required in CXML 3.1.
conditionstringThe name of the condition; for more information, see Conditions .
xml:langstringThe language of the 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.
whiteSpaceModestrict
preserve
classic
Specifies how white space characters should be handled. For more information, see White Space.
startPageNumberintegerSpecifies the starting page number of the Typefi Section.
continuePageNumberingtrue
false
Specifies whether the page numbering is continued from a previous Typefi Section.
statusadded
changed
deleted
Indicates the modification status of the Typefi Section.
author NEWstringThe author of the tracked change.
dateTime NEWISO 8601 dateTime stringThe date and time of the tracked change (2024-01-09T14:37:00Z).

A Typefi Section containing a Typefi Element (<context>):

xml
<section type="Movie">
  <context type="The Holy Grail">
    <p type="Introduction">It is I, Arthur, son of Uther Pendragon, from the Castle of Camelot.</p>
  </context>
</section>
Last updated: 27 Apr 2026, 18:30:36
Loading navigation...