table editor doesn't create table header.
- 4 replies.
- This is not yet resolved.
- This question was started by Robert@docufy.
- Last post by Robert@docufy.
|
member
June 28th 2010
|
Hey guys,
i'm currently trying to configure the built-in table editor properly but i can't get it to create a table header. Our table model is leaned on the cals table model and built as follows: <table> <tgroup> <colspec column=“name“/>... <thead> (the header which makes the problems) <row> <entry> <p/> for a normal entry, <li> for a list item and <img> for a image </entry> </row> </thead> <tfoot> row, entry... like in <thead> … </tfoot> <tbody> row, entry like in <thead> and <tfoot... </tbody> The roles i applied for the header <x:node match="thead"> <x:role>tableheader</x:role> <x:role>tablerowcontainer</x:role> </x:node> <x:node match="thead/row/entry"> <x:role>tableheadercell</x:role> </x:node> The editor offers the checkbox to select whether a header should be insterted or not but if selected that a header should be created a tbody, row is created. Are the roles properly set? |
|
Xopus Team
June 29th 2010
|
Have you tried to remove the tableheadercell role? That role use used for the HTML table model and might confuse the table inserter.
|
|
member
June 29th 2010
|
Great. That did the job. But now the footer makes problems. I gave the tablefooter role to the tfoot element like this:
<x:node match="tfoot"> <x:role>tablefooter</x:role> </x:node> When i do this, the editor creates a new tgroup below the tgroup where tbody and thead is in and writes the colspec in the later tgroup. Like this: <table> <tgroup cols=""> <thead> <row> <entry /> <entry /> <entry /> <entry /> <entry /> </row> </thead> <tbody> <row> <entry /> <entry /> <entry /> <entry /> <entry /> </row> <row> <entry /> <entry /> <entry /> <entry /> <entry /> </row> <row> <entry /> <entry /> <entry /> <entry /> <entry /> </row> </tbody> </tgroup> <tgroup cols="1"> <colspec colname="colA" /> <tfoot> <row> <entry /> <entry /> <entry /> <entry /> <entry /> </row> </tfoot> <tbody> <row> <entry /> </row> </tbody> </tgroup> </table> |
|
Xopus Team
June 29th 2010
|
This is a known limitation of the current implementation if I am not mistaken. Xopus requires the footer rows to come after the body rows.
|
|
member
June 29th 2010
|
Ok thx for your help.
|
- Support
- › Forum
- › How To ...
- › table editor doesn't create table header.
React
Write a comment