doc: xmlschema extension fixes

* Use xpath() instead of find()/findall(), which do not support
  namespace mappings in older versions of lxml.
* Properly initialize entities dict