-
You're right Document|Builder.build() makes a copy.
DocumentBuilder.wrap() I think isn't useful as I need to register an external object model.
Probably my solution is simpler, and it works :-)
Thanks for your suggestions.
05:18PM UTC on Feb 10 2009 in Saxon XSLT and XQuery Processor
-
I answer myself :-)
The solution is quite simple, I should use
static class MyNode extends XdmNode {
public MyNode(NodeInfo node) {
super(node);
}
}
doc = new MyNode(wrapper);
instead of:
doc = builder.build(wrapper);
in order to force Saxon to use my tree instead of letting it to create a new tree.
I have to derive from XdmNode...
04:29PM UTC on Feb 10 2009 in Saxon XSLT and XQuery Processor
-
I answer myself :-)
The solution is quite simple, I should use
static class MyNode extends XdmNode {
public MyNode(NodeInfo node) {
super(node);
}
}
doc = new MyNode(wrapper);
instead of:
doc = builder.build(wrapper);
in order to force Saxon to use my tree instead of letting it to create a new tree.
I have to derive from XdmNode...
10:53AM UTC on Feb 10 2009 in Saxon XSLT and XQuery Processor
-
Sorry I forgot to update the title.
09:40AM UTC on Feb 10 2009 in Saxon XSLT and XQuery Processor
-
Hi,
I've been following this instructions: http://www.saxonica.com/documentation/xpath-api/s9api-xpath.html
in order to query XPath a custom tree object model through the S9API.
So I've build my custom node and document wrappers.
It works ok, but what I get is net.sf.saxon.tinytree.TinyElementImpl instead of my custom NodeWrapper. From a TinyElementImpl I cannot call getUnderlyingNode(),
09:36AM UTC on Feb 10 2009 in Saxon XSLT and XQuery Processor
-
The same can be said about VOListAdapter.java
File Added: VOListAdapter.java.patch.
07:25AM UTC on Mar 17 2008 in OpenSwing
-
QueryUtil when introspecting the ValueObject bean, doesn'nt handle well setters and getters for primitive types:
int getMyVal();
void setMyVal(int v);
So I've created a patch that solves this.
07:24AM UTC on Mar 17 2008 in OpenSwing
-
david-perez committed revision 10503 to the qooxdoo SVN repository, changing 1 files.
10:09AM UTC on Oct 08 2007 in qooxdoo
-
david-perez committed revision 12669 to the qooxdoo-contrib SVN repository, changing 1 files.
10:09AM UTC on Oct 08 2007 in qooxdoo-contrib
-
david-perez committed revision 10502 to the qooxdoo SVN repository, changing 1 files.
10:08AM UTC on Oct 08 2007 in qooxdoo