In this simple case you do not need the following-sibling
. Try this instead:
/fields/record[id[text()=10]]/value/text()
Using the tag id
inside the brackets leaves your context at record
so that the following slash descends to the corresponding sibling of id
(having the same parent as id
).