Objects (tables, figures, and boxes) should be styled using items on the Obj tab of the eXtyles style palette. This section describes how to correctly style these objects in your content.

Table of Contents

Tables

Accurate styling of table content is critical to ensure that it is both rendered correctly during layout and formatted properly for screen readers and other accessibility requirements.

The following examples show how to use the table paragraph styles correctly.

Although eXtyles Cleanup will auto-style most table content at the start of the eXtyles workflow, you must still carefully proof table styling before exporting to XML and correct any misapplied styles.

Simple Table

The style of content within Word table cells will not show up in the Style Area Pane that is exposed in Draft view (see the following image). This is a limitation of Word. To proof the styles of content in Word table cells, place your cursor in the cell and the style will appear in the style drop-down window on the eXtyles ribbon.

A simple table will include a title, headings, body content, and possibly notes. For example,

Word

XML

1<table-wrap id="t01.02" position="float"> 2<label>Table 1.2</label><caption><title>Liechtenstein &#x2013; Selected macroeconomic indicators, 2012-15</title> 3</caption> 4<table rules="groups"> 5<col width="43.11%"/> 6<col width="14.23%"/> 7<col width="14.22%"/> 8<col width="14.22%"/> 9<col width="14.22%"/> 10<thead> 11<tr> 12<td valign="top" align="left" scope="col" style="border-left: solid 0.50pt; border-top: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(0,98,131)"/> 13<td valign="top" align="right" scope="col" style="border-left: solid 0.50pt; border-top: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(0,98,131)">2012</td> 14<td valign="top" align="right" scope="col" style="border-left: solid 0.50pt; border-top: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(0,98,131)">2013</td> 15<td valign="top" align="right" scope="col" style="border-left: solid 0.50pt; border-top: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(0,98,131)">2014</td> 16<td valign="top" align="right" scope="col" style="border-left: solid 0.50pt; border-top: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(0,98,131)">2015</td> 17</tr> 18</thead> 19<tbody> 20<tr> 21<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">GDP at market prices (SwF million)<sup>a</sup></td> 22<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">5,116</td> 23<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">5,925</td> 24<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">6,105</td> 25<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">..</td> 26</tr> 27<tr> 28<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)" scope="row">GDP at market prices (US$ million)<sup>a, b</sup></td> 29<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">5,456</td> 30<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">6,392</td> 31<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">6,672</td> 32<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">..</td> 33</tr> 34<tr> 35<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Real GDP (%age change)</td> 36<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">-0.1</td> 37<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">2.1</td> 38<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">3.0</td> 39<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">..</td> 40</tr> 41<tr> 42<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)" scope="row">GNI per inhabitant at current prices (SwF)</td> 43<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">97,410</td> 44<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">108,830</td> 45<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">..</td> 46<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">..</td> 47</tr> 48<tr> 49<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Population ('000)</td> 50<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">36.8</td> 51<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">37.1</td> 52<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">37.4</td> 53<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">37.6</td> 54</tr> 55<tr> 56<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)" scope="col">GDP by industry (% of GDP at basic prices)</td> 57<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)"/> 58<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)"/> 59<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)"/> 60<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)"/> 61</tr> 62<tr> 63<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Industry and manufacturing</td> 64<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">38.6</td> 65<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">40.7</td> 66<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">41.0</td> 67<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">..</td> 68</tr> 69<tr> 70<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)" scope="row">General services</td> 71<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">28.9</td> 72<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">27.3</td> 73<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">26.8</td> 74<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(201,222,212)">..</td> 75</tr> 76<tr> 77<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Financial services</td> 78<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">24.0</td> 79<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">25.1</td> 80<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">25.2</td> 81<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt">..</td> 82</tr> 83<tr> 84<td valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt; border-bottom: solid 0.50pt; background-color:rgb(201,222,212)" scope="row">Agriculture and households</td> 85<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; border-bottom: solid 0.50pt; background-color:rgb(201,222,212)">8.6</td> 86<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; border-bottom: solid 0.50pt; background-color:rgb(201,222,212)">7.0</td> 87<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; border-bottom: solid 0.50pt; background-color:rgb(201,222,212)">7.0</td> 88<td valign="top" align="right" style="border-left: solid 0.50pt; border-right: solid 0.50pt; border-bottom: solid 0.50pt; background-color:rgb(201,222,212)">..</td> 89</tr> 90</tbody></table> 91<table-wrap-foot> 92<fn><p>.. Not available.</p></fn> 93<fn><p>a Provisional data for 2014.</p></fn> 94<fn><p>b Swiss/US$ exchange rate was applied.</p></fn> 95<attrib>Source: Statistical information provided by the authorities of Liechtenstein; <italic>Volkswirtschaftliche Gesamtrechnung 2014</italic> (National Accounts 2014<?word-comment COMMENT4: The in-text citation &quot;National Accounts 2014&quot; is not in the reference list. Please correct the citation, add the reference to the list, or delete the citation.?>). Viewed at: <ext-link ext-link-type="uri" xlink:href="https://www.llv.li/files/as/volkswirtschaftliche-gesamtrechnung-2014.pdf">https://www.llv.li/files/as/volkswirtschaftliche-gesamtrechnung-2014.pdf</ext-link> [January 2017]; and <italic>Liechtenstein in Figures 2017</italic><?word-comment COMMENT5: No figure matches the in-text citation &quot;Figures 2017&quot;. Please supply a legend and figure or delete the citation.?>. Viewed at: <ext-link ext-link-type="uri" xlink:href="https://www.llv.li/files/as/fliz-englisch-2017.pdf">https://www.llv.li/files/as/fliz-englisch-2017.pdf</ext-link> [January 2017].</attrib></table-wrap-foot> 96</table-wrap>

