About Arbortext Styler > Adding Generated Text > Advanced Formatting of Titles and Numbering > Example: Start List Numbering at 0 and Use Asian Numbering
Example: Start List Numbering at 0 and Use Asian Numbering
This example describes how to configure numbering for lists such that the first entry of each list is numbered zero and an Asian numbering style is used when the document’s language is Chinese. The list is defined in an orderedlist element, with child listitem elements making up its entries.
If the stylesheet property Format list items as tables is not selected, support for list numbering styles in HTML outputs varies by browser. Refer to Numbering List Items for a summary of differences.
1. In the Elements list, select the orderedlist element and give it the List - Numbered style via the Edit > Style menu option.
2. Select the listitem element and give it the List Item style.
3. For each context of listitem in orderedlist:
a. Select the context
b. Create a condition that tests whether the language of the document is Chinese, for example by creating an attribute test for the value of the xml:lang attribute
c. Set the context to be numbered by navigating to the Generated text category and selecting the Number option in the Numbers and Bullets field.
d. Click the Details button to open the List Item Number dialog box.
e. Select the desired Asian numbering style in the Number style field. For example, if the value of the xml:lang attribute is ch, select the simp-chinese-informal numbering style.
f. Click the Start at button to open the Start At dialog box.
g. In the dialog box, select the Fixed value option and enter 0 in the adjacent field.
h. Save the change and exit the dialog box, then exit the list numbering dialog box.
4. When previewing or publishing you will now see that lists based on the orderedlist element all start at 0, and that if the document is set to use the Chinese languages the numbering of the list is displayed according to the simp-chinese-informal numbering scheme.