trim is done in translateCssToXpath