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:
| Attribute | Value | Description |
|---|---|---|
| xmlns:tps | http://www.typefi.com/ContentXML | Required. Declares the TPS namespace binding. |
| xmlns:xsi | http://www.w3.org/2001/XMLSchema-instance | Declares the XML Schema instance namespace binding. |
| xsi:schemaLocation | http://www.typefi.com/ContentXML http://www.typefi.com/TPS/content/3_4/ContentXML.xsd | Specifies the CXML schema document location for assessment and validation. Requires the @xmlns:xsi namespace binding above. |
| schemaVersion | string | Specifies the version of the CXML schema that the document is using. For example, “3.4”. |
| xml:lang | string | The 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 . |
| whiteSpaceMode | strict preserve classic | Specifies how white space characters should be handled. For more information, see White space . |
| type | string | Deprecated. The default value is "book". |
| strictSpace | true 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:
| Attribute | Value | Description |
|---|---|---|
| type | string | Required. Specifies the type of the Typefi Section. The type must correspond to a Typefi Section created in Typefi Designer. |
| id | string | The unique ID of the Typefi Section. NEW The @id attribute is now optional. It was required in CXML 3.1. |
| condition | string | The name of the condition; for more information, see Conditions . |
| xml:lang | string | The 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. |
| whiteSpaceMode | strict preserve classic | Specifies how white space characters should be handled. For more information, see White Space. |
| startPageNumber | integer | Specifies the starting page number of the Typefi Section. |
| continuePageNumbering | true false | Specifies whether the page numbering is continued from a previous Typefi Section. |
| status | added changed deleted | Indicates the modification status of the Typefi Section. |
| author NEW | string | The author of the tracked change. |
| dateTime NEW | ISO 8601 dateTime string | The 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...