"if i change nazwa="Atlantycki" to nazwa="Północne" it nothing shows. It's correct?". Yes, that's an expected behavior.
basically, this XPath query :
//akweny[ancestor::akwen/nazwa="Atlantycki"]
will search for <akweny>
element having ancnestor :
<akwen>
element having child :
<nazwa>Atlantycki</nazwa>
So if you change nazwa="Atlantycki"
to nazwa="Północne"
the query will return nothing. Because the only <akwen>
element met the query is not a parent of any <akweny>
element :
<akwen>
<nazwa>Północne</nazwa>
<typ>morze</typ>
<powierzchnia>750</powierzchnia>
</akwen>
In other words no <akweny>
element met the query.