Validating HTML5 non-XML syntax

<oXygen/> general issues.
maglid
Posts: 46
Joined: Mon Sep 28, 2009 8:10 am

Validating HTML5 non-XML syntax

Post by maglid » Tue Oct 25, 2016 7:03 am

Using Oxygen 18.0.

I work with a lot of HTML5 documents these days and I want to be able to validate them in oxygen, or at least pretty-print them. But pretty-print fails because it does not like the non-XML HTML5 syntax. I don't want to have to XML-ize all the HTML5 I work with. Is there some way to do this? I found several topics on this from past years, and they all seem to say "use XML syntax."

I believe the W3C has a validator for HTML5, I know the guy who wrote it, and I think it's in Java.

Thanks,
Mark

adrian
Posts: 2617
Joined: Tue May 17, 2005 4:01 pm

Re: Validating HTML5 non-XML syntax

Post by adrian » Tue Oct 25, 2016 7:47 am

Hi,

There is no way to pretty print or validate HTML5 (non-XML) in Oxygen as of v18.1, if that's what you are asking.
If you have a third party validator, you can configure it in Oxygen, either as an external tool or as a custom validation engine.

I've submitted a request on our issue tracking tool for HTML5 validation.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

maglid
Posts: 46
Joined: Mon Sep 28, 2009 8:10 am

Re: Validating HTML5 non-XML syntax

Post by maglid » Wed Oct 26, 2016 8:09 pm

Thanks for the information, Adrian. I might try setting up the W3C validator with Oxygen. For reference, the code for this validator is here:

https://validator.w3.org/source/
https://github.com/w3c/markup-validator

Regards,
Mark

Oleksii
Posts: 53
Joined: Wed Jul 19, 2017 6:04 pm
Location: Austria
Contact:

Re: Validating HTML5 non-XML syntax

Post by Oleksii » Tue Oct 29, 2019 8:49 pm

Hi, have been added a validation option in the meantime?
(oXygen version 20.1)

adrian
Posts: 2617
Joined: Tue May 17, 2005 4:01 pm

Re: Validating HTML5 non-XML syntax

Post by adrian » Wed Oct 30, 2019 12:31 pm

Hi,

HTML 5 validation based on the W3C HTML Validator has been implemented since v21.1.
What's New in Oxygen XML Editor 21.1
Oxygen includes a built-in validator used for validating HTML documents. It is based upon the W3C HTML Validator and the HTML documents are validated against the W3C HTML5 specification.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply