Validation error with standard HTML entities

Oxygen general issues.
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Validation error with standard HTML entities

Post 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
Frank Ralf
parson AG
www.parson-europe.com
tavy
Posts: 388
Joined: Thu Jul 01, 2004 12:29 pm

Re: Validation error with standard HTML entities

Post 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
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Validation error with standard HTML entities

Post 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
Frank Ralf
parson AG
www.parson-europe.com
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Validation error with standard HTML entities

Post 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 “&amp;”.)
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
Frank Ralf
parson AG
www.parson-europe.com
teo
Posts: 81
Joined: Wed Aug 30, 2017 3:56 pm

Re: Validation error with standard HTML entities

Post by teo »

Hi Frank,

It's just a typing error.
You intended to write &nbsp; of course, but you typed &nbps; instead.

Kind regards,
Teo
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
Frank Ralf
Posts: 482
Joined: Thu Jan 23, 2014 2:29 pm
Location: Hamburg
Contact:

Re: Validation error with standard HTML entities

Post 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 &nbsp; - 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
Frank Ralf
parson AG
www.parson-europe.com
Post Reply