Like Sam, I can't really offer any easy answer, given that you're stuck with XPath 1.0. The best answer might be to iterate over the sibling elements from Javascript, adding each value to a set of values maintained at the Javascript level.
Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference