src: use shortest relative path to xml layout for data