I'm currently working with Open Street Maps data and I'm trying to select the preceding and following sibling of a specific node.
My queries currently look like this :
/osm/way/nd[@ref=203936110]/following-sibling::nd[1]
/osm/way/nd[@ref=203936110]/preceding-sibling::nd[1]
These queries work as expected but I'd like to merge them into a single query. I did found some examples mentioning that this is possible but for some reason I haven't been able to find the right syntax to make it work.
This query, for example, is invalid :
/osm/way/nd[@ref=203936110]/(following-sibling::nd[1] or preceding-sibling::nd[1])