On 15/05/2012 20:08, Cuzner Stephen P wrote:
We have run ito a problem where we get an

java.lang.ArrayIndexOutOfBoundsException: 860

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

Well, that's a new one, and I would certainly like to know what you're doing to cause that failure. Could you provide some more information, ideally enough to reproduce the problem, but at the very least, the full stack trace? This is a path that's used zillions of times so there must be something quite unusual going on.


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.

You can set the tree model on the s9api DocumentBuilder using the setTreeModel() method.

Michael Kay

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();


XsltCompiler xsltCompiler = saxonProc.newXsltCompiler();

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

XsltTransformer foTransformer = foStyle.load();




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

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

saxon-help mailing list archived at http://saxon.markmail.org/