Complex Tables

More complex tables can include subheadings and accessibility captions. eXtyles can support all of these structures. For example, the table internal head “Switzerland” should be styled like this:

Word

XML

1<tbody> 2<tr> 3<th colspan="3" valign="top" align="justify" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="col">Switzerland</th> 4</tr> 5<tr>

Local Formatting and and Other Design Elements

Unlike other parts of the text, eXtyles will capture in the XML formatting and design elements in tables. This information will come directly from the Word document, so it is important that tables in Word are carefully proofed for display as well as content prior to generating XML.

Bold, Italic, and Underline

As with elsewhere in the text, bold, italic, and underline formatting that is used in tables is preserved in the XML. For example, in the following table, the text Goods (net) is underlined, and the text Foreign trade total is italic:

Word

XML

1<td><underline>Goods (net)</underline></td> 2... 3<td>F<italic>oreign trade total<sup>i</sup></italic></td>

The eagle-eyed will notice that the letter F in Foreign trade total is not italicized. eXtyles XML export will preserve in the XML the local formatting that is present in the Word document, so it is important that formatting be carefully and deliberately applied to table content to avoid rendering errors.

Borders, Shading, and Alignment

Table borders, cell shading, and text alignment will be preserved in the XML. This formatting information can be important when representing data, and so eXtyles will capture it directly from the Word document. For example, table borders are represented as a style attribute:

1style="border-left: solid 0.50pt; border-top: solid 0.50pt; border-right: solid 0.50pt; border-bottom: solid 0.50pt"

Cell shading is represented as RGB values (again, per the precise shading used in the Word document):

1style="background-color:rgb(201,222,212)"

And the alignment, both vertical (valign) and horizontal (align), of the text in the table cells - right, center, left, or decimal - is captured as:

1valign="top" align="center"

The indentation of text is also captured to ensure correct layout; for example, from the previous Word sample:

1<td>&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;&#x00A0;F<italic>oreign trade total<sup>i</sup></italic></td>

Because of this it is important to carefully review the format of the table in the Word document. For example, if the final table should not include cell shading, there should be no shading in the table in the Word document.

Table Placement in the Document

Tables are not moved during XML export; that is, eXtyles will not move tables to the location of their citation in the text - they will remain where they are placed in the Word document. Because of this, it is important to ensure that in Word tables are placed where they are intended to be set in the PDF.

Figures

Figures (charts) can be retained in the Word document during eXtyles processing; or, they can be removed, leaving just the figure title and notes. Often the latter is preferred because images can bloat a Word document and slow eXtyles processing.

eXtyles Cleanup can automatically remove any images in the Word document and replace them with placeholder text.

A typical setup for a figure in a WTO document is:

Word

XML

1<fig id="cht1.1" position="float" fig-type="chart"> 2 <label>Chart 1.1</label><caption><p>Foreign exchange rates, 2008-16</p></caption> 3 <graphic xlink:href="17-4996_cht1.1"/> 4 <attrib>Source: Information provided by the Swiss authorities.</attrib> 5</fig>

Figure Naming and the <graphic> Element

eXtyles will automatically generate a <graphic> element for each figure caption in the Word document. This element is very important, because it will be used by rendering systems to pull in the correct image file during layout. For example, in the above instance, the system will be looking for an image named 17-4996_cht1.1, from the <graphic xlink:href="17-4996_cht1.1"/> element.

These IDs will be generated by eXtyles using information from the Document Information dialog. In the dialog, the Serial Number field will be used to construct the graphic ID:

Boxes

