6.3.3.XSL源碼
1.treefunc.xsl
<?xml version="1.0" encoding="gb2312" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<style>
#foldheader{cursor:hand ;list-style-image:url(/images/fold.gif);padding-left-width:-3}
#foldinglist{list-style-image:url(/images/list.gif);list-left-width:-3}
a:link{COLOR: #051679;TEXT-DECORATION: none}
a:visited{COLOR: #D91656;TEXT-DECORATION: none}
a:hover{COLOR: #cc0000;TEXT-DECORATION: underline}
body{FONT-SIZE: 10pt;}
</style>
</head>
<SCRIPT for="window" event="onload">
<xsl:comment><![CDATA][
var temp_str = 'thexmltreecookie';
var fl_n = 0;
temp_str = temp_str + "=";
for (i=0;i<foldinglist.length;i++){
temp_str=temp_str+"0:";
}
temp_str = temp_str.substring(0,temp_str.length-1);
fl_n = temp_str.length -17 ;
if ((document.cookie == '')||(WM_readCookie('thexmltreecookie').length != fl_n)){
document.cookie = temp_str;
}
else {
var temp_s = WM_readCookie("thexmltreecookie").split(":");
for (i=0;i<foldinglist.length;i++){