Object Type Tags

In many cases, it can be useful to have multiple types of "objects" when driving formatting from XML. For example, a chapter might have "Box" and "Essay" sidebars, each with unique formatting. eXtyles supports this well by automatically setting the content-type attribute when an "Essay" label is found in text, e.g.

Essay 1: This is an essay

becomes the following in XML:

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

However, in some cases, you may have boxes for which you would like a unique content-type attribute. This can be set easily in eXtyles using the Box Type tag found on the eXtyles Insert Tag menu. By adding this tag at the end of a box title, and placing the box type in between the tags, eXtyles will convert that information into the content-type attribute on export.
For example, this content in the Word file:

Pearls and Pitfalls<Box_Type>Pearl</Box_Type> [Box Title]

    • Head CT is critical to diagnosis, management, and prognosis following TBI [Box Text]

would yield this 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>

This same technique can be used to set types for

  • Figures (Figure Type)
  • Tables (Table Type)
  • Section Heads (Section Type)
  • Lists (List Type)
  • Extract quotes (Extract Type)

by using the appropriate tags on the Insert Tag menu, as indicated. This feature gives tremendous flexibility to format books without requiring a large number of new paragraph styles.

In This Section

© 2021 Atypon Systems. All Rights Reserved.

Icons made by Freepik from Flaticon are licensed under CC 3.0 BY