Expand XPath paths without using sprintf.