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.
阅读(1653) | 评论(0) | 转发(0) |