Hi,
I got html code like the following:
<p style="margin:0 0 0.5em 0;"><b>Blablub</b></p>
<table> ... </table>
Now I want to query the content of the <b>
right above the table but only if the table does not have any attributes. I tried the following query:
//table[not(@*)]/preceding-sibling::p/b
If I remove the preceding-sibling::p/b
part entirely it works. It gives me exactly the tables I need. However, if I use this query it gives me content of an <b>
tag which preceds a table WITH attributes.
I'm clueless. Anyone got an idea?