I have an HTML document that is referencing a source XML and a client side XSLT in the conventional saxon CE way. In the HTML doc I have a link:
<div><a href="/path/to/somewhere.xml" id="test">link</a></div>

In the XSLT file I wish to suppress the href onclick event that loads a new page, instead of which I wish to do something else. 

If I match the link like this:

<xsl:template match="div[a/@id='test']" mode="ixsl:onclick">
  <xsl:apply-templates select="." mode="replaceContent"/>
</xsl:template>

<xsl:template match="div" mode="replaceContent">
 <xsl:result-document href="?select=." method="ixsl:replace-content">
     ...............</xsl:result-document>
</xsl:template>


How do I suppress the onclick event of the <a> element? 

Thanks