Convert to XPath-1.0 compatible ends-width