1<XPath xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
2(//. | //@* | //namespace::*)
3[
4    ancestor-or-self::ds:SignedInfo
5]
6</XPath>