Community mailing list archives

xpath on v9 community

- 08/23/2016 11:34:07
Hi Community

I'm presenting a problem, and a little confusion about this

As You know, on v9, you can't put 'string' on xpath anymore, but, what if I want to inherit a <page> which has a string as name? ie. <page string="Bill">, and I want to put an element after this page ie. <xpath expr="//page[@name='Bill']" position="after">

If I do this, the page is not found, even being there, because it has not a name, it has a string.

BUT, on the other hand, if I put string on the xpath, it will obviously throw an error.

So, what kind of solution do I need on this situation?

My xpath looks like this <xpath expr="//page[@name='Bill']" position="after"> can't use string either.

Any ideas?

Thanks in advance
Kristian Koci
Linux User #582221