From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jochem Huhmann To: docbook-tools-discuss@sourceware.cygnus.com Subject: Re: images in Docbook with Red Hat 6.2 Date: Wed, 27 Dec 2000 06:36:00 -0000 Message-id: References: <38F65807.4905D5C@cybercable.tm.fr> <00af01bfa571$69317680$1403a8c0@cogent.ca> <38F66342.9FD5F778@cybercable.tm.fr> <38F6E77C.66C4280E@cybercable.tm.fr> <38F779E7.9C0CA04D@cybercable.tm.fr> X-SW-Source: 2000/msg00170.html * Eric Bischoff wrote: > The stylesheet themselves have easy ways of determining the > backend with no help of any shell script (Sam's very first > message even shows how to do it in DSSSL). Err, yes. That's right ;-) But from within a shell script you can configure/request a specific file-format for a given output (as in preferring PNG over GIF for HTML-output) and then pass this over to jade and the stylesheets. You have to have all images in this format then, yes. That's a "Not my problem, get your work done and I do mine" from DSSSL point of view ;-) > To summarize : > > We have files that may be GIF, JPEG, PNG, EPS, ... : > flower.jpeg, cactus.gif, flower.eps, cactus.eps > We have a selected backend (tex, pdf, html, ...) : > html > We have a filename from the docbook document : > flower > > What would be nice if the stylesheet could say : > > "Well, this is html so I can accept JPG, JPEG, GIF, and PNG. > The filename is "flower" so I should try "flower.jpg", > "flower.jpeg", "flower.gif" and "flower.png". Hmmm, only > "flower.jpeg" exists : I'll take it." That would be nice indeed. Although one could ask if this is in DSSSL scope anymore. > But this would assume we would have a way to know from DSSSL > whether a file exists or not. Norm said it was impossible. DSSSL isn't a system programming language, it is for stylesheets. If this means that you have to have all images in one format, well, convert them ;-) Jochem -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!