Hi, I want to use this example but without compiling a stylesheet:
    private static class TransformA implements S9APIExamples.Test {

        public String name() {

            return "TransformA";


        public boolean isSchemaAware() {

            return false;


        public void run() throws SaxonApiException {

            Processor proc = new Processor(false);

            XsltCompiler comp = proc.newXsltCompiler();

            XsltExecutable exp = comp.compile(new StreamSource(new File("styles/books.xsl")));

            XdmNode source = proc.newDocumentBuilder().build(new StreamSource(new File("data/books.xml")));

            Serializer out = new Serializer();

            out.setOutputProperty(Serializer.Property.METHOD, "html");

            out.setOutputProperty(Serializer.Property.INDENT, "yes");

            out.setOutputFile(new File("books.html"));

            XsltTransformer trans = exp.load();




            System.out.println("Output written to books.html");

How is this possible? By using XsltTransformer.setInitialTemplate or by creating a Controller and using the XsltTransformer Constructor XsltTransformer(Processor processor, Controller controller) ? Thanks for all replies in advance. Best regards, Walter

View this message in context: S9API XSL Transformation without compiled stylesheed?
Sent from the saxon-help mailing list archive at Nabble.com.