易截截图软件、单文件、免安装、纯绿色、仅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示例

<!-- xml 格式
<books>
<book id='1001'>
<author>andylin</author>
<title>c language</title>
<publisher id="aaa">O'Reilly</publisher>
</book>

<book id='1002'>
<author>congfeng</author>
<t ......

XML 架构介绍

XML 架构介绍:
XML 架构是用于定义和验证 XML 数据的内容和结构的文档,就像数据库架构定义和验证组成数据库的表、列和数据类型一样。
XML 架构通过 XML 架构定义 (XSD) 语言定义和描述某些 XML 数据类型。XML 架构元素(元素、属性、类型和组)用于定义某些 XML 数据类型的有效结构、有效数据内容和关系。XML 架构还可为 ......

将Java对象保存为XML文档

package com.kiloway.trace.utils;
import java.lang.reflect.Field;
/**
* @author Zhang Qi
* @Create Time 2010/01/09
* */
public class ObjectToXML {
public String toString(Object object) throws Exception {
StringBuilder sb = new StringBuilder();
//得到类的名称
String classname = obj ......

Flex读取外部XML中文乱码解决办法

用URLLoader加载XML,然后将data转化为ByteArray
用byteArray.readMultiByte(bytes.length,"utf-8")
然后将转化后的字符串再强制转化为XML
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.Binary;
var urlRequest:URLRequest = new URLRequest(source);
loader.addEventListener( ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号