Subject: Re: Questions about the NetBSD 2.0.2 RA
To: None <jschauma@netmeister.org, netbsd-docs@NetBSD.org>
From: Mike M. Volokhov <mishka@apk.od.ua>
List: netbsd-docs
Date: 04/20/2005 18:22:02
This is a multi-part message in MIME format.

--Multipart=_Wed__20_Apr_2005_18_22_02_+0300_KTuaq5NEt4h4M+3B
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Tue, 19 Apr 2005 17:36:46 +0300
"Mike M. Volokhov" <mishka@apk.od.ua> wrote:

> On Tue, 19 Apr 2005 10:17:00 -0400
> Jan Schaumann <jschauma@netmeister.org> wrote:
> 
> > "Mike M. Volokhov" <mishka@apk.od.ua> wrote:
> >  
> [snip]
> > > Another approach is a document formatting. Seems some bomb has been
> > > exploded here. :-O
> > 
> > Oh, come on, it's not _that_ bad. :-)
> > 
> > But do you know of a decent auto-formatter / indenter?
> 
> But seems that Paul DuBois' xmlformat is just what we need
> (http://www.kitebird.com/software/xmlformat/). It's completely
> configurable and I hope somewhere there are DocBook templates for it.
> 
> I'm already working on packaging it.
> 

OK. I've already finished xmlformat packaging. Please take a look to
wip/xmlformat-{perl,ruby,docs} packages.

It's simple to use and produce good enough results. I have quickly
created example configuration file for NetBSD DocBook/WebSite-based
documentation. For test-drive please follow the next steps:

1) Install the wip/xmlformat-perl or -ruby package.

2) Save an attached netbsd.xmlformat file somewhere (say, htdocs).

3) Set the environment variable XMLFORMAT_CONF to path to
netbsd.xmlformat file:

	setenv XMLFORMAT_CONF /path/to/netbsd.xmlformat

4) Ran xmlformat.pl (or .rb if you have installed -ruby) on desired XML
files.

--
Mishka.

--Multipart=_Wed__20_Apr_2005_18_22_02_+0300_KTuaq5NEt4h4M+3B
Content-Type: application/octet-stream;
 name="netbsd.xmlformat"
Content-Disposition: attachment;
 filename="netbsd.xmlformat"
Content-Transfer-Encoding: base64

IyBEZWZhdWx0IG9wdGlvbnMKKkRFRkFVTFQKCWZvcm1hdAkJYmxvY2sKCXN1YmluZGVudAk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