Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes XML and Related Technologies and the fly likes How to run Xalan command Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to run Xalan command" Watch "How to run Xalan command" New topic

How to run Xalan command

Santh Narayanan

Joined: Jul 01, 2002
Posts: 18
How can I run this following command in java and not from command-line.

java org.apache.xalan.xslt.Process -in Index.xml
-xsl Xform2.xsl -out Index2.html

Arun Prasath
Ranch Hand

Joined: Sep 17, 2003
Posts: 192
If you want to transform an XML with XSL, then look for javax.xml.transform.Transformer class. The method transform() would help you.

SCJP 1.4, SCDJWS , SCJA<br />I can do ALL things through CHRIST who strengthens me.
I agree. Here's the link:
subject: How to run Xalan command