Also, this XPath 1.0:
/a/b[preceding-sibling::b/@property='p1'][following-sibling::b/@property='p2']
Note: Don't use // as first step. Whenever you can replace and operator by predicates, do it.
In XPath 2.0:
/a/b[. >> ../b[@property='p1']][../b[@property='p2'] >> .]