|
Subject: Re: Pass parameter to Jade? From: Kai.Grossjohann@xxxxxxxxxxxxxxxxxx (Kai Großjohann) Date: 12 Aug 1999 19:10:40 +0200 |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: Pass parameter to Jade?, Didier PH Martin | Thread | RE: Pass parameter to Jade?, Didier PH Martin |
| RE: About multiple output documents, Didier PH Martin | Date | RE: About XML to multiple language/, Didier PH Martin |
| Month |