Re: Importing graphics

Subject: Re: Importing graphics
From: Jany Quintard <quintard.j@xxxxxx>
Date: Wed, 17 Nov 1999 15:43:36 +0100 (CET)
On Wed, 17 Nov 1999, Darrell W. Royter wrote:

> Does anyone know of a good reference on importing graphics using Jade? I
> have been able to import a graphic with an rtf output, but I had to specify
> the exact filename in my DSSSL. My file will contain many graphics and I
> would like the SGML to specify the filename instead of decaring it in the
> DSSSL 100 or so times.
> Is there a way to get DSSSL to reference the filename in the SGML and use
> that file for import? All my images would reside in the same directory, so I
> wouldn't need multiple paths, just the names.

Why not define a string containing the path and build the name using

<!-- definition -->
(define *imagespath* "/home/darrell/..../images/")

<!-- utilisation -->
(make external-graphic
              display?: #t
      entity-system-id: (string-append *imagespath* "image01.jpg"))

This seems to work. But the path is in your dsssl file.
In this case, you can use an external dsssl specification for this
and just modify this file when you need it.

Another possibility would be to store the path in the catalog and to
retrieve it with the public-id. I did not test it, but I think it should
work. And as you can call catalogs in catalogs, you can even use a special
catalog for your personal values.

Hope it helps. Jany
Jany Quintard             | Et les enfants de choeur
IBM Paris Laboratory      | Branlant du chef, opinent
Tel : 33 (0)2 51 16 40 36 |   G. Brassens (La religieuse)

 DSSSList info and archive:

Current Thread