Vincent Massol wrote:
> On Nov 13, 2008, at 1:11 PM, Sergiu Dumitriu wrote:
> 
>> Thomas Mortagne wrote:
>>> Hi devs,
>>>
>>> Currently in xwiki syntax 2.0 we are using
>>> || title cell 1 || title cell2
>>> | cell 1 | cell 2
>>> for table syntax.
>>>
>>> The problem is that with this grammar it's impossible to have empty
>>> cells because you can't use || as it mean title cell.
>>>
>>> But we have an alternative grammar for table which is
>>> !! title cell 1 !! title cell2
>>> :: cell 1 :: cell 2
>>> which can represnet empty cell with ::::
>>>
>>> So I propose to use !! :: instead of || | by default for xwiki  
>>> syntax rendering.
>>>
>>> WDYT ?
>>>
>>> I'm +1 for it
>>>
>>>
>>> Now there is another problem: it seems ampty cells are not permitted
>>> in xhtml and have to contains at least  
>>> If we render empty cells as <td>&nbsp;</td> and reparse it we will  
>>> get
>>> a space in wiki syntax in place of empty cell.
>> That's not true. Empty cells are perfectly OK.
>> http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_simpletablemodule
>> says that the content of td elements is (PCDATA | Flow - table)*,  
>> where
>> * means 0 or more, so nothing at all is acceptable.
>>
>>> There is the solution of saying, it's a limitation and a cell should
>>> not be empty in xwiki syntax or we will have to use to tricky comment
>>> in xhtml renderer...
>>>
>>> Does someone has a good idea about that ?
>>>
>>> Thanks
>> How about | |, since a space should not count as content, and it is
>> different from ||.
> 
> Spaces count as content in wiki syntax.

Yes, but I'm talking about HTML. Or, why would we need empty cells in
the wiki source? Why would users see the difference between a table cell
that doesn't show text in it, and one that doesn't have ANY content at all?

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to