Hi Dave,
I'm not clear what your intentions are for sizing, but you might want to
try using contentwidth instead of width, or perhaps both contentwidth and
width attributes on your imagedata (and contentdepth and depth) to give you
complete control. Normally "width" is supposed to be the size of the
viewport, and contentwidth is the desired image size. But the stylesheets
try to interpret a width without a specified contentwidth attribute as the
desired image width because that is what people expect it to do. But to me
it just perpetuates the confusion between the two attributes.
And then there is the question of how the browser interprets the external
pixel specs and the internal SVG pixel specs. That I can't help you with.
8^)
If you are wondering why a table is used, that is one way in HTML to
specify a viewport larger than the image, that is, a block that takes up
more space on the screen than the image itself. The table sizing defines
the viewport from your width and depth attributes.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]
----- Original Message -----
From: "Dave Pawson" <[EMAIL PROTECTED]>
To: "Docbook Apps" <[email protected]>
Sent: Friday, November 30, 2007 1:27 AM
Subject: [docbook-apps] svg images, html, v5
From Bobs book I have
<mediaobject id="MousePicture">
<imageobject role="fo">
<imagedata format="SVG" fileref="mouse.svg"/>
</imageobject>
<imageobject role="html">
<imagedata format="PNG" fileref="mouse.png"/>
</imageobject>
</mediaobject>
From my svg I have
<svg width="916pt" height="446pt"
viewBox="0.00 0.00 916.00 446.00" xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
I combine this to create
<imagedata format="SVG" fileref="sys.svg" width="1433" depth="698"/>
The rendered HTML shows about 1/4 of the image in a scroll box,
which is in a table with strange sizing?
<table border="0"
summary="manufactured viewport for HTML img" cellspacing="0"
cellpadding="0" width="1433">
<tr style="height: 698px">
<td><object
data="../sys.svg"
type="image/svg+xml"
height="698">
</object>
</td>
</tr>
</table>
Am I missing something on the sizing?
Rendered in Firefox btw.
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]