6.3.3.XSL source code
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 = 'thexmltreecooker ';
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 ('thexmltreecooker'). length! = Fl_n )){
Document. cookie = temp_str;
}
Else {
Var temp_s = WM_readCookie ("thexmltreecookie"). split (":");
For (I = 0; I <foldinglist. length; I ++ ){