home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
- <xsl:template match="/">
- <html>
- <head>
- <style>
- BODY
- {
- font-family:Verdana;
- cursor:default;
- font-size:12px;
- }
-
- TD
- {
- font-family:Verdana;
- cursor:default;
- font-size:12px;
- }
-
- .tree
- {
- padding:4px 2px 0px 2px;
- }
-
- span
- {
- padding:2px 3px 2px 3px;
- position:relative;
- display:inline;
- top:-2px;
- height:17px;
- border: solid 1px #ECEEF5;
- }
-
- span.clsLabel
- {
-
- }
-
- SPAN.clsSpace
- {
- font-family:verdana;
- position:relative;
- padding:3px 2px;
- top:0px;
- width:17px;
- margin:0px;
- cursor:hand;
- overflow:hidden;
- }
-
- span.clsSpace span
- {
- position:relative;
- width:11px;
- height:11px;
- border:solid 1px black;
- background-color:#ffffff;
- }
-
- SPAN.clsCollapse
- {
- line-height:6px;
- font-size:9px;
- overflow:hidden;
- padding:1px 1px 1px 1px;
- }
-
- SPAN.clsExpand
- {
- padding: 3px 0px 0px 1px;
- overflow:hidden;
- line-height:3px;
- font-size:13px;
- }
-
- SPAN.clsLeaf
- {
- overflow:visible;
- font-size:9px;
- line-height:3px;
- padding: 1px 0px 0px 3px;
- }
-
- SPAN.clsSelected
- {
- }
-
- A
- {
- color:black;
- text-decoration:none;
- height:1em;
- }
-
- SPAN.clsSelected A
- {
- color:#0071DB;
- text-decoration:none;
- height:1em;
- }
-
- .hide
- {
- display:none;
- }
-
- .shown
- {
- display:block;
- margin-left:15px;
- }
-
- .tree IMG
- {
- position:relative;
- cursor:hand;
- top:-2px;
- margin:0px;
- padding:0px;
- }
-
- .treelabel
- {
- font-family:verdana;
- font-size:12px;
- color:white;
- }
- </style>
- <script>
- function Toggle(objLI)
- {
- window.event.cancelBubble = true;
- window.event.returnValue = false;
- window.document.body.focus();
- if (objLI.type == "parent")
- {
- if (objLI.state == "shown")
- {
- Collapse(objLI);
- }
- else
- {
- Expand(objLI);
- }
- }
- }
- function Collapse(objLI)
- {
- var i = 0;
- var objUL;
- var objIMG;
-
- objUL = objLI.children[objLI.children.length - 1];
-
- if (objUL != null)
- {
- objIMG = objLI.children[0];
- if (objUL != null)
- {
- objLI.state = "hidden";
- objUL.className = "hide";
- objIMG.innerHTML = '<span class="clsCollapse">+</span>';
- }
- }
- }
-
- function Expand( objLI)
- {
- var i = 0;
- var objUL;
- var objIMG;
- var objSPAN;
-
- objUL = objLI.children[objLI.children.length - 1];
-
- if (objUL != null)
- {
- objIMG = objLI.children[0];
-
- if (objIMG != null)
- {
- objUL.className = "shown";
- objIMG.innerHTML = '<span class="clsExpand">-</span>';
- objLI.state = "shown";
- }
- }
- }
-
- var objPrevItem = null;
-
- function Select( objLI )
- {
- window.document.body.focus();
-
- if (objPrevItem != null)
- {
- objPrevItem.className = "clsLabel";
- }
- objPrevItem = objLI;
-
- Expand(objLI.parentElement);
-
- objLI.className = "clsSelected";
- }
-
- function Location( strTime )
- {
- var nodes = document.all.item("indexnode");
- var selectedNode = null;
-
- if (nodes != null){
- if (nodes.length != null)
- {
- for (i = 0; ; i++)
- {
- if (i == nodes.length)
- break;
- if (nodes[i].begin == strTime)
- {
- selectedNode = nodes[i];
- Select(nodes[i]);
- break;
- }
- }
- }
- else
- {
- if (nodes.begin == strTime)
- {
- selectedNode = nodes;
- Select(nodes);
- }
- }
-
- if (selectedNode != null)
- {
- node = selectedNode;
- while (true)
- {
- if (node.type == 'root')
- {
- break;
- }
-
- node = node.parentElement;
-
- if (node.state != 'shown')
- {
- Expand(node);
- }
-
- node = node.parentElement;
- }
- }
- }
- }
-
- function Goto(time)
- {
- window.location.href = "goto://" + time;
- }
-
- </script>
- </head>
- <body scroll="no" bgcolor="#ECEEF5" onselectstart="javascript:event.returnValue=false;return false;" oncontextmenu="javascript:event.returnValue=false;return false;" leftmargin="0" topmargin="0">
- <div style="width:100%;height:100%;overflow:auto;">
- <xsl:apply-templates />
- </div>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="/CSX">
- <xsl:apply-templates />
- </xsl:template>
- <xsl:template match="/CSX/ENTRY">
- <xsl:apply-templates />
- </xsl:template>
- <xsl:template match="/CSX/ENTRY/DESCRIPTION">
- <xsl:apply-templates />
- </xsl:template>
- <xsl:template match="/CSX/ENTRY/INDEXES">
- <nobr>
- <div id="indextree" class="tree" type="root">
- <xsl:apply-templates />
- </div>
- </nobr>
- </xsl:template>
- <xsl:template match="/CSX/ENTRY/DESCRIPTION">
- <table cellspacing="0" cellpadding="3">
- <xsl:apply-templates />
- </table>
- <table cellspacing="0" cellpadding="0" width="100%">
- <tr><td height="1" bgcolor="#D0D4E2"></td></tr>
- <tr><td height="1" bgcolor="#FFFFFF"></td></tr>
- </table>
- </xsl:template>
- <xsl:template match="PARAM">
- <tr>
- <td valign="top">
- <xsl:value-of select="@name" />:
- </td>
- <td valign="top">
- <xsl:value-of select="@value" />
- </td>
- </tr>
- </xsl:template>
- <xsl:template match="INDEX">
- <div class="clsItem" type="leaf">
- <span class="clsSpace" type="img"><span class="clsLeaf">.</span></span>
- <span class="clsLabel" type="label" onclick="Select(this)" id="indexnode">
- <xsl:attribute name="title">
- <xsl:value-of select="@name" />
- </xsl:attribute>
- <xsl:attribute name="begin">
- <xsl:choose>
- <xsl:when test="@begin">
- <xsl:value-of select="@begin" />
- </xsl:when>
- <xsl:otherwise>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <a>
- <xsl:attribute name="tabindex">-1</xsl:attribute>
- <xsl:attribute name="href">javascript:;</xsl:attribute>
- <xsl:choose>
- <xsl:when test="@begin">
- <xsl:attribute name="onmousedown">javascript:Goto('<xsl:value-of select="@begin" />');</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:value-of select="@name" />
- </a>
- </span>
- </div>
- </xsl:template>
- <xsl:template match="INDEX[*]">
- <div class="clsItem" type="parent">
- <span class="clsSpace" type="img" onclick="Toggle(this.parentElement)"><span class="clsCollapse">+</span></span>
- <span class="clsLabel" type="label" onclick="Select(this)" id="indexnode">
- <xsl:attribute name="title">
- <xsl:value-of select="@name" />
- </xsl:attribute>
- <xsl:attribute name="begin">
- <xsl:choose>
- <xsl:when test="@begin">
- <xsl:value-of select="@begin" />
- </xsl:when>
- <xsl:otherwise>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <a>
- <xsl:attribute name="tabindex">-1</xsl:attribute>
- <xsl:attribute name="href">javascript:;</xsl:attribute>
- <xsl:choose>
- <xsl:when test="@begin">
- <xsl:attribute name="onmousedown">javascript:Goto('<xsl:value-of select="@begin" />');</xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:value-of select="@name" />
- </a>
- </span>
- <div class="hide" type="container">
- <xsl:apply-templates />
- </div>
- </div>
- </xsl:template>
- <xsl:template match="/INDEX">
- <xsl:apply-templates />
- </xsl:template>
- <xsl:template match="INDEXES/ENTRY/CSX">
- <xsl:apply-templates />
- </xsl:template>
- <xsl:template match="ENTRY/CSX">
- <xsl:apply-templates />
- </xsl:template>
- </xsl:stylesheet>
-