This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
imageobject width= broken in XSL for HTML?
- From: Marc Palmer <marc at anyware dot co dot uk>
- To: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 17 Dec 2002 13:52:31 +0000 (GMT)
- Subject: DOCBOOK-APPS: imageobject width= broken in XSL for HTML?
- Reply-to: Marc Palmer <marc at anyware dot co dot uk>
Hi,
I came across a funny just now. I'm trying to get an image (mediaobject)
to align right and not be "inline" i.e. text should not start until after it.
To do this I thought I'd use:
<mediaobject>
<imageobject>
<imagedata align="right" fileref="mypict.gif" format="GIF"
width="100%"/>
</imageobject>
</mediaobject>
Having seen that on www.docbook.org using width= will change the viewport
size but still display the image at its intrinsic size.
This didn't work – in the HTML output it stretched the image to full page
width! The HTML it generated included a TABLE to wrap the image with
WIDTH="100%" but also it put WIDTH="100%" in the IMG tag!
The SVG version of the same image came out fine in PDF (after FOP
processing the FO) with just width="100%" so I think this is a bug in the
HTML XSL templates.
To workaround it, you can specify the exact pixel width of the image in
contentwidth= which is OK, but not ideal.
If there is a better way to achieve what I want, please tell me.
Best wishes,
Marc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ W<A> ~~~~~
(o) Wangjammer5 (Marc Palmer)
( ) Wangjammer7
www.wangjammers.org = Java Consultants (Web|Smartcards|Crypto)