<?xml version='1.0'?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*"/>
<xsl:template match="/">

<html>
<head>
				<script language="javascript">
				<![CDATA[

					function showNode( text )
					{
						document.getElementById("testDiv").innerHTML = text;
					}
				]]>

				</script>
</head>

<body>
<div id="testDiv">here</div>
	<xsl:apply-templates />
</body>
</html>

</xsl:template>
<xsl:template match="parent">
	<xsl:apply-templates />
</xsl:template>

<xsl:template match="child">
	<xsl:apply-templates select="childImageName"/>
</xsl:template>

<xsl:template match="childImageName">

   <xsl:variable name="childDataVariable" select="../childData" />

	<xsl:variable name="testVariable">
            <xsl:call-template name="giveMeSomeChildDataTemplate">
                <xsl:with-param name="nodEdit" select="$childDataVariable"></xsl:with-param>
            </xsl:call-template>
	</xsl:variable>


<span class="imageSpan">
	<xsl:attribute name="onmouseover">
		showNode("<xsl:value-of select="testVariable"></xsl:value-of>")
	</xsl:attribute>
<xsl:value-of select="text()"></xsl:value-of>
</span>


<xsl:value-of select="$testVariable"></xsl:value-of>
</xsl:template>


<xsl:template name="giveMeSomeChildDataTemplate">
<xsl:param name="nodEdit"/>
<xsl:for-each select="$nodEdit/denominator">caption: <xsl:value-of select="@name"></xsl:value-of> value:<xsl:value-of select="text()"></xsl:value-of></xsl:for-each>

</xsl:template>

</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="FirmaScenarie1" userelativepaths="yes" externalpreview="no" url="test.xml" htmlbaseurl="" outputurl="" processortype="msxml4" useresolver="no" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no" ><SourceSchema srcSchemaPath="parents.xml" srcSchemaRoot="parents" AssociatedInstance="" loaderFunction="document" loaderFunctionUsesURI="no"/></MapperInfo><MapperBlockPosition><template match="/"></template><template match="child"><block path="div/span/xsl:value&#x2D;of" x="283" y="127"/><block path="div/xsl:apply&#x2D;templates" x="243" y="127"/></template><template match="parent"><block path="xsl:choose" x="283" y="127"/><block path="xsl:choose/=[0]" x="237" y="125"/><block path="xsl:choose/xsl:when/div/xsl:value&#x2D;of" x="243" y="127"/><block path="xsl:choose/xsl:when/div[1]/table/tr/td/span/xsl:apply&#x2D;templates" x="203" y="127"/></template><template match="childImageName"></template></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->