This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • 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