Home › Forums › General XMetaL Discussion › present an xml fragment in a table format › Reply To: present an xml fragment in a table format
Reply to: present an xml fragment in a table format
June 25, 2009 at 8:55 pmI'm not sure rendering this as a table will give you what you really want. XMetaL Author really works best when rendering HTML and CALS tables. In your case, if you are not working with real HTML or CALS tables then I would generally recommend rendering this content as a table (unless you are willing to do a bunch of scripting to make it easy for users to manipulate their content).
Going by your example, the following CSS should render something very similar:
[code]ELEMENT { display:block }
ELEMENT:before { content:attr(ATTR1) }
ELEMENT:after { content:attr(ATTR2) }
SUB1, SUB2 { display: inline }
[/code]
Note: there was an inconsistency between your opening “ELEMENT1” and closing “/ELEMENT” tags. The “ELEMENT” in this example is the top level element in this fragment.