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.
<?xml version="1.0" encoding="ISO-8859-1"?>
<maphrase>
My First Xalan XML Page!
</maphrase>
Secondly, create a file named testXalan.xsl and input the following.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="maphrase">
<html><body><xsl:apply-templates/></body></html>
</xsl:template>
</xsl:stylesheet>
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.
<html>
<body>
My First Xalan XML Page!
</body>
</html>
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.