On Sat, Jan 3, 2009 at 4:49 PM, Marius Dumitru Florea <
[email protected]> wrote:

> Thomas Mortagne wrote:
> > On Sat, Jan 3, 2009 at 3:57 PM, Marius Dumitru Florea
> > <[email protected]> wrote:
> >> Thomas Mortagne wrote:
> >>> On Sat, Jan 3, 2009 at 3:16 PM, Marius Dumitru Florea
> >>> <[email protected]> wrote:
> >>>> Thomas Mortagne wrote:
> >> [snip]
> >>
> >>> Does this means it's impossible to have a second level list in XHTML ?
> >> Yes, afaik a 2nd level list must be nested within a 1st level list item.
> >>
> >> I'm planing to overwrite the default support for lists in the WYSIWYG
> >> editor (see http://jira.xwiki.org/jira/browse/XWIKI-3061 ) and I'm for
> >> preventing Nth level lists without a N-1th level.
> >>
> >>>> 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.
> >> I really don't see the need for having 2nd level list without a 1st
> >> level list. Why would a use want it?
> >
> > Why not ;)
> >
> > More seriously, adding the first level automatically when user only
> > written second level list in wiki syntax is a specific support and for
> > me it's useless at XWiki parser level. So it's simply easier and
> > cleaner for the code to "support" second level lists. And for me since
> > the grammar support it I don't see why we should not allow it on
> > parser side.
> >
> > The fact that XHTML renderer does not support it has nothing to do
> > with the XWiki parser, it's up to XHTML parser to protect itself since
> > the XDOM allow it, any macro can generate second level list. For
> > example if you only have second and third level headers, toc macro
> > will generate second and first level list. Tox macro should not have
> > to add the first level list item or convert the second level in first
> > level because both are incorrect.
>
> Semantically speaking a 2nd level list is a sublist of a 1st level list.
> Following this logic you can't have a 2nd level list without a 1st level
> list. I don't see why XDOM supports it.
>
> Regarding the toc macro, I don't see the relation between header level
> and list level. I guess the toc macro generates:
>
> ** h2
> **** h4
>
> for
>
> == h2 ==
> ==== h4 ====
>
> while I personally expect
>
> * h2
> ** h4
>
> My fear is that supporting 2nd level list without a 1st level list is
> going to be a pain for the WYSIWYG.


This could be enought to win the debate if it's really a pain ;)


>
>
> >
> >>> 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
> >>>>
> >>>
> >>>
> >> _______________________________________________
> >> devs mailing list
> >> [email protected]
> >> http://lists.xwiki.org/mailman/listinfo/devs
> >>
> >
> >
> >
> _______________________________________________
> 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

Reply via email to