/
Object type tags

Object type tags

Search this space

Auto-generated content-type attributes

It can often be useful to have multiple types of “objects” when driving formatting from XML. For example, a chapter might have both “Box” and “Essay” sidebars, each with unique formatting.

In some cases, eXtyles will automatically set the content-type attribute when it finds a specific label in the text. For example, this box title in Word:

Essay 1: This is an essay

becomes the following XML:

<boxed-text id="ES001" content-type="essay">  <label>Essay 1: </label>  <caption><title>This is an essay</title></caption>

Using Insert Tag to specify a unique content-type attribute

In some cases, you may want to use a unique content-type attribute.

To do this, use the Insert Tag instructions to add a Box Type tag at the end of the box title and add the box type inside the tags.

For example, this box title and box text in Word:

Pearls and Pitfalls<Box_Type>Pearl</Box_Type>

Head CT is critical to diagnosis, management, and prognosis following TBI.

becomes the following XML:

<boxed-text id="c002_bb" content-type="Pearl" location="intext" position="anchor">  <title>Pearls and Pitfalls</title>  <list id="c002_l014" list-type="bullet"><list-item><label>•</label><p>Head  CT is critical to diagnosis, management, and prognosis following TBI</p></list-item>  </boxed-text>

You can use the same steps on the Insert Tag menu to specify content-type for other types of objects:

This gives you flexibility to allow unique book formatting without adding dozens of new paragraph styles.

Related content

Object Type Tags
Object Type Tags
More like this
The Insert Tag Menu
The Insert Tag Menu
More like this
The Insert Tag Menu
The Insert Tag Menu
More like this
Insert Tags
More like this

Copyright © 2022 Atypon Systems, LLC. All Rights Reserved.