Page 1 of 1
Validation error with standard HTML entities
Posted: Thu Mar 21, 2024 6:42 pm
by Frank Ralf
Hi,
When using an HTML entity like in an HTML file, Oxygen complains that the "entity was referenced but not declared". I would not expect such a message for a standard HTML entity. Is there a validation setting in Oxygen that I might have accidentally messed with?
Best regards,
Frank
Re: Validation error with standard HTML entities
Posted: Fri Mar 22, 2024 9:24 am
by tavy
Hello Frank,
Unfortunately II cannot reproduce the behavior that you describe. I tested with Oxygen XML Editor version 26.0. Probably you have an XHTML document or you validate the HTML with the XHTML schemas. If possible, could you provide us with more details or send over a sample file for further inspection?
Best Regards,
Octavian
Re: Validation error with standard HTML entities
Posted: Fri Mar 22, 2024 12:02 pm
by Frank Ralf
Hi Octavian,
Thanks for looking into this. I used an old project file and suspect that it messed with some settings. I will check again and report back.
Best regards,
Frank
Re: Validation error with standard HTML entities
Posted: Fri Oct 04, 2024 7:34 pm
by Frank Ralf
Hi,
I have stumbled again over this problem. I am using the latest version of Oxygen Editor 26.1. I tested this with the following simple document.
Code: Select all
<!DOCTYPE html>
<html>
<head>
<title>Entity test</title>
</head>
<body>
<p>This is a standard HTML entity: &nbps; .</p>
</body>
</html>
Depending whether the file is declared as HTML or XHMTL I get the following error messages.
HTML
Error message:
“ &” did not start a character reference. (“&” probably should have been escaped as “&”.)
Engine: W3C HTML Validator
XHTML
Error message:
The entity "nbps" was referenced, but not declared.
Engine: Jing
I have tested this with a new project file and have reset all preferences to their default settings.
Best regards,
Frank
Re: Validation error with standard HTML entities
Posted: Mon Oct 07, 2024 1:32 pm
by teo
Hi Frank,
It's just a typing error.
You intended to write of course, but you typed &nbps; instead.
Kind regards,
Teo
Re: Validation error with standard HTML entities
Posted: Mon Oct 07, 2024 2:07 pm
by Frank Ralf
Hi Teo,
Thanks for spotting that. That was a typo from my side when creating the simple test file. The original HTML files from our customer contain the correct entity - so the problem persists. I will check with my colleague whether he can reproduce the error. And how our Oxygen configurations might differ. I will report back!
Frank