<!--
FOR DEMO USE ONLY
Copyright by Artem Saveliev artem@savelev.com
--><?xml version="1.0" encoding="UTF-8" ?><xsl:stylesheetversion="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:paramname="pagename"></xsl:param><xsl:paramname="pageid"></xsl:param><xsl:templatematch="/item"><script>
var path = "0<xsl:apply-templatesselect="item[.//item[@Target=$pagename or @id=$pageid] or @Target=$pagename or @id=$pageid]"mode="path"/>";
var a = <xsl:apply-templatesselect="/item"mode="array"/>;
</script><tableonmouseout="timeit()"border="0"cellspacing="0"cellpadding="0"width="100%"><tr><tdid="line0"bgcolor="#0048E1"height="19px"style="padding-left:15px;"></td></tr><tr><tdbgcolor="#999999"><imgsrc="images/t.gif"height="1"/></td></tr><tr><tdid="line1"bgcolor="#1470FA"height="19px"style="padding-left:60px;"></td></tr><tr><tdbgcolor="#999999"><imgsrc="images/t.gif"height="1"/></td></tr><tr><tdid="line2"bgcolor="#478CF2"height="19px"style="padding-left:90px;"></td></tr></table></xsl:template><xsl:templatematch="item"mode="path">-<xsl:value-ofselect="count(preceding-sibling::*)"/><xsl:apply-templatesselect="item[.//item[@Target=$pagename or @id=$pageid] or @Target=$pagename or @id=$pageid]"mode="path"/></xsl:template><xsl:templatematch="item"mode="array">new Array(
<xsl:iftest="@Text">
"<xsl:value-ofselect="@Text"/>",
"forms/<xsl:value-ofselect="@Target"/>",
"<xsl:value-ofselect="@ToolTip"/>"
<xsl:iftest="item">,</xsl:if></xsl:if><xsl:iftest="item">new Array(</xsl:if><xsl:apply-templatesselect="item"mode="array"/><xsl:iftest="item">)</xsl:if>)
<xsl:iftest="count(following-sibling::*)">,</xsl:if></xsl:template></xsl:stylesheet>