Image support has been mangled since the move to docbook.css. This
adds a new mediaobject handler to simplify the output HTML so that images no longer overlap the text and other nearby images. The output HTML used to look like this : <div class="MEDIAOBJECT"> <p><img src="fig2.png"></p> </div> The problem was that the image would be displayed on top of nearby text or image elements completely obscuring the previous contents rather than doing proper page layout. With this change, the above now simply looks like this : <img src="fig2.png"> An alternative solution would be to fix docbook.css, but I think that the problem stems from the way that different browsers implement CSS. It is easier to just fix it here at the DSSSL level.
This commit is contained in:
parent
8d2a434262
commit
78c6c53ba0
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=9684
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.32 2001/06/16 21:30:11 nik Exp $ -->
|
||||
<!-- $FreeBSD: doc/share/sgml/freebsd.dsl,v 1.33 2001/06/18 14:29:16 nik Exp $ -->
|
||||
|
||||
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
|
||||
<!ENTITY % output.html "IGNORE">
|
||||
|
@ -138,6 +138,16 @@
|
|||
|
||||
<![ %output.html.images [
|
||||
|
||||
; The new Cascading Style Sheets for the HTML output are very confused
|
||||
; by our images when used with div class="mediaobject". We can
|
||||
; clear up the confusion by ignoring the whole mess and just
|
||||
; displaying the image.
|
||||
|
||||
(element mediaobject
|
||||
(if (node-list-empty? (select-elements (children (current-node)) (normalize "imageobject")))
|
||||
(process-children)
|
||||
(process-node-list (select-elements (children (current-node)) (normalize "imageobject")))))
|
||||
|
||||
(define %graphic-default-extension%
|
||||
"png")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue