Metadata
The <meta> element inserts metadata into the content. Metadata is "data about data" and can be used to pass information through a workflow that may or may not be included in an output. It tends to be used in complex workflows where Typefi is part of a much larger system.
<meta> has four attributes:
| Attribute | Value | Description |
|---|---|---|
| type | string | Categorises different types of metadata. You can choose the types of metadata you want to categorise. Note: Typefi does not use this value. It is provided for users who wish to organise or categorise their metadata. |
| status | added changed deleted | Indicates the modification status of the metadata. |
| author | string | The author of the tracked change. |
| dateTime | ISO 8601 datetime string | The date and time of the tracked change (2024-01-09T14:37:00Z). |
Metadata can appear almost anywhere in CXML.
Between Typefi Sections:
<content>
<meta>Life of Brian</meta>
<section>
<meta>The Holy Grail</meta>
</section>
</content>Between paragraphs:
<section>
<meta>An art critic</meta>
<p>What a Terrible Joke!</p>
<meta>Carol Cleveland</meta>
<p>But its my only line!</p>
</section>Within paragraphs and styles:
<p>
Graham Chapman
<meta>King Arthur</meta>
was the only member of the
cast to wear real chain mail armor.
</p>
<p>
It weighed about
<c type="bold">
twenty-five
<meta>weight</meta>
</c>
pounds. The rest of the cast wore knitted wool,
painted to look like metal.
</p>Within Typefi Elements:
<context>
<meta>Monty Python's flying circus</meta>
<p>My hovercraft is full of eels.</p>
</context>In table cells:
<entry>
<meta>The Holy Grail</meta>
<p>Let's not bicker and argue over who killed who.</p>
</entry>In tracked changes:
<p>
Graham Chapman
<meta status="added" author="Terry Jones" dateTime="1975-04-05T09:00:00Z">King Arthur</meta>
was the only member of the cast to wear real chain mail armour.
</p>BUG FIX
Metadata cannot contain other elements (in CXML 3.1, they could).
You can also attach other types of non-content data to your documents. Use Typefi Fields to store and reference named values across your projects, sections, and elements. In DOCX workflows, use Document comments to roundtrip comments between Word and CXML. Conditions let you show or hide content based on a condition type, and work in both workflows.