Use the family of box styles on the Obj tab of the eXtyles style palette to style box content in WTO documents. Boxes can be simple or complex, with complex boxes including images, tables, lists, and other items. Both simple and complex boxes are supported by eXtyles, but careful styling is required.

Simple Boxes

Simple boxes can be styled using just the Box Title, Box Text, Box Source, and Box Note styles on the palette; for example,

Word

XML

1<boxed-text id="b02.01"> 2 <label>Box 2.1</label><caption><title>Liechtenstein's Market Control and Surveillance Mechanism</title></caption> 3 <p>As a consequence of Liechtenstein's EEA membership since 1 May 1995, and in order to maintain the Customs Union with Switzerland (Switzerland is not an EEA member), Liechtenstein must ensure the parallel marketability of goods under Swiss and EEA rules within its territory. Liechtenstein maintains a Market Control and Surveillance Mechanism (MCSM), applicable to imports subject to customs tariffs or non-tariff requirements that are different in the EEA and Switzerland, for this purpose. The MCSM aims at ensuring that goods that do not satisfy Swiss import requirements do not enter the Swiss market via the open border. The MCSM has been accepted by the other EEA members (EEA Council Decision No. 1/95).</p> 4 <attrib>Source: WTO Secretariat.</attrib> 5</boxed-text>

Subheadings and lists may also be included in a simple box, and should be styled using the box heading and box list paragraph styles:

Word

XML

1<boxed-text id="b04.02"> 2 <label>Box 4.2</label><caption><title>Switzerland's regulatory framework for banking services</title></caption> 3 <sec> 4 <title>Recent or planned regulatory changes</title> 5 <p><underline>Additional criteria for foreign banks</underline>: requirements are the same for Swiss and foreign banks; access remains subject to reciprocity, except when covered by international obligations such as the WTO agreements. However, for Swiss branches of foreign banks, FINMA will grant the foreign banks a licence only if;</p> 6 <list id="L11" list-type="alpha-lower"> 7 <list-item><label>a</label><p>the foreign bank is appropriately organized, employs adequately qualified staff and has financial resources to operate a branch in Switzerland;</p></list-item> 8 <list-item><label>b</label><p>the foreign bank and branch are subjected to adequate supervision;</p></list-item> 9 <list-item><label>c</label><p>the competent foreign supervisory authorities make no objection to the establishment of a branch;</p></list-item> 10 </list> 11 ... 12 </sec> 13</boxed-text>

Complex Boxes

Complex boxes include objects, such as figures and tables. For these boxes, special begin and end markers are required to let the export engine understand where the box content starts and ends. For any box that includes content that is not specifically supported with a box paragraph style on the Obj tab of the eXtyles palette, these begin and end box styles must be used.

Word

XML

1<boxed-text id="b03.01"> 2<label>Box 3.1</label><caption><title>COVID-19 export restrictions</title></caption> 3<sec> 4<title>How many countries have introduced export prohibitions and restrictions?</title> 5<p>As at 18 May 2020, 85 countries and separate customs territories had introduced export prohibitions and restrictions to combat the COVID-19 pandemic (EU Members are counted separately). They include 76 WTO Members (counting the EU member States individually) and nine non-WTO members from all regions. </p> 6<p>These measures took different forms, including export bans and non-automatic export licensing procedures, but have in common that they mostly prevented exports of these products. While there is considerable diversity with respect to the types of products affected by export restrictions, the majority of the measures have limited the exportation of face and eye protection, protective garments, and gloves, sometimes referred to as Personal Protection Equipment (PPE) or Personal Protection Products (PPP). Sanitizers, pharmaceuticals and foodstuff have also been subject to export limitations, but to a lesser extent. </p> 7<fig id="fig01" position="float" fig-type="figure"><label>Figure 1</label><caption><p>Export prohibitions and restrictions introduced to combat the COVID-19 pandemic, by type of product. </p><p>(Number)</p></caption><graphic xlink:href="17-4996_fig01"/> 8<attrib>Source: WTO Secretariat based on data available in the Trade Monitoring Report. </attrib></fig> 9</sec> 10... 11<sec> 12... 13<p>However, it should be noted that compliance with the notification requirements remains incomplete. The confirmed information in the trade monitoring exercise shows that 22 additional Members have imposed export prohibitions and restrictions, and that an additional 11 Members may be imposing them (unconfirmed). Thus, the notification gap appears to include between 22 and 33 Members that have yet to submit a QR notification to the Committee on Market Access. Similarly, information suggests that other Members that have lifted export restrictions have also not notified these.</p> 14</sec> 15<attrib>Source: WTO Secretariat.</attrib></boxed-text>

