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 >
Text File  |  2010-06-15  |  4KB  |  110 lines

  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  2.  
  3. <!-- ReportContents.xsl -->
  4.  
  5. <xsl:template match="/">
  6.  
  7.         <HTML>
  8.         <HEAD>
  9.                 <meta http-equiv="Content-Language" content="en-us"/>
  10.                 <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
  11.                 <title>Report Contents</title>
  12.                 <base target="contents"/>
  13.  
  14.         <STYLE TYPE="text/css"><xsl:comment>
  15.  
  16.                 BODY { font-family:verdana; font-size:9pt; }
  17.                 H1 { font-size:120%; font-style:italic; }
  18.  
  19.                 UL { margin-left:10px; margin-bottom:9px; margin-top:4px;}
  20.                 LI UL { display:block; margin-left:12px; margin-top:4px; }
  21.                 LI { font-family:verdana; font-weight:bold; list-style-type:none; cursor:default; margin-bottom:1px; color:dimgray; }
  22.                 LI:hover { text-color:navy; }
  23.                 LI.clsHasKids { list-style-type:none; }
  24.                 LI.clsHasKids SPAN { cursor:hand; }
  25.  
  26.                 A:link, A:visited, A:active { text-decoration:none; font-weight:normal; color:#4a7195; } 
  27.                 A:hover { text-decoration:underline; }
  28.  
  29.         </xsl:comment></STYLE>
  30.  
  31.         <SCRIPT LANGUAGE="javascript"><xsl:comment><![CDATA[
  32.  
  33.                 function GetChildElem(eSrc,sTagName)
  34.                 {
  35.                         var cKids = eSrc.children;
  36.                         for (var i=0;i<cKids.length;i++)
  37.                         {
  38.                                 if (sTagName == cKids[i].tagName) return cKids[i];
  39.                         }
  40.                         return false;
  41.                 }
  42.  
  43.                 function List_click()
  44.                 {
  45.                         var eSrc = window.event.srcElement;
  46.                         if ("SPAN" == eSrc.tagName && "clsHasKids" == eSrc.parentElement.className)
  47.                         {
  48.                                 var eChild = GetChildElem(eSrc.parentElement,"UL");
  49.                                 eChild.style.display = ("none" == eChild.style.display ? "block" : "none");
  50.                         }
  51.                 }
  52.  
  53.                 function List_over()
  54.                 {
  55.                         var eSrc = window.event.srcElement;
  56.                         if ("SPAN" == eSrc.tagName && "clsHasKids" == eSrc.parentElement.className)
  57.                         {
  58.                                 eSrc.style.color = "#19822d";
  59.                         }
  60.                 }
  61.  
  62.                 function List_out()
  63.                 {
  64.                         var eSrc = window.event.srcElement;
  65.                         if ("SPAN" == eSrc.tagName && "clsHasKids" == eSrc.parentElement.className)
  66.                         {
  67.                                 eSrc.style.color = "dimgray";
  68.                         }
  69.                 }
  70.  
  71.                 function GoToBookmark(id)
  72.                 {
  73.                         window.parent.Reports.location.replace("ReportsData.htm#"+id);
  74.  
  75.                 }
  76.  
  77.         ]]>//</xsl:comment></SCRIPT>
  78.  
  79.         </HEAD>
  80.         <BODY>
  81.  
  82.         <!-- BUILD LIST -->
  83.  
  84.         <UL ONMOUSEOVER="List_over();" ONMOUSEOUT="List_out();" ONCLICK="List_click();">
  85.                 <xsl:apply-templates select="DocMap/Category" />
  86.         </UL>
  87.  
  88.         </BODY>
  89.         </HTML>
  90.  
  91. </xsl:template>
  92.  
  93. <xsl:template match="Category">
  94.         <LI CLASS="clsHasKids"><SPAN><xsl:value-of select="@CategoryName" /></SPAN>
  95.         <UL>
  96.         <xsl:for-each select="Report">
  97.                 <LI>
  98.                         <A TARGET="Reports">
  99.                                 <xsl:attribute name="HREF">ReportsData.htm#<xsl:value-of select="@ReportID"/></xsl:attribute>
  100.                                 <xsl:value-of select="@ReportName" />
  101.                         </A>
  102.                 </LI>
  103.         </xsl:for-each>
  104.         <xsl:apply-templates select="Category" />
  105.         </UL>
  106.         </LI>
  107. </xsl:template>
  108.  
  109. </xsl:stylesheet>
  110.