Re: (dsssl) file I/O and system call in dsssl

Subject: Re: (dsssl) file I/O and system call in dsssl
From: Brandon Ibach <bibach@xxxxxxxxxxxxxx>
Date: Wed, 31 Oct 2001 22:14:24 -0600
Quoting Philip J Grabner <grabner@xxxxxxxxxxxxxxxxxxx>:
> in my docbook stylesheets i would like to be able to do some simple file
> management (such as copying and creating directories), but have not really
> found a way to do this with the openjade processor. scheme48 (at
> www.s48.org) mentions posix implementations... is there anything like that
> available for openjade?
> 
> or is there perhaps some equivalent to the C system() call? so that i
> could do something like (system "mkdir my-dir")?
> 
   Jade does have some interesting file I/O capabilities via SP's
Formal System Identifiers, but no DSSSL implementation is appropriate
for file management.  DSSSL is a transformation and styling language,
not a shell.
   My suggestion would be to create a shell script or Makefile to wrap
around your Jade calls, and let these do the work.  If you want to do
file management based on information in your document, why not have
your stylesheet use (make entity) to write out a shell script that can
be run (possibly by another shell script that also invokes Jade) after
Jade has finished?  This automatically generated script could do all
of the needed directory creation and file copying.
   Of course, I'm assuming you're running under a unix-ish system.
If this is under Windoze, you'd need to cook up something a little
different, but the basic idea should be adaptable.

-Brandon :)

 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist

Current Thread