Parentheses in XPath 1.0 Toolbar

Having trouble installing Oxygen? Got a bug to report? Post it all here.
debbiep
Posts: 3
Joined: Fri Sep 15, 2006 8:15 am

Parentheses in XPath 1.0 Toolbar

Post by debbiep »

Problem: Valid Xpath containing parentheses produces parsing error in XPath 1.0 toolbar and XPath Builder.

Hi all,

I sometimes have the need to enter an XPath expression like
(/*/*/*)[1]
which does something different to
/*/*/*[1]

Paths like these give me the error "A location step was expected following the '/' or '//' token".

They work in the XWatch tab, for what it's worth.

This applies to Oxygen 7.2 on at least Windows and Mac OS.[/code]
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

It is a bug when analyzing and executing the XPath expression that you enter in the toolbar. We fixed it already for the next version of <oXygen/>. Until the next version is released please apply the same expression in the XPath toolbar as an XPath 2.0 expression. It will work without problems.


Regards,
Sorin
Post Reply