Subject: RE: environment variable From: Avi Kivity <Avi@xxxxxxxxxxxxx> Date: Mon, 25 Jan 1999 19:03:15 +0200 |
On Monday, January 25, 1999 17:57, J-P Theberge [SMTP:yesod@xxxxxxx] wrote: > Hi, > > Is there a way for jade to get the values of environment variables? > Write a small Perl script to pack them into an SGML document (DTD & instance could be defined in the same file) and call (sgml-parse) on that file. I believe Jade will see entities in the catalog, and anyway you can use a (fixed) system-id. Say something like <!DOCTYPE environment [ <!element environment O O (variable*) > <!element variable - O EMPTY > <!attlist variable name ID #REQUIRED value CDATA #REQUIRED > ] > <variable name = "PATH" value = "/bin:/usr/bin" > <variable name = "GENERATE_TOC" value = "1" > (define *environment-parameters-file* "environment.dsssl") (define (getenv var) (attribute-string "value" (element-with-id var (sgml-parse *environment-parameters-file*) ) ) ) I gave up on passing parameters to Jade long ago, but your question triggered something somewhere. DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: environment variable, Mitch C. Amiano | Thread | About background color, Didier PH Martin |
environment variable, J-P Theberge | Date | RE: environment variable, Didier PH Martin |
Month |