File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!