Contacts are not correct in html rendering of spase documents

The Contacts section of an html rendering of spase documents is not correct. This is due to the way spase.xsl produces the table. In particular, it uses

<xsl:text disable-output-escaping="yes">&lt;table class="nested" cellspacing="0"&gt;</xsl:text>

which attempts to serialize html from the xslt. This will not work when the xslt is executed by exist-db's transform:transform() function which (by design) returns nodes. While the spase.xsl could be redesigned to avoid this problem, the change is so significant that it would make synchronizing changes to the original space.xsl very difficult. I don't know of a good solution.