[4suite] RELAX NG schema for 4Suite repo server config files

Uche Ogbuji uche.ogbuji at fourthought.com
Sat Jan 25 12:09:05 MST 2003


As I updated the server properties file to add http-post-encoding-var, I
took on a task I've wanted to for a while: I enshrined the server
properties file format in a RELAX NG schema.

It's checked in as

Ft/Server/Share/Schemata/server-properties.rng

I tested it against all the server properties files that come with
4Suite, and in fact, it helped me catch some bugs in my Dublin core work
in my last checkin :-)  That's what schemata are for, eh?

The bad news is that XVIF doesn't seem to handle these.  They use data
typing and it seems there are some bugs in XVIF's data typing support. 
I'm corresponding with Eric van der Vlist in order to get these fixed. 
Until then, I've been using jing:

http://www.thaiopensource.com/relaxng/jing.html

For example:

$ jing.sh Ft/Server/Share/Schemata/server-properties.rng
Ft/Server/Share/Demos/server.xml
$

No output means no problems.

I also liberally annotated the schema, which means now we at least have
*some* sort of documentation of the format, which is a real bonus.

I plan to do the same for setup.xml files before the beta release.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
The open office file format  - http://www-106.ibm.com/developerworks/xml/library/x-think15/
Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html
4Suite Repository Features - https://www6.software.ibm.com/reg/devworks/dw-x4suite5-i/
XML class warfare - http://www.adtmag.com/article.asp?id=6965




More information about the 4suite mailing list