Working thanks to corrections from Michael Kay on Saxon list.
--- a/FOPRunXSLTExt/src/org/w3c/ppl/xslt/ext/ahf/saxon/RunAHFSaxon.java Sun Dec 15 21:54:25 2013 +0000
+++ b/FOPRunXSLTExt/src/org/w3c/ppl/xslt/ext/ahf/saxon/RunAHFSaxon.java Mon Dec 16 09:37:02 2013 +0000
@@ -81,7 +81,8 @@
StreamSource sAt = new StreamSource(new ByteArrayInputStream(osAt.toByteArray()));
//return new ObjectValue(context.getConfiguration().buildDocument(sAt));
//return new ObjectValue(sAt);
- return new ObjectValue(DocumentOverNodeInfo.wrap(context.getConfiguration().buildDocument(sAt)));
+ //return new ObjectValue(DocumentOverNodeInfo.wrap(context.getConfiguration().buildDocument(sAt)));
+ return context.getConfiguration().buildDocument(sAt);
} catch (Exception ex) {
ex.printStackTrace();
throw new XPathException(ex);