Hussein Shafie wrote:
> The problem that you report is subtle. It is an undocumented limitation
> rather than a bug. See below.
>
>
>   
> ...
>   

> (Please open XXE_install_dir/demo/xhtml-table.xhtml and check this by
> yourself.)
>
>   
Yes, your solution works for the example I sent (sorry about the missing 
attachments!)

> Now how does this work? When you add a caption to a table, XXE
> automatically creates an *anonymous* *block* containing both the caption
> and the table. It is this block which may be made collapsible.
>
> Therefore you are right: only blocks, whether explicitly created (i.e.
> "display:block;") or implicitly created, are collapsible.
>
>
>   
Out of curiosity - would it not be possible to create the anonymous 
block without requiring the caption?  In other words always create a 
block between a display:table and display: table-row.

For the document I am working on it is not a problem to add another 
child element to make into the caption - certainly it is better than 
having to add a parent element which would then mean many changes to 
XSLT programs which process the document.  But in general I prefer not 
to make changes to the document schema just to make editing more 
comfortable.

Thanks for your swift and clear response, despite me leaving out the 
important bit of the message.

Trevor Nash

-- 
Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771363 
email:     tcn at melvaig.co.uk       web:       http://www.melvaig.co.uk

Registered in Scotland No 194737
5 Melvaig, Gairloch, Ross-shire IV21 2EA


Reply via email to