home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
moodle.waes.ac.uk
/
moodle.waes.ac.uk.zip
/
moodle.waes.ac.uk
/
TMG
/
SP1-TMG-KB981324-AMD64-ENU.msp
/
PCW_CAB_SHFx2
/
F2143_msfpcui.dll
/
BINARY
/
REPORTCONTENTS.XSL
< prev
next >
Wrap
Text File
|
2010-06-15
|
4KB
|
110 lines
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<!-- ReportContents.xsl -->
<xsl:template match="/">
<HTML>
<HEAD>
<meta http-equiv="Content-Language" content="en-us"/>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>Report Contents</title>
<base target="contents"/>
<STYLE TYPE="text/css"><xsl:comment>
BODY { font-family:verdana; font-size:9pt; }
H1 { font-size:120%; font-style:italic; }
UL { margin-left:10px; margin-bottom:9px; margin-top:4px;}
LI UL { display:block; margin-left:12px; margin-top:4px; }
LI { font-family:verdana; font-weight:bold; list-style-type:none; cursor:default; margin-bottom:1px; color:dimgray; }
LI:hover { text-color:navy; }
LI.clsHasKids { list-style-type:none; }
LI.clsHasKids SPAN { cursor:hand; }
A:link, A:visited, A:active { text-decoration:none; font-weight:normal; color:#4a7195; }
A:hover { text-decoration:underline; }
</xsl:comment></STYLE>
<SCRIPT LANGUAGE="javascript"><xsl:comment><![CDATA[
function GetChildElem(eSrc,sTagName)
{
var cKids = eSrc.children;
for (var i=0;i<cKids.length;i++)
{
if (sTagName == cKids[i].tagName) return cKids[i];
}
return false;
}
function List_click()
{
var eSrc = window.event.srcElement;
if ("SPAN" == eSrc.tagName && "clsHasKids" == eSrc.parentElement.className)
{
var eChild = GetChildElem(eSrc.parentElement,"UL");
eChild.style.display = ("none" == eChild.style.display ? "block" : "none");
}
}
function List_over()
{
var eSrc = window.event.srcElement;
if ("SPAN" == eSrc.tagName && "clsHasKids" == eSrc.parentElement.className)
{
eSrc.style.color = "#19822d";
}
}
function List_out()
{
var eSrc = window.event.srcElement;
if ("SPAN" == eSrc.tagName && "clsHasKids" == eSrc.parentElement.className)
{
eSrc.style.color = "dimgray";
}
}
function GoToBookmark(id)
{
window.parent.Reports.location.replace("ReportsData.htm#"+id);
}
]]>//</xsl:comment></SCRIPT>
</HEAD>
<BODY>
<!-- BUILD LIST -->
<UL ONMOUSEOVER="List_over();" ONMOUSEOUT="List_out();" ONCLICK="List_click();">
<xsl:apply-templates select="DocMap/Category" />
</UL>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="Category">
<LI CLASS="clsHasKids"><SPAN><xsl:value-of select="@CategoryName" /></SPAN>
<UL>
<xsl:for-each select="Report">
<LI>
<A TARGET="Reports">
<xsl:attribute name="HREF">ReportsData.htm#<xsl:value-of select="@ReportID"/></xsl:attribute>
<xsl:value-of select="@ReportName" />
</A>
</LI>
</xsl:for-each>
<xsl:apply-templates select="Category" />
</UL>
</LI>
</xsl:template>
</xsl:stylesheet>