易截截图软件、单文件、免安装、纯绿色、仅160KB

PKM2数据导出的xml显示用的XSL

PKM2这个个人知识管理软件相信很多人用过,可以把数据导出为chm电子书,但是不知道为什么倒出来的chm不能按照标题排序,所以我就导出为xml格式,弄个xsl来显示它.
<?xml version="1.0" encoding="gb2312"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="4.0" indent="yes"/>

<xsl:template match="/">
<html>
<head>
<TITLE>hh</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<meta name="Author" content="(webuc.net)" />
<meta name="Description" content="" />
<mce:style><!--
body{margin:0px;color:black;font-size:9pt;}
div{background-color:#fff;border:1px solid #4682B4;}
p{indent:2em;margin-left:15px;}
ul{}
li{margin-left:10px;}
a:link {color: #2c4c78; text-decoration: none}
a:visited {color: #2c4c78; text-decoration: none}
a:hover {color: #8B0C01; text-decoration: underline}
a:active {color: red; text-decoration: none}
#left_nav{margin:10px;float:left;clear:left;width:250px;height:600px;overflow:scroll;}
#right_content{margin:10px;float:left;clear:right;width:600px;height:600px;overflow:scroll;}
--></mce:style><style mce_bogus="1">body{margin:0px;color:black;font-size:9pt;}
div{background-color:#fff;border:1px solid #4682B4;}
p{indent:2em;margin-left:15px;}
ul{}
li{margin-left:10px;}
a:link {color: #2c4c78; text-decoration: none}
a:visited {color: #2c4c78; text-decoration: none}
a:hover {color: #8B0C01; text-decoration: underline}
a:active {color: red; text-decoration: none}
#left_nav{margin:10px;float:left;clear:left;width:250px;height:600px;overflow:scroll;}
#right_content{margin:10px;float:left;clear:right;width:600px;height:600px;overflow:scroll;}</style>
</head>
<body>
<div id="main">
<xsl:apply-templates select="XMLDB"/>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="XMLDB"&g


相关文档:

用 PHP 读取和编写 XML DOM


用 PHP 读取和编写 XML DOM
使用 DOM 库、SAX 解析器和正则表达式
文档选项
打印本页
将此页作为电子邮件发送
级别: 中级
Jack Herrington (jack_d_herrington@codegeneration.net), 高级软件工程师, "Code Generation Network"
2006 年 2 月 06 日
有许多技术可用于用 PHP 读取和编写 XML。本文提供了三种 ......

解读PHP DOMDocument在解析XML文件中的作用

解读PHP DOMDocument在解析XML文件中的作用
http://developer.51cto.com  2009-12-02 10:39  佚名  柳城博客  我要评论(0)
PHP DOMDocument的功能非常强大,我们在这篇文章中将介绍如何正确的运用PHP DOMDocument来进行XML文件的解析。希望对又需要的朋友有所帮助。
在使用PHP对XML文件进行解析的时 ......

读取xml时 EntityName 时出错

public static Hashtable xml_unserialize(string strXml)
        {
//加上下面这句就好了
strXml = strXml.Replace("&", "&amp;");
Hashtable ht = new Hashtable();
XmlDocument XMLDom = new XmlDocument();
......

更新 xml步骤

在service(spring)中完成
step 1:
打开一个session
写 sql 语句,
注意点:写sql语句时,所查询的试图为:kangaroo_VW_UnitView,此试图的生成
有 kangaroo_unit表左连接到kangaroo_img表而生成。
step 2:
把所查询的符合条件的集合放入临时的ArrayList中,并对临时的ArrayList进行
迭代。
step 3:
把迭代出来的集 ......

javascript读取xml实现应用程序菜单效果

/*样式*/
<style type="text/css">
    td{font-size:12px;}
    .item{text-decoration:none;width:100%;height:100%; line-height:22px;cursor:default;color:Black;vertical-align:middle}
    .staticTab{cursor:default;height:22px}
   ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号