resolve Lang parameter in publication path, adds support for path in variables xml reference