Date: Fri, 12 Dec 1997 17:21:40 -0600 From: Dan Nelson <dnelson@emsphone.com> To: Jonathan Mini <j_mini@efn.org> Cc: Adam Turoff <AdamT@smginc.com>, jkh@time.cdrom.com, freebsd-hackers@freebsd.org Subject: Re: Kernel Config datafile... Message-ID: <19971212172140.57212@emsphone.com> In-Reply-To: <19971212141538.57181@micron.mini.net>; from "Jonathan Mini" on Fri Dec 12 14:15:38 GMT 1997 References: <34918F3E@smginc.com> <19971212141538.57181@micron.mini.net>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Dec 12), Jonathan Mini said:
>
> I was thinking about using SGML actually, but I hadn't got that far. We'll
> see about whether or not it turns out to be the easiest format to deal with.
> I think it might. For example :
>
> <option class=vfs name=msdosfs>
> <desc>MDSDOS FAT Filesystem</desc>
> <man section=4 name="msdosfs">
> </option>
The web server Roxen uses a similar format for its configuration files.
I don't know if it's truly SGML, or just easy for the web server to
parse.. For example, here's a snippet from the part of the file that
enables user directories:
<region name='userfs#0'>
<var name='dir'> <str>/public_html/</str> </var>
<var name='put'> <int>0</int> </var>
<var name='mountpoint'> <str>/~</str> </var>
<var name='banish_list'>
<a>
<str>root</str>
<str>daemon</str>
<str>bin</str>
<str>sys</str>
</a>
</var>
</region>
Every tag has an open and a close tag, <var name=""> defines a variable
name, and the data inside defines its type. <a></a> is an array
container.
-Dan Nelson
dnelson@emsphone.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971212172140.57212>
