Skip to content

Instantly share code, notes, and snippets.

View ed-graham's full-sized avatar

Ed Graham ed-graham

  • Cambridge, UK
View GitHub Profile
@serge1
serge1 / input.xml
Last active August 30, 2022 19:24
XSLT Transform by simple Java code
import javax.xml.transform.*;
import javax.xml.XMLConstants;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import java.io.File;
public class XsltTransform {
public static void main(String[] args) throws TransformerException {
Source xslt = new StreamSource(new File(args[0]));
Source xml = new StreamSource(new File(args[1]));