[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] DocBook and scalefit attribute


Subject: [xsl] DocBook <imagedata/> and scalefit attribute
From: David Nedrow <listbox@xxxxxxxxxx>
Date: Thu, 9 Jun 2005 22:43:10 -0400

Is there a [relatively] simple means of limiting the viewport size of an <imagedata/> tag to the size of another element, possibly the enclosing element?

For example, in PDF output, I want the image scaled to fit the viewport size of <figure/>, or, at the worst, the viewport for <para/ >. Anyway to handle this for the sample shown below?


<para>Test <figure> <title>Static Web</title> <mediaobject> <imageobject role="html"> <imagedata fileref="diagrams/static.png"/> </imageobject> <imageobject role="fo"> <imagedata format="PDF" fileref="diagrams/static.pdf"/> </imageobject> </mediaobject> </figure> </para>


System details: saxon 6.5.3, DocBook XML 4.4, XEP 4.3, DocBook XSL Stylesheets 1.68.1


-David


Current Thread
Keywords