兄弟们,你们在翻译前用xmllint检查过没有,怎么一堆错
linky@Asus ~ $ xmllint --valid --noout Desktop/faq.xml
http://www.w3.org/TR/html4/loose.dtd:31: parser error : xmlParseEntityDecl: entity
HTML.Version not terminated
-- Typical usage:
^
http://www.w3.org/TR/html4/loose.dtd:31: parser error : Content error in the external subset
-- Typical usage:
^
Desktop/faq.xml:14: parser error : Opening and ending tag mismatch: link line 10 and head
</head>
^
Desktop/faq.xml:16: parser error : Opening and ending tag mismatch: img line 16 and a
b"><a href="/"><img border="0" src="/images/gtop-www.jpg" alt="Gentoo Logo"></a>
^
Desktop/faq.xml:16: parser error : Opening and ending tag mismatch: a line 16 and td
href="/"><img border="0" src="/images/gtop-www.jpg" alt="Gentoo Logo"></a></td>
^
Desktop/faq.xml:16: parser error : Opening and ending tag mismatch: td line 16 and tr
f="/"><img border="0" src="/images/gtop-
www.jpg" alt="Gentoo Logo"></a></td></tr
^
Desktop/faq.xml:869: parser error : Opening and ending tag mismatch: br line 868 and td
</td>
^
Desktop/faq.xml:897: parser error : Opening and ending tag mismatch: br line 897 and p
<br><i>Editor</i><br></p></td></tr>
^
Desktop/faq.xml:897: parser error : Opening and ending tag mismatch: br line 897 and td
<br><i>Editor</i><br></p></td></tr>
^
Desktop/faq.xml:897: parser error : Opening and ending tag mismatch: br line 895 and tr
<br><i>Editor</i><br></p></td></tr>
^
Desktop/faq.xml:903: parser error : Opening and ending tag mismatch: input line 902 and form
</form>
^
Desktop/faq.xml:904: parser error : Opening and ending tag mismatch: input line 902 and td
</td></tr>
^
Desktop/faq.xml:904: parser error : Opening and ending tag mismatch: input line 902 and tr
</td></tr>
^
Desktop/faq.xml:907: parser error : Opening and ending tag mismatch: img line 907 and a
g" width="125" height="144" alt="Gentoo Centric Hosting:
vr.org" border="0"></a>
^
Desktop/faq.xml:908: parser error : Opening and ending tag mismatch: a line 907 and td
</td></tr>
^
Desktop/faq.xml:908: parser error : Opening and ending tag mismatch: td line 906 and tr
</td></tr>
^
Desktop/faq.xml:910: parser error : Opening and ending tag mismatch: img line 910 and a
mages/tek-gentoo.gif" width="125" height="125" alt="Tek Alchemy" border="0"></a>
^
Desktop/faq.xml:911: parser error : Opening and ending tag mismatch: a line 910 and td
</td></tr>
^
Desktop/faq.xml:911: parser error : Opening and ending tag mismatch: td line 909 and tr
</td></tr>
^
Desktop/faq.xml:913: parser error : Opening and ending tag mismatch: img line 913 and a
s/sponsors/sevenl.gif" width="125" height="144" alt="SevenL.net
" border="0"></a>
^
Desktop/faq.xml:914: parser error : Opening and ending tag mismatch: a line 913 and td
</td></tr>
^
Desktop/faq.xml:914: parser error : Opening and ending tag mismatch: td line 912 and tr
</td></tr>
^
Desktop/faq.xml:916: parser error : Opening and ending tag mismatch: img line 916 and a
es/phpa-gentoo.gif" width="125" height="144" alt="php|architect" border="0"></a>
^
Desktop/faq.xml:917: parser error : Opening and ending tag mismatch: a line 916 and td
</td></tr>
^
Desktop/faq.xml:917: parser error : Opening and ending tag mismatch: td line 915 and tr
</td></tr>
^
Desktop/faq.xml:931: parser error : Opening and ending tag mismatch: tr line 915 and table
</table></td>
^
Desktop/faq.xml:931: parser error : Opening and ending tag mismatch: tr line 912 and td
</table></td>
^
Desktop/faq.xml:932: parser error : Opening and ending tag mismatch: tr line 906 and table
</tr></table></td></tr>
^
Desktop/faq.xml:932: parser error : Opening and ending tag mismatch: input line 902 and td
</tr></table></td></tr>
^
Desktop/faq.xml:932: parser error : Opening and ending tag mismatch: input line 902 and tr
</tr></table></td></tr>
^
Desktop/faq.xml:936: parser error : Opening and ending tag mismatch: input line 902 and table
</table></body>
^
Desktop/faq.xml:936: parser error : Opening and ending tag mismatch: input line 902 and body
</table></body>
^
Desktop/faq.xml:937: parser error : Opening and ending tag mismatch: input line 902 and html
</html>
^
Desktop/faq.xml:938: parser error : Premature end of data in tag input line 902
^
Desktop/faq.xml:938: parser error : Premature end of data in tag form line 901
^
Desktop/faq.xml:938: parser error : Premature end of data in tag td line 898
^
Desktop/faq.xml:938: parser error : Premature end of data in tag tr line 898
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 895
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 895
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 893
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 893
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 893
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 891
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 891
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 891
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 889
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 889
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 889
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 887
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 887
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 887
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 885
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 885
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 885
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 883
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 883
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 883
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 881
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 881
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 881
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 879
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 879
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 879
^
Desktop/faq.xml:938: parser error : Premature end of data in tag p line 877
^
Desktop/faq.xml:938: parser error : Premature end of data in tag td line 877
^
Desktop/faq.xml:938: parser error : Premature end of data in tag tr line 877
^
Desktop/faq.xml:938: parser error : Premature end of data in tag table line 870
^
Desktop/faq.xml:938: parser error : Premature end of data in tag td line 870
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 852
^
Desktop/faq.xml:938: parser error : Premature end of data in tag br line 19
^
Desktop/faq.xml:938: parser error : Premature end of data in tag td line 18
^
Desktop/faq.xml:938: parser error : Premature end of data in tag tr line 17
^
Desktop/faq.xml:938: parser error : Premature end of data in tag table line 17
^
Desktop/faq.xml:938: parser error : Premature end of data in tag td line 17
^
Desktop/faq.xml:938: parser error : Premature end of data in tag tr line 17
^
Desktop/faq.xml:938: parser error : Premature end of data in tag tr line 16
^
Desktop/faq.xml:938: parser error : Premature end of data in tag table line 15
^
Desktop/faq.xml:938: parser error : Premature end of data in tag body line 15
^
Desktop/faq.xml:938: parser error : Premature end of data in tag link line 9
^
Desktop/faq.xml:938: parser error : Premature end of data in tag link line 8
^
Desktop/faq.xml:938: parser error : Premature end of data in tag link line 7
^
Desktop/faq.xml:938: parser error : Premature end of data in tag link line 6
^
Desktop/faq.xml:938: parser error : Premature end of data in tag link line 5
^
Desktop/faq.xml:938: parser error : Premature end of data in tag meta line 4
^
Desktop/faq.xml:938: parser error : Premature end of data in tag head line 3
^
Desktop/faq.xml:938: parser error : Premature end of data in tag html line 2
^
我记得以前xml用的dtd不是这个,在翻handbook的时候。不知道是不是这个原因???
BTW:我检查了好几篇,都是一样的错误,虽然在浏览器里看到的没啥,但是总觉得不爽。
--
Be yourself.