We have run ito a problem where we get an

java.lang.ArrayIndexOutOfBoundsException: 860

at net.sf.saxon.tinytree.TinyParentNodeImpl.getStringValue(TinyParentNodeImpl.java:64)

 

So I'm thinking of switching over to the standard tree model. There is documentation on specifying the tree model from the command line, but only the reference that it can be done through the api. I can see that it is related to Controller, but I'm not sure how it all fits together. The basic flow of my application is

Processor saxonProc = new Processor(false);

DocumentBuilder docBuilder = saxonProc.newDocumentBuilder();

Serializer serializedOutput = new Serializer();

serializedOutput.setOutputFile(foFile);

XsltCompiler xsltCompiler = saxonProc.newXsltCompiler();

foStyle = xsltCompiler.compile(stylesheet.asSource());

XsltTransformer foTransformer = foStyle.load();

foTransformer.setDestination(serializedOutput);

foTransformer.setInitialContextNode(input);

foTransformer.transform();

Where in this sequence would I create the controller and set it to use. Is there an easier way to do this? Is there example code available?

 
Steve Cuzner