The message says that there isn't a global function onMouseOutParagraph with two arguments.

In the absence of any evidence to the contrary, my instinct is to assume that it means what it says.

What makes you think the message is wrong?

Michael Kay

On 5 Jan 2014, at 18:22, Todd Gochenour <> wrote:

I have onmouseover/onmouseout event templates that show/hide a menu icon in context with the <p/> that the mouse is hovering over.  If the mouse leaves the window, I get the exception:

XPathException in mode: '{}onmouseout' event: '[object MouseEvent]: JavaScriptException in ixsl:call(): Object does not support property or method 'onMouseOutParagraph' with 2 argument(s). 

The template reads:

    <xsl:template match="p" mode="visibilityButtons">
        <xsl:param name="value"/>
        <xsl:for-each select="span[@class='menu']">
            <ixsl:set-attribute name="style:visibility" select="$value"/>
            <xsl:when test="$value='hidden'">
                <xsl:variable name="isDifferentParagraph" select="ixsl:call(ixsl:window(),'onMouseOutParagraph',ixsl:event(),.)"/>
                <xsl:if test="$isDifferentParagraph">
                    <xsl:for-each select="span[@class='menu-contents']">
                        <ixsl:set-attribute name="style:display" select="'none'"/>

The function onMouseOutParagraph determines if I'm still hovering over the same paragraph or a different one, since entering/exiting <span/>s within the paragraph cause mouseout/mouseover events on the paragraph and I only want to hide the menu contents if the mouse has moved outside the paragraph boundaries.  It all works fine if the mouse stays within the bounds of the window.
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
saxon-help mailing list archived at