RE: selectPath with FilterExpression using $this

2006-04-06 Thread Lawrence Jones
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

RE: selectPath with FilterExpression using $this

2006-04-06 Thread Lawrence Jones
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 > >

Re: selectPath with FilterExpression using $this

2006-04-06 Thread Siegfried Baiz
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

Re: selectPath with FilterExpression using $this

2006-04-06 Thread Siegfried Baiz
). 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

RE: selectPath with FilterExpression using $this

2006-04-04 Thread Lawrence Jones
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,

Re: selectPath with FilterExpression using $this

2006-04-04 Thread Siegfried Baiz
. 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

RE: selectPath with FilterExpression using $this

2006-03-30 Thread Lawrence Jones
; -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

RE: selectPath with FilterExpression using $this

2006-03-30 Thread Lawrence Jones
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

RE: selectPath with FilterExpression using $this

2006-03-30 Thread Radu Preotiuc-Pietro
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

RE: selectPath with FilterExpression using $this

2006-03-30 Thread Radu Preotiuc-Pietro
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

RE: selectPath with FilterExpression using $this

2006-03-29 Thread Cezar Andrei
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

RE: selectPath with FilterExpression using $this

2006-03-29 Thread Wing Yew Poon
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 $}:

Re: selectPath with FilterExpression using $this

2006-03-29 Thread Siegfried Baiz
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:

RE: selectPath with FilterExpression using $this

2006-03-17 Thread Wing Yew Poon
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

Re: selectPath with FilterExpression using $this

2006-03-16 Thread Siegfried Baiz
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

RE: selectPath with FilterExpression using $this

2006-03-15 Thread Wing Yew Poon
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

Re: selectPath with FilterExpression using $this

2006-03-15 Thread Siegfried Baiz
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

RE: selectPath with FilterExpression using $this

2006-03-14 Thread Wing Yew Poon
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