xsl-list
[Top] [All Lists]

Re: [xsl] Nesting a flat XML structure

2018-10-29 14:02:19
On Mon, Oct 29, 2018 at 06:52:59PM -0000, Martin Honnen 
martin(_dot_)honnen(_at_)gmx(_dot_)de scripsit:
[snipped examples]
though so keeps the "ul" lists separated from the sibling "p" elements, have
so far not understood why a list belongs into a preceding paragraph.

I have so far found that taking a word processor format flat sequence of
elements and properly nesting the lists takes interpreting the source
for level, labelling the list with that level (generally via disposable
attribute), and then performing a distinct nesting pass where the final
list item of a list "eats" the immediate follow-sibling lists if the
list has a lower level-label than this list.  Especially when you have
complex list items (tables, multiple paragraphs, notes...) it's
generally just easier to approach the problem as a sequence of passes
over the content.

-- Graydon
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>