Jim Higson wrote:
A question regarding lists as XML:
It seems like with the current parser nested lists are always contained
within listitems.
What should be the output from something like:
** foo
** bar
Should there be a 'phantom' listitem to contan the nested list, such as:
<list>
<listitem>
<list>
<listitem>foo</listitem>
<listitem>foo</listitem>
</list>
</listitem>
</list>
Or is it valid for a List to directly contain a list, ie:
<list>
<list>
<listitem>foo</listitem>
<listitem>foo</listitem>
</list>
</list>
Of course, starting two lists like that is bad syntax, but parsable. I can
build a decent parse tree of list wikitext now, but I'm not sure which is
the correct XML output.
--
Jim