tion takes an InputSource and an optional base URL and
    returns a fully resolved InputSource object ready for reading.