aspose 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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