...
Tip | ||
---|---|---|
|
All tables, or content styled with the Table elements of the paragraph styles palette, must be in Word table format. Otherwise, export is likely to produce parsing errors. All content for each table should be in a single Word table. Splitting content for a single table across multiple Word tables will likely result in incorrect XML and may result in parsing errors.
The more formatting you set correctly in Word, the more that formatting will be correctly reflected in the XML (cell alignment, column widths, cell borders). Note that eXtyles supports the use of the decimal tab in Word tables, as well as left- and right-aligned and centered content.
Info |
---|
The examples highlight various aspects of how to set up tables in Word in order to obtain the optimal XML. The examples are taken from the sample document: Sample_5_Table-setup.docx |
Alignment
This relatively simple table has been set up with the headings of columns 2 and 3 centered and with the contents of column 1 left aligned, column 2 centered and column 3 aligned on a decimal tab. The cells in the top row carry the Table_Head style, while the other rows are styled as Table_ Body.
...
Info |
---|
The examples highlight various aspects of how to set up lists in Word in order to obtain the optimal XML. The examples are taken from the sample document: |
List Labels
By default, eXtyles NLM does not store the text of the list label (i.e. the bullet, number, letter, etc.) in the XML. Instead, it assigns a @list-type
attribute to the list, such as @list-type="bullet"
. This gives extra flexibility in rendering the XML, because the rendering engine can be set to use whatever bullet or label is required in a particular environment. This works well for "standard" bullet characters (•, o, various dashes) and numbering schemes (a, b, c; i, ii, iii; 1, 2, 3; etc.). However, if you need to support complex or "non-standard" list-numbering schemes, you may need to contact extyles-support@inera.com to discuss capturing the text of the list labels in your JATS XML.
This example shows a regular numbered list:
Nested Lists
In eXtyles NLM, a group of contiguous list paragraphs will be exported as a single XML list. Nested lists should be styled carefully to ensure that the nesting is reflected in the paragraph styles used. See the following example of a nested list:
which yields this JATS XML:
Code Block | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| <table-wrap
| |||||||||||
<list id="L1" list-type="bullet"> <list-item> <p> Extrapyramidal dysfunction, including one or more of the following: </p> <list id="t1L2" positionlist-type="floatbullet"> <label>Table 1</label> <caption><title>Exeter talked in agreed spirit no he unable do</title></caption> <table frame="hsides" rules="groups"> <col width="29.49%"/> <col width="41.29%"/> <col width="29.22%"/> <thead> <tr> <th valign="top" align="left" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Strain</th> <th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">G+C content (mol%)</th> <th valign="top" align="center" scope="col" style="border-top: solid 0.50pt; border-bottom: solid 0.50pt">Similarity (%)</th> </tr> </thead> <tbody> <tr> <td valign="top" align="left" style="border-top: solid 0.50pt" scope="row">A-123</td> <td valign="top" align="center" style="border-top: solid 0.50pt">68.4</td> <td valign="top" align="char" char="." style="border-top: solid 0.50pt">100</td> </tr> <tr> <td valign="top" align="left" scope="row">45720</td> <td valign="top" align="center">70.1</td> <td valign="top" align="char" char=".">90.3</td> </tr> <tr> <td valign="top" align="left" style="border-bottom: solid 0.50pt" scope="row">NCIMB 2053</td> <td valign="top" align="center" style="border-bottom: solid 0.50pt">54.0</td> <td valign="top" align="char" char="." style="border-bottom: solid 0.50pt">8.1</td> </tr> </tbody> </table> </table-wrap> <list-item> <p> Dystonia </p> </list-item> <list-item> <p> Rigidity </p> </list-item> <list-item> <p> Choreoathetosis </p> </list-item> </list> </list-item> <list-item> <p> Onset </p> <list id="L3" list-type="bullet"> <list-item> <p> <bold> Classic form </bold> . Usually in first decade of life </p> </list-item> <list-item> <p> <bold> Atypical form </bold> . More often in the second or third decade of life </p> </list-item> </list> </list-item> <list-item> <p> Loss of ambulation </p> <list id="L4" list-type="bullet"> <list-item> <p> <bold> Classic form </bold> . Often occurring within ten to 15 years of onset </p> </list-item> <list-item> <p> <bold> Atypical form </bold> . Often occurring within 15 to 40 years of onset </p> </list-item> </list> </list-item> </list> |
The cells in column 1 have the attribute @align="left"
and those in column 2 have @align="center"
. The cells in column 3 have the attribute @align="char"
(i.e. align on a specific character), and they have the additional attribute @char="."
(i.e. align on the period, used here as a decimal point).
...