list ol
The parse definition list ol is used to match the <ol> tag and outputs each <li> tag to <ParagraphStyle>
Attribute | HTML to XML | XML to HTML |
style | Node without class attribute is matched to Style="Numbers1" "anyClassValue" is matched to Style="anyClassValue" | Style="Numbers1" is matched to node without class attribute. |
default style | Node without class attribute is matched to Style="" "anyClassValue" is matched to Style="anyClassValue" | Style="anyStyleValue" is matched to class="anyStyleValue". |
From HTML to XML – all attributes are default match attributes. Therefore, the first is applied for the node. All <li> nodes inside the <ol>
node are changed to <ParagraphStyle Style="Numbers1">
.
From XML to HTML – the first attribute is an exact match attribute, the "default style" attribute is a default match attribute. If style value is other than “Numbers1”, the "default style" attribute will be used.
Note
In rich text fields, avoid using a forced line break inside bulleted and numbered lists. Forced line breaks are transformed as CDATA with the newline “\n”, which is interpreted as ParagraphReturn in InDesign.
The parse definition list ul is used to match the <ul>
tag and outputs each <li>
tag to <ParagraphStyle>
.
Attribute | HTML to XML | XML to HTML |
style | Node without class attribute is matched to Style="Bullets1" "anyClassValue" is matched to Style="anyClassValue" | Style="Bullets1" is matched to node without class attribute. |
default style | Node without class attribute is matched to Style="" "anyClassValue" is matched to Style="anyClassValue" | Style="anyStyleValue" is matched to class="anyStyleValue”. |
From HTML to XML – all attributes are default match attributes. The first is applied to the node and all <li> nodes inside the <ol> node are changed to <ParagraphStyle Style="Bullets1">.
From XML to HTML – the first attribute is an exact match attribute and the "default style" attribute is a default match attribute. If the Style value is anything other than Bullets1, the "default style" attribute is used.