Chris Curt wrote:
> is it possible to arrange a not table like xml document as a table
> with css. this means that the content of the cells is sometimes
> generated content sometimes I like to show an attribute selector,
> sometimes the element content and sometimes functions like
> delete-button().
>
> for example I have an element with an attribute - therefore I like to
> create a row with 5 columns.
> 1st column: generated content
> 2nd column: element content (as text-field)
> 3rd column: an attribute selector with radio buttons
> 4th column: nothing (is used by other rows)
> 5th column: some functions like delete-button(), insert-same-after()
> for the specified element or on other elements like the parent element
>
> in the other rows the cells shoul be filled in other ways - so there
> is no generic xml structur - each row is individual but I like to
> arrange it as a table.
>
Sorry, my previous answer saying that this can't be done is probably
wrong. What you want can probably be achieved using XXE.
Simple example: display an XHTML ul having class="table" like a table:
---
ul.table {
display: table;
}
ul.table > li {
display: table-row;
content: row(cell(content(icon(diamond), " ", counter(n),
" ", icon(diamond))),
cell(text-field(40)),
cell(insert-same-after-button()),
cell(insert-same-before-button()));
}
ul.table > li:before {
content: "";
}
---
See result in attached screen shot.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ul-table.png
Type: image/png
Size: 2058 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060224/14193276/attachment.png