File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to run Xalan command" Watch "How to run Xalan command" New topic
Author

How to run Xalan command

Santh Narayanan
Greenhorn

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

Thanks,
Santh
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: http://aspose.com/file-tools
 
subject: How to run Xalan command
 
Similar Threads
DOS
Stored procedure cannot be imported from java...?
About Dos Command
run Dos commands in java app
How do I pretty print xml?