completion broken - unable to add XHTML validation header

Asked by dented42

i am unable to use completion, everytime i try, i get the following:

<snippet>
There is currently no DTD specified for the buffer.
This makes XHTML completion impossible. You can add a fictive XHTML validation header that sets the DTD to XHTML. This will not be inserted in the buffer but completion and XHTML validation will assume it is there so both error checking and completion will work.

Do you want to add a fictive XHTML validation header? (y or n)
</snippet>

I press 'y' and it says:
<snippet>
Using Vacuous Schema
</snippet>

then I try to use completion, and i get the same thing.

the strange thing is that, i am using the 'template' that you get when you M-TAB on an empty buffer, which seems to have a valid header already on it.

the code in the template is thus :
<snippet>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title></title>
  </head>
  <body>
  </body>
</html>
</snippet>

so my question is, what on earth is going on?

Question information

Language:
English Edit question
Status:
Solved
For:
nXhtml Edit question
Assignee:
No assignee Edit question
Solved by:
dented42
Solved:
Last query:
Last reply:
Revision history for this message
dented42 (dented42) said :
#1

never mind, i did a stupid thing.

instead of appending a path to the variable 'rng-schema-locating-files' , I set it to a list containing a path, thereby wiping out what it was previously, therfore emacs didn't know where to find the xhtml schema.

i shall now bow my head in shame.