On Sat, Jan 3, 2009 at 3:16 PM, Marius Dumitru Florea <[email protected]> wrote: > Thomas Mortagne wrote: >> Hi xwikiers, >> >> Currently the syntaxes >> >> ** list item >> >> and >> >> * >> ** list item >> >> are giving exactly the same rendering: >> <ul><li><ul><li>list item</li></ul></li></ul> >> >> This is expected and we have even a unit test for that but I think >> it's a wrong behavior. >> >> The "problem" is not really at rendering level but at wikimodel XWiki >> parser which send the same events for the two syntaxes: >> beginList >> beginListItem >> beginList >> beginListItem >> [...] >> endListItem >> endList >> endListItem >> endList >> >> I propose to change that for >> >> ** list item >> >> to render >> >> beginList >> beginList >> beginListItem >> [...] >> endListItem >> endList >> endList >> >> and >> >> <ul><ul><li>list item</li></ul></ul> >> >> and same concept for any other list level (like *** , **** , etc.). >> > >> Since XDOM and XHTML support it, here is my +1. > > What do you mean by "XHTML support it"? XHTML 1.0 strict DTD says: > > <!-- Unordered list --> > > <!ELEMENT ul (li)+> > <!ATTLIST ul > %attrs; > > > > See http://www.w3.org/TR/xhtml1/dtds.html#dtdentry_xhtml1-strict.dtd_ul
Ok, I just tested it by hand in fact I did not even thought of it as invalid so I did not checked the DTD. Does this means it's impossible to have a second level list in XHTML ? > > For me > > ** list item > > is not valid since you can't have a 2nd level list without a 1st level > one. And even if you consider it valid, I don't see why you need to > generate a different, invalid, XHTML for it. Even if it's not valid for XHTML it should be a XHTML renderer choice and not XWiki parser. For me, on the wiki syntax side, this is perfectly valid, the same way that you can start heading in a page by a second level header for example. Also, it's valid in OpenOffice or MSWord so this is another limitation when importing. > > Thanks, > Marius > >> >> See also http://jira.xwiki.org/jira/browse/XWIKI-3057 >> >> Thanks, > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > -- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

