OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: Compiling different sections

Hi Rachel,

Here's what we do.  In the document, use this markup:

    <imagedata fileref="filename.gif">
    <imagedata fileref="filename.pdf">

In your DSSSL customization layer, in the HTML section, put something like this:

;; The preferred mediaobject extension.
(define preferred-mediaobject-extensions
  (list "gif" "png" ...))

and in the Print section, something like this:

;; List of mediaobject filename extensions.
(define preferred-mediaobject-extensions
  (list "pdf" "jpeg" "jpg"  ...))

You can list as many extensions as you want.  You can also use this:

;; The acceptable mediaobject extensions.
(define acceptable-mediaobject-extensions
  (list "gif" "bmp" "g" ...))

in either section in a similar way.  The preferred extensions take precedence over the acceptable ones.

With this setup, your stylesheets should automatically put the .gif (or whatever) image into your HTML and the .pdf (or whatever) image into your PDF output.  The two images are totally independent of each other.

Hope that helps.



On Tue, 24 Sep 2002 15:23:19 -0600
Rachel Jensen <rachj27@hotmail.com> wrote:

> Hello.  I have a hopefully simple question....
> I have several documents with several pictures, some of which have a "click 
> here for a bigger version" on the HTML output (so that dial-up modem users 
> can see the page without waiting 10 minutes for the pictures to download).  
> The problem is that I want the high quality pictures to be used for the PDF 
> version.  If I simply put two image tags, both the HTML and PDF version use 
> the first file reference.
> I was under the impression that I could use the role attribute to mark one 
> as "for the html output" and one as the "for pdf output", but I'm confussed 
> as to how I compile this to get the desired output, once it's marked that 
> way.  I am using OpenJade and DSSSL stylesheets.
> Please let me know how I would do this or if there is a better way to go 
> about it.  Thanks!
> -Rachel
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.com

Robert McIlvride (robert@cogent.ca)
Cogent Real-Time Systems (www.cogent.ca)

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC