mateus
(Mateus)
1
I'm trying to use this rule to select the parent of a element and it keep crashing even the tutorials saying that is right.
<drop content="//input[@id='fisica']/parent::span" />
https://way2tutorial.com/xml/xpath_axes_examples_with_node_test.php
Is this possible?
edit: bad indentation code didn't displayed the snippet.
Thanks.
KrissiK
(Krissi K)
2
I never tried parent
axis but child
axis is working.
Is
<drop content="//input[@id='fisica']" />
working? Just to be sure you select the input the correct way?
Maybe you can add a css class or id to the parent element - so you can select it that way? Or by index - like this //div[3]
?
mateus
(Mateus)
3
yes, just
<drop content="//input[@id='fisica']" />
is working.
Because the way the project is set up my wish is use the rules.xml and modify the other files only if there is no other way.
Thanks.