html Tidyは、何らかの理由でこれを出力として提供します。
<?xml version="1.0" encoding="utf-16"?>
<?xml version="1.0" encoding="utf-16"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 11 February 2007), see www.w3.org" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
...rest of document
したがって、2つのxmlヘッダーがあり、タイプが間違っています(UTF-8ではありません)。2番目のヘッダーを削除してUTF-8に変更し、XSLでDOCTYPEを削除する方法はありますか?