Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1675181
  • 博文数量: 20
  • 博客积分: 10010
  • 博客等级: 上将
  • 技术积分: 3272
  • 用 户 组: 普通用户
  • 注册时间: 2007-01-04 09:45
文章分类

全部博文(20)

文章存档

2011年(3)

2010年(1)

2009年(1)

2008年(15)

我的朋友

分类: LINUX

2008-03-06 17:41:36

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.
阅读(1659) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~