In the XML example you can see that with the use of the Box Begin and Box End markers in Word, the box Figure 1 is correctly included within the <boxed-text> markup.

Box text should not be formatted as a Word table because this will incorrectly tag the text as <table> in the XML. All box content should be converted from table to text before eXtyles processing.

Similarly, boxes that include tables require the use of the Box Begin and Box End markers; also, because nested tables are illegal in an eXtyles workflow, box content must be converted from a table to text, as in the following example.

Word

XML

1<boxed-text id="b03.01"> 2<label>Box 3.1</label><caption><title>COVID-19 export restrictions</title></caption> 3<sec>.... 4<p>While it is not technically feasible to have an exact measurement of the value of exports that is being affected by the export prohibitions and restrictions (i.e. because most products covered by the measures do not have a specific tariff line or HS sub-heading that fully identifies them, and the available export data is only at the HS sub-heading level), it is possible to calculate rough estimates of the share of world exports affected by them. One possible way of making this rough estimate for a narrow group of products is by matching the export restrictions with the HS codes covered by the joint World Customs Organization&#x2019;s and World Health Organization's list of COVID-19-related products. Since only part of a given HS sub-heading is related to the relevant products, these estimates have to be considered as upper limits of the affected trade flow (i.e. they may overestimate the actual value of the exports). Notwithstanding this methodological and data limitation, it would appear that the export prohibitions and restrictions affect, in particular, protective garments and disinfectants and sterilization products, where up to 21.5% and 17%, respectively, of world trade may be affected by these measures. See Table 1.</p> 5<table-wrap id="t01" position="float"> 6<label>Table 1</label><caption><title>Export prohibitions and restrictions introduced to combat the COVID-19 pandemic, by type of product</title> 7<p>(Number)</p></caption> 8<table rules="groups"> 9<col width="50%"/> 10<col width="50%"/> 11<thead> 12<tr> 13<td valign="top" align="center" scope="col" style="border-left: solid 0.50pt; border-top: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(0,98,131)">Section (category of products)</td> 14<td valign="top" align="center" scope="col" style="border-left: solid 0.50pt; border-top: solid 0.50pt; border-right: solid 0.50pt; background-color:rgb(0,98,131)">Share of world exports (%)</td> 15</tr> 16</thead> 17<tbody> 18<tr> 19<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">COVID-19 test kits</td> 20<td valign="top" align="center" style="border-left: solid 0.50pt; border-right: solid 0.50pt">0.1</td> 21</tr> 22<tr> 23<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Protective garments and the like</td> 24<td valign="top" align="center" style="border-left: solid 0.50pt; border-right: solid 0.50pt">21.5</td> 25</tr> 26<tr> 27<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Disinfectants and sterilization products</td> 28<td valign="top" align="center" style="border-left: solid 0.50pt; border-right: solid 0.50pt">17.0</td> 29</tr> 30<tr> 31<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Oxygen therapy equipment and pulse oximeters</td> 32<td valign="top" align="center" style="border-left: solid 0.50pt; border-right: solid 0.50pt">4.8</td> 33</tr> 34<tr> 35<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Other medical devices and equipment</td> 36<td valign="top" align="center" style="border-left: solid 0.50pt; border-right: solid 0.50pt">3.0</td> 37</tr> 38<tr> 39<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Other medical consumables</td> 40<td valign="top" align="center" style="border-left: solid 0.50pt; border-right: solid 0.50pt">12.0</td> 41</tr> 42<tr> 43<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt" scope="row">Vehicles</td> 44<td valign="top" align="center" style="border-left: solid 0.50pt; border-right: solid 0.50pt">0.0</td> 45</tr> 46<tr> 47<td valign="top" align="left" style="border-left: solid 0.50pt; border-right: solid 0.50pt; border-bottom: solid 0.50pt" scope="row">Other</td> 48<td valign="top" align="center" style="border-left: solid 0.50pt; border-right: solid 0.50pt; border-bottom: solid 0.50pt">0.5</td> 49</tr> 50</tbody></table> 51<table-wrap-foot><attrib>Source: WTO Secretariat based on data in the Trade Monitoring Report and UN COMTRADE.</attrib></table-wrap-foot> 52</table-wrap> 53</sec> 54<sec> 55<title>Have these measures been notified to the WTO?</title> 56<p>In addition to the information provided by Members pursuant to the trade monitoring exercise, Members are required by the 2012 Decision on Notification Procedures for Quantitative Restrictions (G/L/59/Rev.1) to notify every two years all prohibitions and restrictions that they maintain, including on exports. In principle, new measures should be notified no later than 6 months after their entry into force. </p>