Assuming you're using version 1.0 then I think you need to combine the starts-with() and substring-after() string functions. So a possible XPath would be:
Code:
/ns:catalog/ns:dir[starts-with(ns:id, 'user:') and substring-after(ns:id, '/') = 'home']
You will have to declare the ns prefix as bound to the default namespace. For links on this subject see
http://p2p.wrox.com/topic.asp?TOPIC_ID=49630.
--
Joe (
Microsoft MVP - XML)