[silva-dev] SilvaSchema on HEAD
faassen at vet.uu.nl
Sat Jul 12 01:19:03 CEST 2003
Yesterday I checked in a new Zope product called 'SilvaSchema'. By
itself it doesn't do much, but if:
* you have libxml2 with python bindings installed for the python that
runs Zope (recent enough version of libxml2)
* You're running Silva CVS HEAD (does anyone beside me? it is so
quiet here.. :)
* You have SilvaSchema installed.
Silva will automatically check whenever you do an import whether
the XML you're trying to import conforms to the RELAX NG schema
supplied with Silva Schema. If you import XML that doesn't conform,
you'll get an error.
The schema is currently incomplete, so XML will be rejected that actually
should be valid. This will be fixed by fixing the schema.
I plan to hook this schema check in more places where XML can enter
the system, such as in case of Docma. For debugging purposes I also want
to enable an option to do a schema check when XML is being exported.
It could also useful to debug WYSIWYG editor integration, as the
transformed XML that goes into Silva can be automatically checked as well.
On a following stage on my plan for world domination using the
schema, I plan to have it integrated into Docma as well for
debugging purposes, and any other system that either produces
or takes Silva XML.
Note that the schema does not strictly add any end-user feature; if
the code is perfect you'll never even know about it. But if you're
writing something that produces or uses Silva XML, the schema can be
very useful in debugging and ensuring interoperability. It can also
serve as good documentation.
More information about the silva-dev