Hi Steffan,
It seems this will take a small bit of customization. Normally if you set the DocBook
attribute depth="100%", then that would be translated to height="100%" in the output.
But for some reason, the stylesheet suppresses such values for HTML output, I guess
because normally a height of 100% on an HTML page is ambiguous. The template named
'process.image.attributes' in html/graphics.xsl has this case:
<xsl:when test="contains($html.depth, '%')">
<!-- HTML doesn't deal with this case very well...do nothing -->
</xsl:when>
So your customization would need to copy that template and change that bit to the
following:
<xsl:when test="contains($html.depth, '%')">
<xsl:attribute name="height">
<xsl:value-of select="$html.depth"/>
</xsl:attribute>
</xsl:when>
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Wednesday, February 15, 2012 3:46 AM
Subject: [docbook-apps] SVG and IE7
Hello,
I need some help with displaying SVG images in IE7 (with the Adobe SVG plugin).
The Adobe plugin needs a "height='100%'" attribute in the "<object
type='image/scv+html' data='FILENAME'>"
HTML tag. Otherwise it uses a default height and most of the SVG images are truncated.
This height cannot be given by CSS
But we did not find a ways - without modifying the DocBook XSLT sources - to get this
attribute into the HTML code.
Can you please help me? How to get the "100%" from DocBook file into the HTML.
THANKS!
Mit freundlichen Grüßen / Kind regards / S pozdravem
Steffen Wagner, VoyagerSoft
[email protected]
ZF Friedrichshafen AG
88038 Friedrichshafen, Deutschland/Germany
Telefon/Phone +49 7541 77-7644
[email protected]
Software Consultant
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Prof. Dr. Giorgio
Behr
Vorstand/Board of Management: Hans-Georg Härter (Vorsitzender/CEO), Dr. Stefan Sommer,
Dr. Konstantin Sauer, Dr. Peter Ottenbruch, Jürgen Holeksa, Dr. Gerhard Wagner,
Reinhard Buhl, Rolf Lutz, Wilhelm Rehm
Sitz/Headquarters: Friedrichshafen
Handelsregistereintrag Amtsgericht Ulm HRB 630206/Trade register of the municipal
court of Ulm HRB 630206
---------------------------------------------------------------------
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]