Use xmllint's --nonet option to avoid downloading the xhtml DTD. Provide the DTD and its dependencies locally.