I have the following code and I have to select all the nodes with id="text" but not the nodes that already have a parent with id="text":
<fo:block id="text">
test00
<fo:block id="text">
test01
</fo:block>
<fo:block>
test02
</fo:block>
</fo:block>
<fo:block id="text">
test03
</fo:block>
so in this example the query have to return only the two fo:block with content test00 and test03.
Thank you.