I think my last posting was a bit confused, now I'll try to clarify my
In an application I want to replace all xpath-evaluation, which is currently
done with xalan,
with saxon. I've written a DOM driver for this, which allows to pass a
to a document-wrapper and than pass this document-wrapper as the context
Now, my problem is(pseudo-code included):
//I have a node called nodeXY, which belongs to documentXY
Node nodeXY = ...
-At this point I can't make a documentwrapper, because it is not a document.
-But I could do the following:
documentXY = nodeXY.getOwnerDocument()
-Now I can make a documentwrapper. Unfortunately I have a lot of existing
xpath-expressions in my
application. Theses expressions depend on that nodeXY is the context node
and not documentXY. At this
point I think about rewriting my xpath-expression, but I don't want this
The question is : How do I use saxon to evaluate an xpath-expression on a
W3CDOM-node and having this node as the context node?
Any idea how to achieve this cleanly?
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!