Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion XHTML / HTML
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric B. Bednarz  
View profile  
 More options Oct 28 2004, 7:40 pm
Newsgroups: alt.html
From: Eric B. Bednarz <bedn...@fahr-zur-hoelle.org>
Date: Fri, 29 Oct 2004 01:40:49 +0200
Local: Thurs, Oct 28 2004 7:40 pm
Subject: Re: XHTML / HTML

Spartanicus <m...@privacy.net> writes:
> Editing the existing Strict DTD so that it requires elements to be
> closed is easy (took me five minutes). Regarding mandatory quoting of
> attributes I haven't managed that, afaics this isn't part of the DTD. If
> anyone knows how to do that please share.

For starters, you will have to have a local validating system to be able
to pass a customized SGML declaration to the parser (theoretically you
could include it in the document entity itself, but let's stop kidding).

Get binaries or source at:

<http://www.jclark.com/sp/howtoget.htm>

Especially if you need to be able to fetch external subsets from virtual
hosts you may prefer to use lq-nsgmls instead:

<http://www.htmlhelp.com/tools/validator/offline/>

Grab the SGML declaration of HTML 4.01 and locate under MINIMIZE

  SHORTTAG YES

and replace that with

  SHORTTAG
    STARTTAG
      EMPTY    NO
      UNCLOSED NO
      NETENABL NO
    ENDTAG
      EMPTY    NO
      UNCLOSED NO
    ATTRIB
      DEFAULT  YES
      OMITNAME NO
      VALUE    NO

Set up a catalog:

SGMLDECL path/to/custom.decl
DOCTYPE  HTML path/to/custom.dtd

If you have (X)Emacs (if not, why not?) adjust the initialisation file
for neat integration with PSGML.

--
| )  Pił Cabernet,
-(   meno Internet.
| )  http://bednarz.nl/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google