RE: environment variable

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

    name = "PATH" 
    value = "/bin:/usr/bin"
    name = "GENERATE_TOC"
    value = "1"

(define *environment-parameters-file* "environment.dsssl")

(define (getenv 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:

Current Thread