Hello,
for a given XmlObject xo with an ID-Attribute 'id',
I've tried to launch the following xpath-expression:
xo.selectPath("//[EMAIL PROTECTED]/@id]")
in order to get all nodes (with idRef-Attribute) refering to my node xo.
Unfortunatlly this expression seems not to work. I always get an
java.lang.ArrayIndexOutOfBoundsException from the underlying
net.sf.saxon.expr.XPathContextMajor.setLocalVariable(XPathContextMajor.java:213)
At
http://xmlbeans.apache.org/docs/2.0.0/guide/conSelectingXMLwithXQueryPathXPath.html
I found the following notice:
"Notice in the query expression that the variable $this represents
the current context node (the XmlObject that you are querying from).
In this example you are querying from the document level XmlObject."
After reading that sentence I've been thinking, that $this is somehow
similar to "curent()" in XSLT, but maybe a got the meaning wrong.
Does anyone know whats the problem here rsp.
is there a better way to accomplish the same thing?
Thanks a lot,
Siggi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]