Lennart Borgman wrote:
> I have a file that looks ok in nxml-mode, but that
> http://validator.w3.org/ says is wrong. The page is at
>
> http://ourcomments.org/Emacs/w32-build-emacs.html
>
> The file begins with:
>
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
That DOCTYPE line is incorrect. The "xhtml11.dtd" bit is called the
system identifier and is an URL where the DTD can be found. So it means
that you have to have the DTD lying around in the same directory for
that to be a valid DOCTYPE.
> <html xmlns="http://www.w3.org/1999/xhtml">
>
> The validator at w3 complains that
>
> http://ourcomments.org/Emacs/xhtml11.dtd
> <http://ourcomments.org/Emacs/xhtml11.dtd>
> What to do: *The link is broken. Fix it NOW!*
> Response status code: 404
> Response message: Not Found
> Line: 2
>
> What is wrong here?
It's saying that it can't find the DTD in the location you specified.
According to <http://www.w3.org/TR/xhtml11/>, a correct declaration
which works anywhere will be:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The reason that nxml-mode doesn't complain about this is that it ignores
DOCTYPE lines (other than checking them for syntactic validity).
-Dom
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/emacs-nxml-mode/
<*> To unsubscribe from this group, send an email to:
emacs-nxml-mode-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|