This function converts DocBook XML as used in the OpenACS documentation to HTML. This is not a full implementation of all possible DocBook markup, but just a subset sufficient for rendering a substantial subset of the OpenACS documentation.
The function can be used via
set html [ad_html_text_convert -from application/docbook+xml -to text/html $text]
or set txt [ad_html_text_convert -from application/docbook+xml -to text/plain $text]
Prefer unset to array unset when the whole array should be deleted, rework array idioms into dict idioms to avoid unsetting the array, where appropriate