Hi, I did all the changes you suggested but it still does not work! The table-representation still looks bad.
Isn't it possible to match the names of the elements like at the file common.incl? Kind regards, Monika -----Urspr?ngliche Nachricht----- Von: Hussein Shafie [mailto:hussein at xmlmind.com] Gesendet: Dienstag, 02. Mai 2006 12:28 An: Madlik, Monika (LNG-VIE) Cc: xmleditor-support at xmlmind.com Betreff: Re: AW: AW: AW: [XXE] problem with calstable and docbook *** OK. You have changed more element names than I've expected (e.g. tbody-->calstbody is a killer). Therefore what I've suggested cannot work. Please remove: --- @import "xxe-config:docbook/css/table.imp"; @extension "com.xmlmind.xmleditapp.docbook.table.TableSupport black rgb(238,238,224)"; --- from your handbuch_table.css, which otherwise is the best you can do (this was my plan B). Just add "display: block;" to --- calstable:before { color: #777777; font-size: 10pt; content: "<calstable>"; } --- And this rule is sufficient: --- calsthead { font-weight: bold; } --- (i.e. no need for "> row > entry > absatz") *** In: --- <cfg:property name="ln.tableEdit.tableSpecification"> table=calstable tgroup rowGroup=calstbody calsthead row=row cell=entry rowSpan=morerows+1 </cfg:property> --- please remove "calstable" from line "table=calstable tgroup". As I've explained it, a "calstable" is not really a table, while a "tgroup" is. Madlik, Monika (LNG-VIE) wrote: > Hello, > >>@import "xxe-config:docbook/css/table.imp"; >>@extension "com.xmlmind.xmleditapp.docbook.table.TableSupport black >>rgb(238,238,224)"; > I'm sorry but this does not work. > > Below you can see my css-file and our table-model, so you can reconstruct > what I did and which elements I use at our tables. > > Kind regards, > Monika > > > handbuch_table.css: > =================== > > @import "xxe-config:docbook/css/table.imp"; > @extension "com.xmlmind.xmleditapp.docbook.table.TableSupport black > rgb(238,238,224)"; > > calstable:before > { > color: #777777; > font-size: 10pt; > content: "<calstable>"; > } > > calstable > { > display: block; > margin: 1.33ex 0; > } > > colspec > { > display: table-column; > collapsed: yes; > } > > tgroup > { > display: table; > border-style: solid; > border-width: 1; > } > > > calsthead > { > display: table-row-group; > } > > calsthead > row > entry > absatz > { > font-weight: bold; > } > > calstbody > { > display: table-row-group; > } > > row > { > display: table-row; > } > > entry > { > display: table-cell; > border-style: solid; > border-width: 1; > padding: 2; > } > > entry > *:first-child > { > margin-top: 0; > margin-bottom: 0; > } > > @media print > { > colspec > { > display: none; > } > } > > > Our table-model: > ================ > > <calstable> > <tgroup> > <colspec/> > <calsthead> > <row> > <entry> > <absatz></absatz> > </entry> > </row> > </calsthead> > <calstbody> > <row> > <entry morerows="" namest="" nameend=""> > <absatz></absatz> > </entry> > </row> > </calstbody> > </tgroup> > </calstable> > > > Excerpt of my common.incl: > ========================== > > <cfg:command name="ln.tableEdit"> > <cfg:class>com.xmlmind.xmleditapp.tableedit.GenericTableEdit</cfg:class> > </cfg:command> > > <cfg:property name="ln.tableEdit.tableSpecification"> > table=calstable tgroup > rowGroup=calstbody calsthead > row=row > cell=entry > rowSpan=morerows+1 > </cfg:property> > > > -----Urspr?ngliche Nachricht----- > Von: Hussein Shafie [mailto:hussein at xmlmind.com] > Gesendet: Dienstag, 02. Mai 2006 10:54 > An: Madlik, Monika (LNG-VIE) > Cc: xmleditor-support at xmlmind.com > Betreff: Re: AW: AW: [XXE] problem with calstable and docbook > > Madlik, Monika (LNG-VIE) wrote: >>Now it is possible for me to use the docbook-functions without changing my >>dtd. > > Note that you are not using the DocBook/CALS table editing commands but > downgraded, generic, table editing commands. > > Slightly changing your DTD would make everything much easier, more > powerful and more maintenable. > > > >>But I got another problem. How is it possible for me, to apply the css to my >>table-elements? Table-width, colspan and rowspan is not displayed correctly >>because of the names of my elements. > > Try this: > > --- > @import "xxe-config:docbook/css/table.imp"; > > @extension "com.xmlmind.xmleditapp.docbook.table.TableSupport black > rgb(238,238,224)"; > > calstable { > display: block; > margin: 1.33ex 0; > } > > calstable > title { > display: block; > font-style: italic; > font-weight: normal; > text-align: center; > /* keep margin because tgroup has no margin */ > } > --- > (@extension "com ... ,224)"; on ONE line please, that is, no carriage > return inside the CSS string "com ... ,224)") > > It *may* work smoothly because the real tables in CALS are not "table", > "informaltable" or your "calstable" but "tgroup" and "entrytbl" (and I > guess that you have not changed these names). > > If this does not work properly, do not hesitate to send another email so > I can tell you about plan B. > > > -- > XMLmind XML Editor Support List > xmleditor-support at xmlmind.com > http://www.xmlmind.com/mailman/listinfo/xmleditor-support > >

