Moving this question to a different thread, as requested.
I’m trying to customize DocBook XSL’s HTML output.
After a docbook <table> element, the stylesheets generate this code:
<div class="table">
[...]
</div>
<p>
<br class="table-break">
</p>
This induces unwanted spaces in the HTML output and I can’t find where this code comes from as a search for “table-break” in the DocBook XSL comes up with no results. How would I go about getting rid of this code?
Thanks!
~Slampisko
This information is directed at Docbook XSL 1.77.1. This may not match up with your version, especially given that your post table break element is wrapped with
<p>:As mentioned by mzjn, the formal.xsl file has what you’re looking for.
formal.objectis a named template that is called when you specify a CALS table (or embed a graphic/mediaobject). Within this template there is a test to check if a break element should be added afterward. There is a global parameter (top of the file) that controls this behaviour. It is enabled by default:You can redefine this by specifying the parameter to your XSLT processor, with Saxon, for example, it would take the form:
You can probably also shadow it from within your customisation by redefining
formal.object.break.afterafter you have imported the base stylesheet.