[xml] Problems with xmllint, formating and HTML


today I tinkered with xmllint and the option --format, to reformat some of my html pages.

I called xmllint that way:

xmllint --html --format -o result.html eingabe.html

eingabe.html was valid HTML 4.01, result.html not (according to w3c's validator), since among other things <a name="jjj"></a> becomes <a name="jjj"/>.

Could someone have a look at it? I prepared a testcase to demonstrate it. It could be downloaded from http://www.xshare.com/xmllinttest.tar.gz. This archive contains a test.sh to format the original file.


Oliver Fischer

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]