Working thanks to corrections from Michael Kay on Saxon list.
authorTony Graham
Mon, 16 Dec 2013 09:37:02 +0000
changeset 21 4de832b72c0d
parent 20 8692c49d26d3
child 22 d472aaee1bf0
Working thanks to corrections from Michael Kay on Saxon list.
FOPRunXSLTExt/src/org/w3c/ppl/xslt/ext/ahf/saxon/RunAHFSaxon.java
--- 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);