Replace to XPath base system