• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run Xalan command

 
Santh Narayanan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to transform an XML with XSL, then look for javax.xml.transform.Transformer class. The method transform() would help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic