- 论坛徽章:
- 0
|
xalan command is a flexible tool to translate the xml file into another xml file or others files. You can have a general understanding through an easy example.
At the first, create a file named testXalan.xml with vi and input the following.
My First Xalan XML Page!
Secondly, create a file named testXalan.xsl and input the following.
At last, type the next command the translate the testXalan.xml into testXalan.htm.
xalan -IN testXalan.xml -XSL testXalan.xslt > testXalan.htm
You can view the result of the file testXalan.htm as the following.
My First Xalan XML Page!
In a word, the xsl file is a rule to describe how to translate the original xml file and the xalan is a cute tool to accomplish it.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/29515/showart_490774.html |
|