Hi Lars,
It seems that formatting is hardcoded into the revhistory template.  I'm afraid 
you'll need to customize the template to remove those attributes.

There are actually two templates with match="revhistory", one in html/block.xsl 
and the other in html/titlepage.xsl.  The latter is used when the revhistory is 
in an info element.

Bob Stayton
Sagehill Enterprises
[email protected]


  ----- Original Message ----- 
  From: Lars Vogel 
  To: DocBook Apps 
  Sent: Wednesday, March 28, 2012 3:33 PM
  Subject: [docbook-apps] HTML table output for revhistory contains formating


  Hi,


  the <revhistory> Docbook element gets some default formating in the HTML 
table output, e.g.  border="1" width="100%" 


  Is it possible to turn this off? I would like to use CSS for that. 

  Example below.


  Best regards, Lars


  <revhistory>
  <revision>
  <revnumber>0.1</revnumber>
  <date>07.03.2011</date>
  <author>
  <firstname>Lars</firstname>
  <surname>Vogel</surname>
  </author>
  <revremark>created </revremark>
  </revision>
  <revision>
  <revnumber>0.2 - 2.1</revnumber>
  <date>08.03.2011 - 28.03.2012</date>
  <author>
  <firstname>Lars</firstname>
  <surname>Vogel</surname>
  </author>
  <revremark>bug fixed and enhancements </revremark>
  </revision>


  </revhistory>




  <div class="revhistory">
                       <table border="1" width="100%" summary="Revision 
history">
                          <tbody><tr>
                             <th align="left" valign="top" 
colspan="3"><b>Revision History</b></th>
                          </tr>
                          <tr>
                             <td align="left">Revision 0.1</td>
                             <td align="left">11.05.2009</td>
                             <td align="left"><span 
class="firstname">Lars<br></span><span class="surname">Vogel<br></span></td>
                          </tr>
                          <tr>
                             <td align="left" colspan="3">Created Article</td>
                          </tr>
                          <tr>
                             <td align="left">Revision 0.2 - 1.3</td>
                             <td align="left">10.10.2009 - 21.11.2011</td>
                             <td align="left"><span 
class="firstname">Lars<br></span><span class="surname">Vogel<br></span></td>
                          </tr>
                          <tr>
                             <td align="left" colspan="3">bug fixes and 
enhancements</td>
                          </tr>
                       </tbody></table>
                    </div>
  -- 
  Lars
  http://www.vogella.de - Eclipse, Android and Java Tutorials
  http://www.twitter.com/vogella - Lars on Twitter

Reply via email to