当前位置:编程学习 > JSP >>

用Java实现可保存状态的数据库生成XML树,最后一个源码(12),新手高手都看看吧,也不枉我一片苦

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++){
补充:Jsp教程,Jsp/Servlet开发工具
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,