I have a number of elements in my XML document which are toggled to show/hide.
I do this by changing the value of an attribute with a JavaScript function and then calling refresh() so that the XML is loaded again. The element is then shown or hidden using an if-test for the value of the attribute in the XSLT template.
This works fine, but in newer versions of firefox (later than 1.0.2) the page jumps to the top instead of staying and just revealing/hiding the information. I think I should use a named anchor, but have not idea how.
Here is the relevant template, and you can find the entire thing at
http://www.masha.co.za/masters/notes.zip
or look at it at
http://www.masha.co.za/masters/default.html
<xsl:template match="ns:informalfigure">
<blockquote class="note">
<a href = "#" onclick="{concat ("showHide('informalfigure', '", @role, "') ; return false")} ; return false" >Show / hide<b> extra information:</b>
</a>
<xsl:if test="@show = 'true'">
<br/>
<xsl:apply-templates />
</xsl:if>
</blockquote>
</xsl:template>