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> X-SW-Source: 2000/msg00168.html * Eric Bischoff wrote: > Jochem Huhmann wrote: > > > > * Eric Bischoff wrote: > > > The stylesheets solution could perfectly work if there was a > > > way to easily detect which extension(s) do exist for this > > > file from DSSSL. > > > > Could this be done by looking at this from the converting > > (shell-)backend that builds the command-line for jade? It knows the > > output format and could pass a variable to jade via "-V variable=value", > > which is available in the stylesheet then (or isn't it?). Just a fuzzy > > idea... > > You idea is good, but this would mean that you should pass > *for each screenshot* its file type while calling jade. If > your doc includes, say, 120 screenshots, you can imagine the > number of parameters to Jade... Well, a shell script could > do the job, yes, but would jade stand so much variables ? I didn't meant it this way. The wrapping shell-backend knows the target format and therefore it should know which file-type for images is the best for this target format. So it could pass this format (as in "png", "eps", "gif", ...) in a variable to jade and make it available in the stylesheet. The stylesheet has the blank filename (from the SGML source) and the needed extension (from that variable) of the image-file then. This leads me to the assumption that this should be enough to build the right file-name (name + extension) in the stylesheet. It wouldn't be enough to make sure that the file in the needed format really exists, yes. But if it exists this could work. I haven't got the time right now to dig through the stylesheets to see how this could be done in a driver file and I may well have missed something important, though. Jochem -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!