Subject: Re: sgml source filenames? From: Brandon Ibach <bibach@xxxxxxxxxxxxxx> Date: Mon, 8 May 2000 20:00:50 -0500 |
Quoting Angus Lees <gus@xxxxxxxxxxxxxx>: > in dsssl (jade), is it possible to find out the filenames of the sgml > files you're building at present? > > (i want to set %output-dir% to `basename input.sgml`) > > i know i can work around this by using OpenJade's -Vvar=val, but at > present, i'm still using vanilla jade and wondering if its possible > to avoid the upgrade.. > I assume you're on a Unix/Linux system, given your use of basename, so here's a workaround. In your DSSSL script, put: <!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ <!entity stdin SYSTEM "<osfd>0"> ]> at the top (or put that entity declaration in the declaration subset, anyway), and something like: (define %output-dir% "&stdin;") further down. Then, invoke Jade like: echo -n `dirname /my/file.sgml` | jade -t sgml -d my.dsl /my/file.sgml The -n tells echo not to append a newline. Adjust as needed if your echo works differently. This could probably be made into a shell script so that you can just type the filename once. -Brandon :) DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
sgml source filenames?, Angus Lees | Thread | Re: sgml source filenames?, Angus Lees |
sgml source filenames?, Angus Lees | Date | Re: sgml source filenames?, Angus Lees |
Month |