Start of HTML Chunk Test Dialog Box
The Start of HTML Chunk Test dialog box opens when you carry out one of the following actions in the Condition dialog box while creating a condition for an element or a table of contents (TOC):
• Choosing the New Chunk Test button
• Highlighting an existing chunk test and choosing Edit
The Start of HTML Chunk Test dialog box contains the following options:
• At start of HTML chunk - select this option to confirm that the test will return true if the selected element for which you are creating the condition appears at the start of an HTML chunk.
If you are creating the condition for a single level element or context, for example xref everywhere, the name of the element will be displayed in the Element to test field.
If the condition is being created for an element context in a specific ancestor, for example title in section, the name of both the element and its ancestor will be displayed in the Element to test field. You have the option to pick either one to which to apply the start of chunk test. In this instance you will have two possible tests:
1. Match the section title that appears at the start of a HTML chunk - select title from the Element to test list
2. Match the title that appears in a section that appears at the start of a HTML chunk - select section from the Element to test list
Note that selecting section here will mark the true start of the chunk, for example if you wish to apply formatting properties such as prespace to the chunk itself.
• Not at start of HTML chunk - select this option to confirm that the test will return true if the selected context appears anywhere other than the start of a HTML chunk. As above, you also have the option to select either the element or its ancestor to which to apply the test, where applicable.
• Element to test - this field contains details of the context selected in the Elements list, for which you are creating a condition. Highlight the element to which you wish to apply the start of chunk test and select either At start of HTML chunk or Not at start of HTML chunk as applicable.
If you are creating a chunk test for a TOC condition, you will be presented with two options for the type of element that should be tested, rather than being able to select specific elements. Choose either Title element or Parent element to define whether it is the title itself or the parent in which it appears whose position in the HTML chunk should be tested.
|
Start of HTML chunk tests should only be created for conditions that are intended to apply properties in chunked HTML outputs (EPUB, HTML Help, and Web). Tests of this nature will return a value of false in conditions specified for Arbortext Editor, print/PDF, HTML File or RTF outputs.
|