import java.io.File;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
public class Main {
public static void main(String[] args) throws Exception{
StreamSource xmlFile = new StreamSource(new File(args[0]));
StreamSource xsltFile = new StreamSource(new File(args[1]));
TransformerFactory xsltFactory = TransformerFactory.newInstance();
Transformer transformer = xsltFactory.newTransformer(xsltFile);
StreamResult resultStream = new StreamResult(System.out);
transformer.transform(xmlFile, resultStream);
}
}
sources68 the directory containing the programming examples, source code and programming guide online
Sunday, 31 July 2011
Applying XSLT Stylesheets
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment