Expands XPath expressions without using sprintf.