[xml2rfc] "Network Working Group"

paf@cisco.com ( Patrik Fältström ) Sun, 18 November 2001 09:13 UTC

From: paf@cisco.com
Date: Sun, 18 Nov 2001 10:13:34 +0100
Subject: [xml2rfc] "Network Working Group"
In-Reply-To: <03d201c16ff2$ebc883c0$fe0aa840@FATORA>
References: <JIEGINCHMLABHJBIGKBCMEPKDGAA.julian.reschke@gmx.de> <5.1.0.14.2.20011115143309.03978278@joy.songbird.com> <4066152.1005917143@localhost> <032b01c16fa5$364d7f20$fe0aa840@FATORA> <2141817.1006049661@localhost> <03d201c16ff2$ebc883c0$fe0aa840@FATORA>
Message-ID: <2587806.1006078414@localhost>

--On 01-11-17 21.36 -0800 "Marshall T. Rose"
<mrose+mtr.netnews@dbc.mtview.ca.us> wrote:

> 1. from what you sent, it looks like you have tcl running and you have put
> TclXML under /sw/lib/tcl8.3/TclXML-1.1.1/
> 
> that's good.

Ok

> 2. when you do
> 
>> zx81>tclsh
>> % source xml2rfc.tcl
>> 
>> invoke as "xml2rfc   input-file output-file"
>>        or "xml2txt   input-file"
>>        or "xml2html  input-file"
>>        or "xml2nroff input-file"
>> % ^C
> 
> instead of typing ^C, why not type
> 
>     % xml2txt example.xml
> 
> where "example.xml" is the name of your xml file. it should work, i.e.,
> there's no error here, it's telling you what commands you can type...

zx81>/usr/local/src/xml2rfc-1.8/xml2rfc.tcl 
Application initialization failed: no display name and no $DISPLAY
environment variable
zx81>
zx81>
zx81>tclsh
% /usr/local/src/xml2rfc-1.8/xml2rfc.tcl
Application initialization failed: no display name and no $DISPLAY
environment variable
% source /usr/local/src/xml2rfc-1.8/xml2rfc.tcl

invoke as "xml2rfc   input-file output-file"
       or "xml2txt   input-file"
       or "xml2html  input-file"
       or "xml2nroff input-file"
% xml2txt sorting.xml
pass 1...
pass 2...
% ^C
zx81>echo sorting.*
sorting.txt   sorting.xml   sorting.xml~  
zx81>head sorting.txt 


Network Working Group                                       P. Faltstrom
Internet-Draft                                         Cisco Systems Inc
Expires: May 15, 2002                                  November 14, 2001


                        Lookup, Search and Sort
                  draft-faltstrom-i18n-sorting-00.txt

I.e. ...that worked...

> 3. if you want to invoke xml2rfc directly from the command line and you
> don't have the windowing system that wish wants, change the third line
> 
>     exec wish "$0" "$0" "$@"
> 
> to
> 
>     exec tclsh "$0" "$0" "$@"
> 
> 
> you can then do something like this:
> 
>     % xml2rfc.tcl example.xml example.html

That didn't work though:

zx81>rm sorting.txt
zx81>head /usr/local/bin/xml2rfc 
#!/bin/sh
# the next line restarts using wish \
exec tclsh "$0" "$0" "$@"


#
# xml2rfc.tcl - convert technical memos written using XML to TXT/HTML/NROFF
#
# (c) 1998-01 Invisible Worlds, Inc.
#
zx81>/usr/local/bin/xml2rfc sorting.xml sorting.txt
zx81>ls -l sorting*
-rwxrwxrwx  1 paf  unknown  11359 Nov 14 23:04 sorting.xml*
-rwxrwxrwx  1 paf  unknown  11387 Nov 14 22:53 sorting.xml~*
zx81>

No error messages at all.

I also tried to change the program which is to parse the content of the
xml2rfc file:

zx81>head /usr/local/bin/xml2rfc
#!/sw/bin/tclsh
# the next line restarts using wish \
#exec tclsh "$0" "$0" "$@"


#
# xml2rfc.tcl - convert technical memos written using XML to TXT/HTML/NROFF
#
# (c) 1998-01 Invisible Worlds, Inc.
#
zx81>ls -l /sw/bin/tclsh
lrwxr-xr-x  1 root  admin  16 Nov 18 02:03 /sw/bin/tclsh@ ->
/sw/bin/tclsh8.3
zx81>ls -l /sw/bin/tclsh8.3 
-rwxr-xr-x  1 root  admin  9704 Nov 14 18:21 /sw/bin/tclsh8.3*
zx81>/usr/local/bin/xml2rfc
zx81>/usr/local/bin/xml2rfc sorting.xml sorting.txt
zx81>

That didn't work either.

> alternatively, you can do do
> 
>     % ln xml2rfc.tcl xml2html
>     % xml2html example

Ok, when the above works I will try this.

   paf -- which still think tcl is pure magic :-)