> text[preceding-sibling::*[1][self::text/value='#']]
O-o-ps, sorry; I meant:
text[preceding-sibling::*[1][self::text/@value='#']]
Regards,
Nikolai
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html