RE: Pass parameter to Jade?

Subject: RE: Pass parameter to Jade?
From: "Didier PH Martin" <martind@xxxxxxxxxxxxx>
Date: Thu, 12 Aug 1999 14:48:13 -0400
Hi Kai,

Then, the mode construct is probably for you. Do you know how to use the
mode construct? and the -V variable setting?

regards
Didier PH Martin
mailto:martind@xxxxxxxxxxxxx
http://www.netfolder.com

-----Original Message-----
From: owner-dssslist@xxxxxxxxxxxxxxxx
[mailto:owner-dssslist@xxxxxxxxxxxxxxxx]On Behalf Of Kai Großjohann
Sent: Thursday, August 12, 1999 1:11 PM
To: dssslist@xxxxxxxxxxxxxxxx
Subject: Re: Pass parameter to Jade?


Didier PH Martin <martind@xxxxxxxxxxxxx> writes:

> kai said:
> > We have XML documents which contain text in various (natural)
> > languages.  We would like to run Jade to convert these into HTML, one
> > HTML file per language.
>
> > It seems that I have to pass some kind of argument to Jade on the
> > command line to specify the output language desired.  How does one do
> > this?
>
> No, this is only as a suggestion for OpenJade improvements. To
> create more than one HTML file form a XML document you can use
> either the html or the sgml mode. [...]

Thanks a lot for your extensive information.  However, please note
that I don't want nor need to produce more than one output file.

It would be sufficient for me if I was able to say something like:

    $ jade -DLANG=en -t sgml xml.dcl input.xml > output.html
           ^^^^^^^^^

And then to say, in the DSSSL script:

(element (langflow)
  (if (string=? (attribute-string "lang" (current-node))
                (cmdline-parameter "LANG"))
;               ^^^^^^^^^^^^^^^^^^^^^^^^^^
      ..do.something.useful..))

Surely there must be a way?  No access to command line parameters?  To
environment variables?

kai
--
I like BOTH kinds of music.


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


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


Current Thread