code: def _read_template(template):
      
      template = _read_content_or_path(template)
      file_obj = StringIO.StringIO(template)
  
      return ET.parse(file_obj)
docs: Read XSLT template.
  
      Args:
          template (str): Filename or XML string. Don't use ``\\n`` in case of
                          filename.
  
      Returns:
          obj: Required XML parsed with ``lxml.etree``.