Niels Grundtvig Nielsen wrote:
> 
> Temporal context <vbg> I _think_ I've worked out that:
> 
> 1. clicking on Validate with a brand-new file gives the error message;
> reasonable, as there is no default/auto-generated ID
> 2. clicking on Validate with an _unsaved_ file with a valid ID gives the
> error message; perhaps less reasonable
> 3. clicking on Validate after saving a file with a valid ID does not
> give the error message; very reasonable!

There is strictly no difference between explicitly invoking Validate and
automatically invoking Validate when you save your document.

My guess is that you do what follows without really noticing it:
[1] You type the value of the "id" attribute in the Attribute tool.
[2] You click on the Validate button (or use Tools|Check Validity).

You get the error message because in fact your element has *no* "id"
attribute yet: you forgot to press the "Enter" key after typing the
value of the attribute.

In a nutshell, when you type the value of an attribute, do not forget to
press the "Enter" key. On the other hand, do no bother explicitly
validating what you have done: if what you have typed is invalid,
pressing the the "Enter" key will display a dialog box telling you so.


Reply via email to