xslt入门

来源:互联网 发布:js 表单如何拼接字符串 编辑:程序博客网 时间:2024/06/05 05:38

使用场景: 

已有xml数据,显示为web等

安装:

 xml+ie即可,不需要工具

如果转换为其它格式如:html需要使用xsltproc:

下载xsltproc


使用方法:

XSLT实现XML文档转换成HTML文档

http://www.cnblogs.com/a2602162453/p/5180253.html

http://www.cnblogs.com/xmlnode/p/4560754.html


XSLT语法: http://blog.163.com/endno_go/blog/static/1640590572010996720937/

http://www.cnblogs.com/xmlnode/p/4564265.html


嵌套+tab:

http://www.html5tricks.com/css3-responsive-tab-menu.html

http://www.cnblogs.com/saptechnique/archive/2012/08/28/2660403.html

http://www.it2down.com/it-xml-soap/209390.htm


xsltproc转换方法:

orchis:~ -> xsltprocUsage: xsltproc [options] stylesheet file [file ...]   Options:      --version or -V: show the version of libxml and libxslt used      --verbose or -v: show logs of what's happening      --output file or -o file: save to a given file      --timing: display the time used      --repeat: run the transformation 20 times      --debug: dump the tree of the result instead      --novalid: skip the DTD loading phase      --noout: do not dump the result      --maxdepth val : increase the maximum depth      --html: the input document is(are) an HTML file(s)      --docbook: the input document is SGML docbook      --param name value : pass a (parameter,value) pair      --nonet refuse to fetch DTDs or entities over network      --warnnet warn against fetching over the network      --catalogs : use the catalogs from $SGML_CATALOG_FILES      --xinclude : do XInclude processing on document input      --profile or --norman : dump profiling information orchis:~ ->
cd /d %~dp0

.\tool\xsltproc\bin\xsltproc .\dog.xml -o .\dog.html




0 0
原创粉丝点击