preceding-sibling
The preceding-sibling
axis indicates all the nodes that have the same parent as the context node and appear before the context node in the source document.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XPath/Axes/preceding-sibling