Check each page according to (strict) DOCTYPE?

For technical support for all editions of CSE HTML Validator. Includes bug reports.

Check each page according to (strict) DOCTYPE?

Postby anionic » Tue Jun 29, 2010 12:45 pm

How can I configure CSE 9 (or 10) to validate each page (in browser mode) according to its DOCTYPE?

NB all the pages I want to check are dynamic (from JSPs) and either HTML 4.01 Strict or XHTML 1.0 Strict, and I tend now to use the W3C validator, which takes each page as it comes. I miss the additional constructive criticisms of CSE, but seem to have to configure it globally for XHTML or not, which is no good for me. Am I missing something?
anionic
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 8
Joined: Wed Oct 31, 2007 12:23 pm
Location: Staffordshire, UK

Re: Check each page according to (strict) DOCTYPE?

Postby Albert Wiersch » Tue Jun 29, 2010 2:32 pm

Hello,

Have you tried integrating nsgmls messages into the validation results? In the Nsgmls options tab or page, select the option to enable nsgmls messages in the validation results.

From the documentation:
Nsgmls is a third party SGML parser and validator that allows DTD based validation. Nsgmls is included in SP, a free, object-oriented toolkit for SGML parsing and entity management. Some users may wish to validate their documents using nsgmls, so it has been integrated into CSE HTML Validator Std/Pro v8.0 and above.

To distinguish nsgmls messages from other messages, the string "[nsgmls]" is prepended to the nsgmls messages.


I hope this helps!
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: Check each page according to (strict) DOCTYPE?

Postby anionic » Mon Jul 12, 2010 12:14 pm

Hello Albert

Yes I had switched on the nsgmls messages, and HTML Tidy too. I have discovered what my issue was.

I had checked "Require quick close", thinking this would warn me if an XHTML element had an end tag when a quick close would do (?), but this gives false positive errors in HTML pages, e.g. 'The "br" tag must be closed with a slash' while doing nothing useful (?) for XHTML pages.

So I have unchecked it, and am fairly confident that my config mimics the W3C Validator's for both HTML 4.01 Strict and XHTML 1.0 Strict pages, while being a lot more helpful and convenient of course ;-)

NB what does "Require quick close" mean?
anionic
Rank 0 - Newcomer
Rank 0 - Newcomer
 
Posts: 8
Joined: Wed Oct 31, 2007 12:23 pm
Location: Staffordshire, UK

Re: Check each page according to (strict) DOCTYPE?

Postby Albert Wiersch » Tue Jul 13, 2010 10:44 am

anionic wrote:I had checked "Require quick close", thinking this would warn me if an XHTML element had an end tag when a quick close would do (?), but this gives false positive errors in HTML pages, e.g. 'The "br" tag must be closed with a slash' while doing nothing useful (?) for XHTML pages.

So I have unchecked it, and am fairly confident that my config mimics the W3C Validator's for both HTML 4.01 Strict and XHTML 1.0 Strict pages, while being a lot more helpful and convenient of course ;-)

NB what does "Require quick close" mean?


Hello,

The "Require quick close" option in V9 (in V10 it's called "Require XHTML empty element syntax (<br />) for tags without an end tag") causes error messages to be generated for elements with no end tag and that are not in the empty element form (<tagname ... />). This is for non-XML type documents like HTML, because with XHTML, this option is automatically enabled.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2435
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest