BoundsException.
Cheers,
Lawrence
> -Original Message-
> From: Lawrence Jones
> Sent: Thursday, April 06, 2006 11:17 AM
> To: user@xmlbeans.apache.org
> Subject: RE: selectPath with FilterExpression using $this
>
> Hi Siggi
>
> The version I've been trying
fBoundsException is but I hope the above helps.
Cheers,
Lawrence
> -Original Message-
> From: Siegfried Baiz [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 06, 2006 3:30 AM
> To: user@xmlbeans.apache.org
> Subject: Re: selectPath with FilterExpression using $this
>
>
Cezar,
I rewrote the expression - as you suggested - and tried:
XmlOptions xmlOpt = new XmlOptions();
xmlOpt.setXqueryCurrentNodeVar("self");
xo.selectPath("declare variable $self external; //[EMAIL PROTECTED]//@idRef]",
xmlOpt);
This approach resulted in the following exception:
java.lang.R
).
Hope that helps. As I say I'm not really an XPath expert and this is
really becoming more about XPath than about XmlBeans.
Cheers,
Lawrence
-----Original Message-
From: Siegfried Baiz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 04, 2
this/@id instead of 'sig4').
Hope that helps. As I say I'm not really an XPath expert and this is
really becoming more about XPath than about XmlBeans.
Cheers,
Lawrence
> -Original Message-
> From: Siegfried Baiz [mailto:[EMAIL PROTECTED]
> Sent: Tuesday,
.
Cheers,
Lawrence
-Original Message-
From: Radu Preotiuc-Pietro
Sent: Thursday, March 30, 2006 1:56 PM
To: user@xmlbeans.apache.org
Subject: RE: selectPath with FilterExpression using $this
I was curious to try this myself with the new Saxon 8.6 integrat
; -Original Message-
> From: Lawrence Jones
> Sent: Thursday, March 30, 2006 2:54 PM
> To: user@xmlbeans.apache.org
> Subject: RE: selectPath with FilterExpression using $this
>
> I too have had a go at this, but I too am not an XPath expert.
>
> First of all ma
s.
But anyway I hope that helps get started.
Cheers,
Lawrence
> -Original Message-
> From: Radu Preotiuc-Pietro
> Sent: Thursday, March 30, 2006 1:56 PM
> To: user@xmlbeans.apache.org
> Subject: RE: selectPath with FilterExpression using $this
>
> I was curious t
hursday, March 30, 2006 1:56 PM
To: user@xmlbeans.apache.org
Subject: RE: selectPath with FilterExpression using $this
I was curious to try this myself with the new Saxon 8.6 integration
(available from the SVN head only, for the moment) and what I found is
that the path you are suggesting ("//[EMA
ot;'").
If anyone else has other insights into why the original path does not
work (with more Xpath/Saxon knowledge), I'd also be interested to know.
Thanks,
Radu
-Original Message-
From: Cezar Andrei
Sent: Wednesday, March 29, 2006 3:30 PM
To: user@xmlbeans.apache.org
S
Hi Siegfried,
I'm not an expert in xpath/xquery but I'm pretty sure that $this doesn't
represent the internal current node that is processed by the engine.
So you'll probably want to rewrite the expression to something like
this:
xo.selectPath(".//[EMAIL PROTECTED]//@id]");
As for $this, it's ju
bject: Re: selectPath with FilterExpression using $this
Wing Yew,
I've tried the following function-call
XmlBeans.selectPath("let $cur := . return //[EMAIL PROTECTED]/@id]);
and got the following Error:
net.sf.saxon.xpath.StaticError: XPath syntax error at char 1 in {
let $}:
t you're executing
the
selectPath() from. "$this" is supposed to be that.
- Wing Yew
-Original Message-
From: Siegfried Baiz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 15, 2006 3:09 AM
To: user@xmlbeans.apache.org
Subject:
Sent: Thursday, March 16, 2006 12:29 AM
To: user@xmlbeans.apache.org
Subject: Re: selectPath with FilterExpression using $this
Hello Wing Yew,
yes, that's what I'm looking for. Do you have any idea, why
xo.selectPath("//[EMAIL PROTECTED]/@id]")
doesn't work (for my X
ng Yew
-Original Message-
From: Siegfried Baiz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 15, 2006 3:09 AM
To: user@xmlbeans.apache.org
Subject: Re: selectPath with FilterExpression using $this
For the _expression_ xo.selectPath("//[EMAIL PROTECTED]/@id]") I get an empty
ED]
Sent: Wednesday, March 15, 2006 3:09 AM
To: user@xmlbeans.apache.org
Subject: Re: selectPath with FilterExpression using $this
For the Expression xo.selectPath("//[EMAIL PROTECTED]/@id]") I get an empty
result-array.
Doesn't the left- and the right-hand-side of that filter-expre
For the Expression xo.selectPath("//[EMAIL PROTECTED]/@id]") I get an empty
result-array.
Doesn't the left- and the right-hand-side of that filter-expression
always refer to the same node, which would mean,
that the xpath-engine tries to select any nodes with
the two attributes @idRef & @id hav
Siggi,
can you try
xo.selectPath("//[EMAIL PROTECTED]/@id]");
and see if that works?
- Wing Yew
-Original Message-
From: Siegfried Baiz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 14, 2006 10:11 AM
To: user@xmlbeans.apache.org
Subject: selectPath with FilterExpression using $this
18 matches
Mail list logo