you probably mean the difference between using xsl/xslt stylesheet and using programming code to do transformation?
dom/sax are two major ways to parse/load an xml file
Dom is tree-based and memory intensive, easy to manipulate, suitable for small xml files
Sax is stream-based and lightweight, and good for extracting specific information or building your own data structure
you use XSL/XSLT to transform a dom into xml or other format. Current getneration of xsl/xslt processors are DOM-based
>>>>xsl/xslt是否有易编写
易编写? no
>>>方便数据与程序分离的优势?
yes, but it is a transformation language, you shouldn't embed too much presentation in an stylesheet, you should use templated xml file for presentation
>>>>>程序代码是否有功能强大,高效的优势?
sure, but it is inflexible, since you have to write code to do node manipulation, also sometimes your code becomes very complicated. If you need to make changes, you need to recompile your code. With XSLT, you can modify them and use it right away
>>>>两者的优势在什么场合下体现?
code: your transformation is fixed and requires high performance.
stylesheet: all other situations, it is possible (in Java) to pre-compile XSLT stylesheet into code to improve performance