On Sat, Jan 3, 2009 at 3:57 PM, Marius Dumitru Florea
<mariusdumitru.florea(a)xwiki.com> wrote:
Thomas Mortagne wrote:
On Sat, Jan 3, 2009 at 3:16 PM, Marius Dumitru
Florea
<mariusdumitru.florea(a)xwiki.com> 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.
Also, it's valid in OpenOffice or MSWord so
this is another limitation
when importing.
Thanks,
Marius
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs