IllegalStateException when getting XdmNode after chaining transformation
After updating the version of the nuget package Saxon-HE from 188.8.131.52 to 184.108.40.206 a chained transformation stopped working.
The code looks like this:
var t1 = e1.Load();
var t2 = e2.Load();
var t3 = e3.Load();
var dest = new XdmDestination();
t1.InitialContextNode = doc;
t2.Destination = t3;
t3.Destination = dest;
dest.XdmNode // throws java.lang.IllegalStateException: The document has not yet been built
#1 Updated by Martin Honnen 10 months ago
On the Java side of Saxon 220.127.116.11 your approach seems to work, with .NET I only get the chaining of three
Xslt30Transformers (instead of
XsltTransformers) to work:
var t1 = e1.Load30(); var t2 = e2.Load30(); var t3 = e3.Load30(); t1.GlobalContextItem = doc; t1.ApplyTemplates(doc, t2.AsDocumentDestination(t3.AsDocumentDestination(dest)));
#3 Updated by O'Neil Delpratt 9 months ago
- Status changed from New to In Progress
- Applies to branch 10, 9.9, trunk added
Sorry for the delay in picking this bug issue up. I have managed to reproduce the problem with the code snippet above.
In 9.9 when we added the Xslt30Transformer class, which involved some code refactoring. It seems the code to for create the internal
Documentbuilder in the XdmDestination class seems to have been broken.
Please register to edit this issue