I've released nsxml module for OpenNSD/AOLServer v1.2.
All the gory details are here:
http://acs-
misc.sourceforge.net/nsxml.html.
I understand that OpenACS 4.0 uses ns_xml to parse XML files. Since
this version has few major bugfixes (including one that can change
the behaviour), I enourage everyone using it to upgrade and re-check
their scripts.
Release notes
Version 1.2 has been release on 07/04/2001 and contains some major
bug fixes, so everyone is encouraged to upgrade. Changes since
previous release:
- XSLT support has been added in the form of
ns_xml apply_xslt $xslt_doc_id $xml_doc_id
and ns_xml parse_xslt ?-persist?
command. You need to
install libxslt for it to work.
- looks like ns_xml has not been updated to libxml2 which would
result
in the
ns_xml doc root
not returning a root but a node
below the root.
Most visibly, if there was a <!DOCTYPE ..> inside XML doc, you
would only get
a couple of nodes and not the whole doc. Fixed. May change
behaviour of scripts using it.
-
ns_xml parse -persistent
was broken (would crash)
because a hash table for
persistent docs has not been initialized. Fixed by initializing hash
table.
-
ns_xml stats
was broken, free()
was
used to free the
memory allocated by ckalloc()
. Fixed by calling
ckfree()
.
- many commands didn't check for the number of arguments so they
would crash
if called incorrectly. Fixed by adding checks for a proper number of
arguments.
- fixed Windows compilation issues.
- regression tests were written for the OpenNSD test framework.
Tests cover all the issues above and then some.