Sorry for being such a pain & a nuisance!
Thank You for all Your help - Really appreciate it & very gratefull for your kindness & patience.
I don't know what to do - as it's taking so much time & my project is running way in the red!
I just dont get it going at all! - Thank You
I keep on getting the error - does not even display the page
This document already has a DocumentElement node.
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:asp="remove" xmlns:igchart="remove" xmlns:igsch="remove">
<xsl:output omit-xml-declaration = "yes" />
<xsl:template match="/">
<style type="text/css">
#dhtmltooltip{
position: absolute;
width: 150px;
border: 2px solid black;
padding: 2px;
background-color: lightyellow;
visibility: hidden;
z-index: 100;
/*Remove below line to remove shadow. Below line should always appear last within this CSS*/
filter: progid:DXImageTransform.Microsoft.Shadow(color=gra y,direction=135);
}
</style>
<SCRIPT TYPE='text/javascript'>
<![CDATA[
var offsetxpoint=-60 //Customize x offset of tooltip
var offsetypoint=20 //Customize y offset of tooltip
var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""
function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function ddrivetip(thetext, thecolor, thewidth){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}
function positiontip(e){
if (enabletip){
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var rightedge=ie&&!window.opera? ietruebody().clientWidth-event.clientX-offsetxpoint : window.innerWidth-e.clientX-offsetxpoint-20
var bottomedge=ie&&!window.opera? ietruebody().clientHeight-event.clientY-offsetypoint : window.innerHeight-e.clientY-offsetypoint-20
var leftedge=(offsetxpoint<0)? offsetxpoint*(-1) : -1000
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth)
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=ie? ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+"px" : window.pageXOffset+e.clientX-tipobj.offsetWidth+"px"
else if (curX<leftedge)
tipobj.style.left="5px"
else
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetxpoint+"px"
//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight)
tipobj.style.top=ie? ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px" : window.pageYOffset+e.clientY-tipobj.offsetHeight-offsetypoint+"px"
else
tipobj.style.top=curY+offsetypoint+"px"
tipobj.style.visibility="visible"
}
}
function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}
document.onmousemove=positiontip
]]>
</SCRIPT>
<table width="100%" class="tbDetail">
<tr>
<td>
<SCRIPT TYPE='text/javascript'>
function hideHist()
{
if (typeof fcHist != 'undefined')
{
fcHist.style.display = 'none';
}
}
</SCRIPT>
<!-- <style type="text/css" media="all">
@import "css/global.css";
</style>
<script src="
js/jquery.
js" type="text/javascript"></script>
<script src="
js/jtip.
js" type="text/javascript"></script>-->
<!--<script TYPE='text/javascript' src="./codebase/dhtmlxcommon.
js"></script>
<script TYPE='text/javascript' src="./codebase/dhtmlxcombo.
js"></script>
<link rel="STYLESHEET" type="text/css" href="./codebase/dhtmlxcombo.css"></link>
<script TYPE='text/javascript'>
window.dhx_globalImgPath="./codebase/imgs/";
</script> -->
</td>
</tr>
<xsl:variable name="cHist" select="count(Activity/myTracking/Activity[ DateResolved != '0' ])" />
<xsl:if test="$cHist > '0'">
<tr width="100%">
<td colspan="6" class="row1">
<SCRIPT TYPE='text/javascript'>
function toggleHist(srcElement, srcArrow) {
if (srcElement.style.display == 'none')
{
srcElement.style.display = '';
srcArrow.src = 'images/expand.gif';
} else
{
srcElement.style.display = 'none';
srcArrow.src = 'images/collapse.gif';
}
}
</SCRIPT>
<span id='fcHistMain' style='cursor:hand;' onclick='toggleHist(fcHist, fcExpand)'>
<span style="vertical-align:middle;">
<img src='images/collapse.gif' id='fcExpand' align="middle" />#160;Expand to view the History
</span>
</span>
</td>
</tr>
<tr>
<td colspan="6">
<div id='fcHist'>
<table width='100%' class='tbList'>
<xsl:for-each select="Activity/myTracking/Activity[ DateResolved != '0' ]">
<xsl:sort select='@id' />
<tr>
<td width='5%'><xsl:attribute name='class'><xsl:if test="position() mod 2 = 1">on</xsl:if><xsl:if test="position() mod 2 != 1">off</xsl:if></xsl:attribute><xsl:value-of select="position()" />.#160;</td>
<td width='55%'><xsl:attribute name='class'><xsl:if test="position() mod 2 = 1">on</xsl:if><xsl:if test="position() mod 2 != 1">off</xsl:if></xsl:attribute>
<xsl:if test="TrackValues = 'False'">
<xsl:value-of select="Description" />
</xsl:if>
<xsl:if test="TrackValues = 'True' or TrackValues = ''">
<a>
<xsl:attribute name='href'>myTrackingPage.aspx?type=a&id=<xsl :value-of select="@id" /></xsl:attribute>
<xsl:attribute name='class'>bn</xsl:attribute>
<xsl:value-of select="Description" />
</a>
</xsl:if>
</td>
<td width='20%'><xsl:attribute name='class'><xsl:if test="position() mod 2 = 1">on</xsl:if><xsl:if test="position() mod 2 != 1">off</xsl:if></xsl:attribute>
<xsl:if test="CreatorEMail[. = '']"><xsl:value-of select="Creator" /></xsl:if>
<xsl:if test="CreatorEMail[. != '']">
<a>
<xsl:attribute name='class'>bn</xsl:attribute>
<xsl:attribute name='href'>mailto:<xsl:value-of select="CreatorEMail" />?Subject=<xsl:value-of select="Description" /></xsl:attribute>
<xsl:value-of select="Creator" />
</a>
</xsl:if>
</td>
<td width='20%'>
<xsl:attribute name='class'><xsl:if test="position() mod 2 = 1">on</xsl:if><xsl:if test="position() mod 2 != 1">off</xsl:if></xsl:attribute>
<xsl:value-of select="substring(DateResolved,1,4)"/>/<xsl:value-of select="substring(DateResolved,5,2)"/>/<xsl:value-of select="substring(DateResolved,7,2)" />#160;
<xsl:value-of select="substring(TimeResolved,1,2)" />:<xsl:value-of select="substring(TimeResolved,3,2)" />:<xsl:value-of select="substring(TimeResolved,5,2)" />
</td>
</tr>
</xsl:for-each>
</table>
</div>
</td>
</tr>
</xsl:if>
<xsl:for-each select="Activity/ObjectGroup[@type='default']/Object">
<xsl:sort select="@index" data-type="number" />
<xsl:variable name="index" select="@index" />
<xsl:variable name="nextNode" select="../Object[ @index > $index ][1]" />
<xsl:variable name="nextCol" select="$nextNode/@columnNo" />
<xsl:variable name="vis" select="string(Attributes/Attribute[ @name='visible'])" />
<xsl:variable name="visNextCol" select="string($nextNode/Attributes/Attribute[ @name='visible'])" />
<xsl:if test="($vis != 'False') or ($nextCol = '2' and ($vis != 'False' or $visNextCol != 'False'))">
<xsl:if test="(@columnNo != '2')">
<tr class="rowDetail">
<xsl:choose>
<xsl:when test="(string(Attributes/Attribute[ @name='visible']) = '') or (Attributes/Attribute[ @name='visible'] != 'False')">
<td width='15%' align='left' class='rowDet'>
<xsl:value-of select="Description" disable-output-escaping="yes" />#160;
<xsl:if test="Mask[. != '']">(<xsl:value-of select="Mask" />)#160;</xsl:if>
<xsl:if test=" @required[. = 'true']"></xsl:if>#160;
</td>
<td valign="middle">
<xsl:if test="($nextCol != '2') or (count(following-sibling::*) = 0) or ($nextCol = '2' and $visNextCol = 'False')">
<xsl:attribute name='colspan'>4</xsl:attribute>
<xsl:attribute name='width'>70%</xsl:attribute>
</xsl:if>
<xsl:call-template name="CreateObject">
<xsl:with-param name="Object" select="." />
</xsl:call-template>
<xsl:if test="Tooltip != ''">
#160;
<!-- <xsl:element name="asp:image"> <img src="images/tooltip.gif"></img>
<xsl:attribute name='id'>ttip_<xsl:value-of select='@name' /></xsl:attribute>
<xsl:attribute name='runat'>server</xsl:attribute>
<xsl:attribute name='imageurl'>images/tooltip.gif</xsl:attribute>-->
<a>
<xsl:attribute name='href'>ajax.htm?width=375</xsl:attribute>
<xsl:attribute name='id'>one</xsl:attribute>
<xsl:attribute name='style'>border : none;</xsl:attribute>
<xsl:attribute name='class'>jTip</xsl:attribute>
<xsl:attribute name='name'><xsl:value-of select="Tooltip" /></xsl:attribute>
<!--<xsl:attribute name='imageurl'>images/tooltip.gif</xsl:attribute>
<img src="images/tooltip.gif" style="border : none;"></img>-->
??
</a>
<!--<a id="one" href="" class="jTip" name="<xsl:value-of select="Tooltip" />">?</a>
</xsl:element>-->
</xsl:if>
</td>
<td width='5%' align="right">
<!--
<xsl:if test="@dynamic='true'">
<xsl:element name="asp:imageButton">
<xsl:attribute name='id'>reload_<xsl:value-of select='@name' /></xsl:attribute>
<xsl:attribute name='runat'>server</xsl:attribute>
<xsl:attribute name='imageurl'>images/reload.gif</xsl:attribute>
<xsl:attribute name='alt'>Reload <xsl:value-of select="Description" /></xsl:attribute>
</xsl:element>
</xsl:if>
-->
</td>
</xsl:when>
<xsl:otherwise>
<td width='15%' align='right' class='rowDet'>#160;</td>
<td valign="middle">#160;</td>
<td width='5%' align="right">#160;</td>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="($nextCol = '2') and $visNextCol != 'False'">
<td width='15%' align='left' class='rowDet'>
<xsl:value-of select="$nextNode/Description" disable-output-escaping="yes" />#160;
<xsl:if test="$nextNode/Mask[. != '']">(<xsl:value-of select="$nextNode/Mask" />)#160;</xsl:if>
<xsl:if test=" @required[. = 'true']"></xsl:if>#160;
</td>
<td width='30%' valign="middle">
<xsl:call-template name="CreateObject">
<xsl:with-param name="Object" select="$nextNode" />
</xsl:call-template>
<xsl:if test="$nextNode/Tooltip != ''">
#160;
<div id="dhtmltooltip">
<xsl:element name="asp:image">
<!--<xsl:attribute name='id'>ttip_<xsl:value-of select='$nextNode/@name' /></xsl:attribute>
<xsl:attribute name='runat'>server</xsl:attribute>
<xsl:attribute name='imageurl'>images/tooltip.gif</xsl:attribute>
<xsl:attribute name='alt'><xsl:value-of select="$nextNode/Tooltip" /></xsl:attribute>-->
<xsl:attribute name='href'>ajax.htm</xsl:attribute>
<xsl:attribute name='id'>ttip_<xsl:value-of select='$nextNode/@name' /></xsl:attribute>
<xsl:attribute name='onMouseover'>ddrivetip('JavaScriptKit.com JavaScript tutorials','yellow', 300);</xsl:attribute>
<xsl:attribute name='onMouseout'>hideddrivetip();</xsl:attribute>
</xsl:element>
</div>
</xsl:if>
</td>