Hi,

I am using XXE Standard Edition for editing some docbook documents. I
had a revision history in the docbook document (shown below):

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
  "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd";>
<article>
  <articleinfo>
    <title>Test Doc</title>

    <revhistory>
        <revision>
                <revnumber>0.1</revnumber>
                <date>11 April, 2005</date>
                <authorinitials>XYZ</authorinitials>
                <revremark>Initial Draft</revremark>
        </revision>
        <revision>
                <revnumber>0.2</revnumber>
                <date>12 April, 2005</date>
                <authorinitials>XYZ</authorinitials>
                <revremark>After review comments</revremark>
        </revision>
    </revhistory>
  </articleinfo>
  
  <section>
    <title></title>
    <para></para>
  </section>
</article>

I wanted the revision history displayed as a table in the XXE view. So
I created the following CSS:

@import url(xxe-config:docbook/css/docbook.css);

revhistory:before {
        content: "Revision History";
}

revhistory {
        display: table;
    border-style: solid;
    border-width: 1;
    margin: 1.33ex 0;
}

revision:before { 
        display: inline;
        content: "";
}

revision {
    display: table-row; 
}

revnumber, revision date, revision authorinitials, revremark, revdescription {
    display: table-cell;
    border-style: solid;
    border-width: 1;
        font-weight: normal;
    padding: 2; 
}

revnumber:after, revision date:after, revision authorinitials:after {
    content: "";
}

The table gets created, but each of the children of the "revision" tag
is displayed in a new row, although I have given the display type for
the children as "table-cell".

Any ideas as to why this is happening & how I can solve this?

- Navin

Reply via email to