This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
<imagelement> selection (Was: profiling on "role"...)
- From: Steinar Bang <sb at dod dot no>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 26 Nov 2002 13:06:36 +0100
- Subject: DOCBOOK-APPS: <imagelement> selection (Was: profiling on "role"...)
- Organization: Probably a good idea
- References: <87smxpwxi2.fsf@home.lan> <3DE232D8.8DDCD201@kosek.cz>
>>>>> Jirka Kosek <jirka@kosek.cz>:
> Steinar Bang wrote:
>> When I do profiling for "html" or "pdf" in <mediaobject>, what's
>> the correct attribute to use on the <imageobject> elements?
>> "role"? Or "condition"?
> Selection of correct image format can be done without profiling.
> Stylesheet will use first image in recognized format. You can
> customize list of supported formats by customizing of following two
> templates:
The problem in my case is that both <imageobject> elements are PNGs,
but the one used for PDF has scaling. Eg. like this:
<mediaobject>
<imageobject arch="html">
<imagedata fileref="images/rh72_press_enter.png" format="PNG"/>
</imageobject>
<imageobject arch="pdf">
<imagedata fileref="images/rh72_press_enter.png" format="PNG"
depth="5cm" scalefit="1"/>
</imageobject>
</mediaobject>
(yes, I know that using "arch" this way is misuse of the attribute)