
September 5th, 2008, 06:45 PM
| | | Validating against a higher standard
The W3C Validator is a great help, as far as it goes. However, I'm looking
for something stricter. My coding style does not allow for implicit
termination of an element; my intention and desire is to explicitly
terminate every element.
Just last night, it took me two hours to track down some funny behavior. It
turned out to be caused by entries in a definition list that looked like:
<dt>Term<dt>
<dd>Definition</dd>
A few years back, I was bit by Mosaic's behavior when <tdelements
weren't explictly terminated with a </td>.
It takes good eyesight and good concentration to find things like this,
and since these are apparently valid html, the W3C validator doesn't
help as much as I'd like.
Is there a tool available someplace that will flag failure to explictly
terminate elements that aren't required by the standard to be explicitly
terminated?
--
Michael F. Stemper
#include <Standard_Disclaimer>
If it's "tourist season", where do I get my license? | 
September 5th, 2008, 06:55 PM
| | | Re: Validating against a higher standard
Michael Stemper <mstemper@walkabout.empros.comwrote:
: A few years back, I was bit by Mosaic's behavior when <tdelements
: weren't explictly terminated with a </td>.
The W3C Validator has been catching those for me.
--thelma
: Michael F. Stemper | 
September 5th, 2008, 07:05 PM
| | | Re: Validating against a higher standard
Thelma Roslyn Lubkin wrote: Quote:
Michael Stemper <mstemper@walkabout.empros.comwrote:
: A few years back, I was bit by Mosaic's behavior when <tdelements
: weren't explictly terminated with a </td>.
>
The W3C Validator has been catching those for me.
--thelma
| You must be validating your code as XHTML. XHTML, like all XML
languages, requires explicit start and end tags. Under non-XML HTML, the
missing </tdis legal, so there isn't an error for the validator to catch. | 
September 5th, 2008, 09:05 PM
| | | Re: Validating against a higher standard
In our last episode, <g9rqlk$rio$1@aioe.org>, the lovely and talented
Michael Stemper broadcast on comp.infosystems. www.authoring.html: Quote:
The W3C Validator is a great help, as far as it goes. However, I'm looking
for something stricter. My coding style does not allow for implicit
termination of an element; my intention and desire is to explicitly
terminate every element.
| Install nsgmls from James Clark's SP or the OpenSp package. Get a copy of
whatever DTD you are using. Edit it so it requires closing tags. With a
little supervision, you can do this with search-and-replace to change
<space>O<spacewith <space>-<spaceexcept where O is followed by EMPTY. If
you cannot read a DTD by eyeball, you may have to brush up to assure this
gets done correctly. Use switches in nsgmls to make it use the local (doped)
copy of the DTD instead of the one specified in the DOCTYPE (it would fetch
the non-doped from the web if it could). Throw away the output and look at
the errors. (There won't be any if al is well.)
You can use to Tidy to add closing tags, but Tidy is not a validator and
does some other stuff to markup you may not want. Quote:
Just last night, it took me two hours to track down some funny behavior. It
turned out to be caused by entries in a definition list that looked like:
<dt>Term<dt>
<dd>Definition</dd>
| Quote:
A few years back, I was bit by Mosaic's behavior when <tdelements
weren't explictly terminated with a </td>.
| Quote:
It takes good eyesight and good concentration to find things like this,
and since these are apparently valid html, the W3C validator doesn't
help as much as I'd like.
| Quote:
Is there a tool available someplace that will flag failure to explictly
terminate elements that aren't required by the standard to be explicitly
terminated?
| --
Lars Eighner <http://larseighner.com/ usenet@larseighner.com
War on Terrorism: Treat Readers like Mushrooms
"If the story needs rewriting to play down the civilian casualties, DO IT."
-Memo, _Panama City_ (FL) _News Herald_ | 
September 5th, 2008, 11:05 PM
| | | Re: Validating against a higher standard
Harlan Messinger <hmessinger.removethis@comcast.netwrote:
: Thelma Roslyn Lubkin wrote:
:Michael Stemper <mstemper@walkabout.empros.comwrote:
:: A few years back, I was bit by Mosaic's behavior when <tdelements
:: weren't explictly terminated with a </td>.
:>
: The W3C Validator has been catching those for me.
: --thelma
: You must be validating your code as XHTML. XHTML, like all XML
: languages, requires explicit start and end tags. Under non-XML HTML, the
: missing </tdis legal, so there isn't an error for the validator to catch.
Yes, you're right. --thelma | 
September 6th, 2008, 12:35 AM
| | | Re: Validating against a higher standard
In article <g9rqlk$rio$1@aioe.org>, mstemper@walkabout.empros.com (Michael Stemper) wrote: Quote:
The W3C Validator is a great help, as far as it goes. However, I'm looking
for something stricter. My coding style does not allow for implicit
termination of an element; my intention and desire is to explicitly
terminate every element.
>
Just last night, it took me two hours to track down some funny behavior. It
turned out to be caused by entries in a definition list that looked like:
<dt>Term<dt>
<dd>Definition</dd>
>
A few years back, I was bit by Mosaic's behavior when <tdelements
weren't explictly terminated with a </td>.
>
It takes good eyesight and good concentration to find things like this,
and since these are apparently valid html, the W3C validator doesn't
help as much as I'd like.
>
Is there a tool available someplace that will flag failure to explictly
terminate elements that aren't required by the standard to be explicitly
terminated?
| There are a number of ways of going on this one. One way is to use a
text editor that can be set to give you "warnings" of missing closing
tags (even though it is strictly not illegal). My BBEdit (on a Mac) does
this and most usefully!
The other way is to create your own doctype using standard ones with
whatever enhancements you want.
Perhaps you might care to browse through:
<http://validator.w3.org/docs/help.html>
--
dorayme | 
September 6th, 2008, 02:05 AM
| | | Re: Validating against a higher standard
On 2008-09-05, Michael Stemper wrote: Quote:
The W3C Validator is a great help, as far as it goes. However, I'm looking
for something stricter. My coding style does not allow for implicit
termination of an element; my intention and desire is to explicitly
terminate every element.
>
Just last night, it took me two hours to track down some funny behavior. It
turned out to be caused by entries in a definition list that looked like:
<dt>Term<dt>
<dd>Definition</dd>
>
A few years back, I was bit by Mosaic's behavior when <tdelements
weren't explictly terminated with a </td>.
>
It takes good eyesight and good concentration to find things like this,
and since these are apparently valid html, the W3C validator doesn't
help as much as I'd like.
>
Is there a tool available someplace that will flag failure to explictly
terminate elements that aren't required by the standard to be explicitly
terminated?
| I find that GNU emacs's HTML mode indentation works well for this.
If tags are not closed, the indentation doesn't work properly. It
still requires some searching, but at least you know when there's
a missing tag.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
================================================== =================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress) | 
September 6th, 2008, 01:05 PM
| | | Re: Validating against a higher standard
Lars Eighner wrote: Quote: Quote:
>The W3C Validator is a great help, as far as it goes. However, I'm
>looking for something stricter. My coding style does not allow for
>implicit termination of an element; my intention and desire is to
>explicitly terminate every element.
| >
Install nsgmls from James Clark's SP or the OpenSp package.
| You don't need that. Any validator will do, such as the W3C validator. (Of
course, I'm not referring to products other than validators sold as
validators.) Quote:
Get a copy of whatever DTD you are using. Edit it so it requires closing
tags.
| Well, that's the simple way, though not trivial, but good instructions for
this special case were given. And then you just upload the DTD file on a web
server and refer to it in your doctype declaration. More on this: http://www.cs.tut.fi/~jkorpela/html/own-dtd.html
Yucca | 
September 6th, 2008, 02:55 PM
| | | Re: Validating against a higher standard
In comp.infosystems. www.authoring.html on Fri, 5 Sep 2008 19:35:48
+0200 (CEST), Michael Stemper <mstemper@walkabout.empros.comwrote: Quote:
The W3C Validator is a great help, as far as it goes. However, I'm looking
for something stricter. My coding style does not allow for implicit
termination of an element; my intention and desire is to explicitly
terminate every element.
>
Just last night, it took me two hours to track down some funny behavior. It
turned out to be caused by entries in a definition list that looked like:
<dt>Term<dt>
<dd>Definition</dd>
>
A few years back, I was bit by Mosaic's behavior when <tdelements
weren't explictly terminated with a </td>.
>
It takes good eyesight and good concentration to find things like this,
and since these are apparently valid html, the W3C validator doesn't
help as much as I'd like.
>
Is there a tool available someplace that will flag failure to explictly
terminate elements that aren't required by the standard to be explicitly
terminated?
| pcregrep -M '(<[^<>]+>)[^<>]+\1' <filename>
This will catch simple examples such as the one you've provided. It
won't catch nested examples, such as "<p><em>test</em><p>" and it will
catch false positives such as "<br><br>", but perhaps it's a start.
Any other variety of grep that offers multi-line matching will work
as well.
--
PJR :-)
slrn newsreader (v0.9.9): http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator | 
September 6th, 2008, 05:05 PM
| | | Re: Validating against a higher standard
On 2008-09-06, Peter J Ross <pjr@example.invalidwrote: Quote:
In comp.infosystems.www.authoring.html on Fri, 5 Sep 2008 19:35:48
+0200 (CEST), Michael Stemper <mstemper@walkabout.empros.comwrote:
| [...] Quote: Quote:
>Is there a tool available someplace that will flag failure to explictly
>terminate elements that aren't required by the standard to be explicitly
>terminated?
| >
pcregrep -M '(<[^<>]+>)[^<>]+\1' <filename>
>
This will catch simple examples such as the one you've provided. It
won't catch nested examples, such as "<p><em>test</em><p>" and it will
catch false positives such as "<br><br>", but perhaps it's a start.
>
Any other variety of grep that offers multi-line matching will work
as well.
| Using a custom DTD seems to me like the best idea.
But if you were to use something like grep, this sounds like a job for
sgrep.
e.g.:
$ sgrep -o "Unclosed <pat %f:%i" '"<p>" not in inner("<p>" .. "</p>")' *.html
%i prints out a character position not a line-number, so in vim for
example you'd use the :go command to find them.
This will work reliably, but not for ps with attributes, <p class="foo">
etc.
Sgrep would be improved in my opinion if you could use regular
expressions for what it calls "phrases" in its grammar.
Maybe you could build up expressions with "chars" but I get this error:
Parse error in command line expression column 1 :
'chars' disabled until I figure out how to fix it (JJ)
Probably better to do a hybrid approach: pre-process the input first to
remove all attributes from all elements with a regex and then look for
the unclosed <p>s, <td>s etc. with sgrep. | 
September 6th, 2008, 06:15 PM
| | | Re: Validating against a higher standard
On 2008-09-06, Peter J Ross <pjr@example.invalidwrote:
[...] Quote: Quote:
>Is there a tool available someplace that will flag failure to explictly
>terminate elements that aren't required by the standard to be explicitly
>terminated?
| | There is now: http://www.tidraso.co.uk/code/checkUnclosed.py.gz | 
September 6th, 2008, 06:15 PM
| | | Re: Validating against a higher standard
On 09/05/08 10:35 am, Michael Stemper wrote: Quote:
The W3C Validator is a great help, as far as it goes. However, I'm looking
for something stricter. My coding style does not allow for implicit
termination of an element; my intention and desire is to explicitly
terminate every element.
>
Just last night, it took me two hours to track down some funny behavior. It
turned out to be caused by entries in a definition list that looked like:
<dt>Term<dt>
<dd>Definition</dd>
>
| Have it validate to XHTML Strict. The W3C validator allows you to select
which DTD to test the markup.
XHTML requires closure for all elements. It also requires all tag and
attribute names in lower case, and attribute values in quotes.
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email) | 
September 6th, 2008, 06:25 PM
| | | Re: Validating against a higher standard
In comp.infosystems. www.authoring.html message <g9rqlk$rio$1@aioe.org>,
Fri, 5 Sep 2008 19:35:48, Michael Stemper <mstemper@walkabout.empros.com Quote:
>Is there a tool available someplace that will flag failure to explictly
>terminate elements that aren't required by the standard to be explicitly
>terminated?
>
| It should be easy enough to write a RegExp (or RegExps) to find for
removal all known elements that don't use termination (e.g. <br>).
Having done that, it should be easy enough to write a RegExp that finds
for removal all instances of (ignore whitespace)
< word anything anything-without-< < / same-word >
and to use it repeatedly until there are no more matches.
Assuming that you put spaces around relational operators, and encode
then in strings, in embedded JavaScript, then it seems at first thought
that a satisfactory document will yield an empty string, and a failing
one will yield a string from which at least one error can easily be
spotted.
Alternatively, a program could be written in a general language.
I might try it; but don't hold your breath waiting.
Since TIDY inserts terminations but alters whitespace, one might write a
tool to take a document and reduce all whitespaces to single spaces.
Apply that tool to the original and tidied documents. Then do a binary
comparison (DOS COMP) to find the first difference. UNTESTED.
I use TIDY very frequently; but (from a batch file) as a checker only,
since I don't want layout changed.
One might also look, though maybe not needed in this context, for
elements which illegally contain, directly or indirectly, others of
themselves.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036) | 
September 6th, 2008, 08:05 PM
| | | Re: Validating against a higher standard
In our last episode, <Iduwk.61451$_03.43398@reader1.news.saunalahti.fi> , the
lovely and talented Jukka K. Korpela broadcast on
comp.infosystems. www.authoring.html: Quote: Quote: Quote:
>>The W3C Validator is a great help, as far as it goes. However, I'm
>>looking for something stricter. My coding style does not allow for
>>implicit termination of an element; my intention and desire is to
>>explicitly terminate every element.
| >>
>Install nsgmls from James Clark's SP or the OpenSp package.
| | Quote:
You don't need that. Any validator will do, such as the W3C validator. (Of
course, I'm not referring to products other than validators sold as
validators.)
| I never figured out how to stream the document in my editor through
W3C and send the errors to another buffer in the editor. Installing an SP
package is much simpler and easier. Of course it cannot generate warnings
for HTML requirements that cannot be expressed expressed as sgml. But it
more than makes up for that in being simple to incorporate in make files,
other batch processing, and even in the open and save keystrokes of
an editor, so documents are checked whenever they are opened, whenever they
are saved, or at any time they are open in the editor. Quote: Quote:
>Get a copy of whatever DTD you are using. Edit it so it requires closing
>tags.
| | Quote:
Well, that's the simple way, though not trivial, but good instructions for
this special case were given. And then you just upload the DTD file on a web
server and refer to it in your doctype declaration.
| Using a local doped DTD it is unnecessary to mess with the DOCTYPE. --
Lars Eighner <http://larseighner.com/ usenet@larseighner.com
War on Terrorism: Camp Follower
"I am ... a total sucker for the guys ... with all the ribbons on and stuff,
and they say it's true and I'm ready to believe it. -Cokie Roberts,_ABC_ | 
September 6th, 2008, 08:55 PM
| | | Re: Validating against a higher standard
Lars Eighner wrote: Quote:
I never figured out how to stream the document in my editor through
W3C and send the errors to another buffer in the editor. Installing
an SP package is much simpler and easier.
| It may suit your needs, but for an ordinary HTML author, that's
unnecessarily complicated. For all that we can know, he might even lack the
privileges required for installing any software in the computer he uses (at
work). Quote: |
Using a local doped DTD it is unnecessary to mess with the DOCTYPE.
| The doctype declaration is the normal SGML (and XML) way of specifying the
syntax being used. It works globally, so that you can pass the document to
_any_ validating parser.
You need a doctype declaration anyway, to keep browsers away from Quirks
Mode, so why not make it declare the syntax you are trying to use? This
approach also lets you use _different_ syntax definitions, e.g. normally
using some "stricter than Strict" but using something else when really
needed (say, when you need to use a Transitional feature for some special
reason, or markup like <wbr>).
Yucca | 
September 6th, 2008, 11:15 PM
| | | Re: Validating against a higher standard
On Sat, 6 Sep 2008 22:47:52 +0300, Jukka K. Korpela <jkorpela@cs.tut.fiwrote: Quote:
Lars Eighner wrote:
> Quote:
>I never figured out how to stream the document in my editor through
>W3C and send the errors to another buffer in the editor. Installing
>an SP package is much simpler and easier.
| >
It may suit your needs, but for an ordinary HTML author, that's
unnecessarily complicated.
| Hm, what's complicated about typing "nsgml -s foo.html" and reading
the error messages?
I'm assuming here that imstallation is easy -- on a Debian system I
just ask for the standard packages "opensp" and "sgml-data", and
everything is set up properly for validating various kinds of HTML
(and probably other things as well). Quote:
For all that we can know, he might even lack the
privileges required for installing any software in the computer he uses (at
work).
| Yes, but you cannot assume this is the case whenever someone posts a
question. Quote: Quote: |
>Using a local doped DTD it is unnecessary to mess with the DOCTYPE.
| >
The doctype declaration is the normal SGML (and XML) way of specifying the
syntax being used. It works globally, so that you can pass the document to
_any_ validating parser.
>
You need a doctype declaration anyway, to keep browsers away from Quirks
Mode, so why not make it declare the syntax you are trying to use? This
approach also lets you use _different_ syntax definitions, e.g. normally
using some "stricter than Strict" but using something else when really
needed (say, when you need to use a Transitional feature for some special
reason, or markup like <wbr>).
| Nice in a way, but what will browsers and other tools do when your
page announces "I am not one of the known HTML variants, I am
something else and you can find my DTD over there"? Or am I missing
something?
/Jorgen
--
// Jorgen Grahn <grahn@ Ph'nglui mglw'nafh Cthulhu
\X/ snipabacken.se R'lyeh wgah'nagl fhtagn! | 
September 6th, 2008, 11:35 PM
| | | Re: Validating against a higher standard
In our last episode, <slrngc5vsg.h46.grahn+nntp@frailea.sa.invalid>, the
lovely and talented Jorgen Grahn broadcast on
comp.infosystems. www.authoring.html: Quote:
Nice in a way, but what will browsers and other tools do when your
page announces "I am not one of the known HTML variants, I am
something else and you can find my DTD over there"? Or am I missing
something?
| It appears to me that some browsers do have parsers and using their
tools you can find a document listing with errors all in red and all.
However, it is far from clear to me that they can parse against an arbitrary
DTD or that they really parse as they render. If know one knows, maybe
I will do some experiments since I have the doped DTD and a testing
server set up locally.
--
Lars Eighner <http://larseighner.com/ usenet@larseighner.com
War on Terrorism: The Difference Between Us and Them
"We should invade their countries, kill their leaders and
convert them to Christianity." -- Ann Coulter | 
September 7th, 2008, 05:15 PM
| | | Re: Validating against a higher standard
Jorgen Grahn wrote: Quote: |
Hm, what's complicated about typing "nsgml -s foo.html"
| Using command-line interface is complicated to most people. Using command
names that consist of consonants only makes it even stranger. Quote: |
and reading the error messages?
| Most people don't know how to read error messages, especially when the
messages are cryptic. The W3C validator and the WDG validator are familiar
to most people who care about validation, so why not use them? Quote: |
I'm assuming here that imstallation is easy
| Your assumption fails for the great majority of prospective HTML authors.
Besides, any installation is potentially complicated and risky, so you need
a _good_ reason. Who's Debian and why should we know him or her? (I know what Debian is, but
most people don't.) Quote: Quote:
>For all that we can know, he might even lack the
>privileges required for installing any software in the computer he
>uses (at work).
| >
Yes, but you cannot assume this is the case whenever someone posts a
question.
| Surely we _know_ that this _is_ the case for a considerable amount of
readers.
It's the other way around: When posting advice in an open newgroup, you
should not assume that readers can (and will) install any new software. An
answer that works with commonly used software is preferable unless some
other approach has tangible benefits. Quote: Quote:
>You need a doctype declaration anyway, to keep browsers away from
>Quirks Mode, so why not make it declare the syntax you are trying to
>use? This approach also lets you use _different_ syntax definitions,
>e.g. normally using some "stricter than Strict" but using something
>else when really needed (say, when you need to use a Transitional
>feature for some special reason, or markup like <wbr>).
| >
Nice in a way, but what will browsers and other tools do when your
page announces "I am not one of the known HTML variants, I am
something else and you can find my DTD over there"?
| They simply set themselves to "standards" mode and start rendering. They
don't actually read the DTD, still less make use of it.
An ideal (by some criteria) browser might issue a warning to the user if the
page fails to comply with the DTD it declares. This shouldn't be a problem
to us, should it? Besides, it's pure theory, since on the Web as of now, a
very large amount of pages that declare some doctype doesn't actually comply
with it. Browsers have to be practical, so they don't care.
Using XHTML served as some flavor of XML might be different, but even then,
browsers are currently interested in well-formedness at most, and that
doesn't depend on DTDs.
Yucca | 
September 7th, 2008, 08:25 PM
| | | Re: Validating against a higher standard
On 2008-09-07, Jukka K. Korpela <jkorpela@cs.tut.fiwrote: Quote:
Jorgen Grahn wrote:
> Quote: |
>Hm, what's complicated about typing "nsgml -s foo.html"
| >
Using command-line interface is complicated to most people. Using command
names that consist of consonants only makes it even stranger.
> Quote: |
>and reading the error messages?
| >
Most people don't know how to read error messages, especially when the
messages are cryptic. The W3C validator and the WDG validator are familiar
to most people who care about validation, so why not use them?
| It's a lot more annoying having to go through a website, and then after
validating you have to match up the errors to your sources manually and
then resubmit.
Much better to have a program that you can use from your editor and that
can put the errors in your "quickfix list"-- so you can jump straight
from the error message to the line it's on, fix it and revalidate with
just one keypress. Quote: Quote: |
>I'm assuming here that imstallation is easy
| >
Your assumption fails for the great majority of prospective HTML authors.
Besides, any installation is potentially complicated and risky, so you need
a _good_ reason.
>>
Who's Debian and why should we know him or her? (I know what Debian is, but
most people don't.)
| That may be true but why keep people in the dark? There's no harm in
mentioning useful products like nsgmls and Debian-- then people can find
out more about them if they're interested. | 
September 7th, 2008, 09:05 PM
| | | Re: Validating against a higher standard
Ben C wrote: Quote: Quote:
>Most people don't know how to read error messages, especially when
>the messages are cryptic. The W3C validator and the WDG validator
>are familiar to most people who care about validation, so why not
>use them?
| >
It's a lot more annoying having to go through a website, and then
after validating you have to match up the errors to your sources
manually and then resubmit.
| You can ask a validator to list the source, with line numbers, if your
favorite HTML source editor does not show line numbers or you don't know how
to view them. Quote:
There's no harm in
mentioning useful products like nsgmls and Debian-- then people can
find out more about them if they're interested.
| There is a lot of harm caused by names dropping, especially when not
accompanied with simple English explanation of what the names refer to. It's
absurd to get interested in a name just because someone mentions it. Unless
that someone is your favorite guru, of course, but any disciple of yours
surely already knows Debian on a first-name basis and has nsgmls for
breakfast.
Yucca | 
September 7th, 2008, 09:55 PM
| | | Re: Validating against a higher standard
In our last episode,
<32Twk.62158$_03.31848@reader1.news.saunalahti.fi> ,
the lovely and talented Jukka K. Korpela
broadcast on comp.infosystems. www.authoring.html: Quote: Quote: |
>Hm, what's complicated about typing "nsgml -s foo.html"
| | Quote:
Using command-line interface is complicated to most people. Using command
names that consist of consonants only makes it even stranger.
| Perhaps "most people" shouldn't be attempting html. Quote: Quote: |
>and reading the error messages?
| | Quote:
Most people don't know how to read error messages, especially when the
messages are cryptic. The W3C validator and the WDG validator are familiar
to most people who care about validation, so why not use them?
| See above. Quote: Quote: |
>I'm assuming here that imstallation is easy
| | Quote:
Your assumption fails for the great majority of prospective HTML authors.
Besides, any installation is potentially complicated and risky, so you need
a _good_ reason.
| If typing make clean && make install is beyond someone's powers, perhaps
that someone should see above.
--
Lars Eighner <http://larseighner.com/ usenet@larseighner.com
My last cow just died, so I won't need your bull anymore. | 
September 10th, 2008, 07:45 AM
| | | Re: Validating against a higher standard
Fri, 5 Sep 2008 19:35:48 +0200 (CEST), /Michael Stemper/: Quote:
Just last night, it took me two hours to track down some funny behavior. It
turned out to be caused by entries in a definition list that looked like:
<dt>Term<dt>
<dd>Definition</dd>
>
Is there a tool available someplace that will flag failure to explictly
terminate elements that aren't required by the standard to be explicitly
terminated?
| You could use XHTML for authoring then use an identity-copy XSL
transformation which outputs the source as HTML prior publishing it.
You could further benefit from employing XSLT as template facility.
--
Stanimir | 
September 12th, 2008, 04:35 AM
| | | Re: Validating against a higher standard
"Michael Stemper" <mstemper@walkabout.empros.comwrote in message
news:g9rqlk$rio$1@aioe.org... Quote:
The W3C Validator is a great help, as far as it goes. However, I'm looking
for something stricter. My coding style does not allow for implicit
termination of an element; my intention and desire is to explicitly
terminate every element.
| Try our product, CSE HTML Validator. I think it is exactly what you are
looking for and it's very easy to use. http://www.htmlvalidator.com/
Also see: http://www.htmlvalidator.com/htmlval...eisbetter.html
I hope this helps.
--
Albert Wiersch | 
September 12th, 2008, 05:35 AM
| | | Re: Validating against a higher standard
In article <0olyk.84183$C65.55889@en-nntp-01.dc1.easynews.com>,
"Albert Wiersch" <nospam@nospam.comwrote: Quote:
"Michael Stemper" <mstemper@walkabout.empros.comwrote in message
news:g9rqlk$rio$1@aioe.org... Quote:
The W3C Validator is a great help, as far as it goes. However, I'm looking
for something stricter. My coding style does not allow for implicit
termination of an element; my intention and desire is to explicitly
terminate every element.
| >
Try our product, CSE HTML Validator. I think it is exactly what you are
looking for and it's very easy to use. http://www.htmlvalidator.com/
>
Also see: http://www.htmlvalidator.com/htmlval...eisbetter.html
>
I hope this helps.
| Uh oh! Cue for you guys to pile in...
--
dorayme | 
September 12th, 2008, 05:55 AM
| | | Re: Validating against a higher standard
In our last episode,
<doraymeRidThis-2643FC.14302712092008@web.aioe.org>,
the lovely and talented dorayme
broadcast on comp.infosystems. www.authoring.html: Quote:
In article <0olyk.84183$C65.55889@en-nntp-01.dc1.easynews.com>,
"Albert Wiersch" <nospam@nospam.comwrote:
| Quote: Quote:
>"Michael Stemper" <mstemper@walkabout.empros.comwrote in message
>news:g9rqlk$rio$1@aioe.org... Quote:
The W3C Validator is a great help, as far as it goes. However, I'm looking
for something stricter. My coding style does not allow for implicit
termination of an element; my intention and desire is to explicitly
terminate every element.
| >>
>Try our product, CSE HTML Validator. I think it is exactly what you are
>looking for and it's very easy to use.
>http://www.htmlvalidator.com/
>>
>Also see:
>http://www.htmlvalidator.com/htmlval...eisbetter.html
>>
>I hope this helps.
| | Quote: |
Uh oh! Cue for you guys to pile in...
| Naw. I pass on the easy ones.
--
Lars Eighner <http://larseighner.com/ usenet@larseighner.com
Consider what might be fertilizing the greener grass across the fence. | 
September 12th, 2008, 05:25 PM
| | | Re: Validating against a higher standard
Albert Wiersch wrote: Quite some marketing strategy you have - selling fake products in a
discussion groups where experts regularly reveal your lies. | 
September 12th, 2008, 06:35 PM
| | | Re: Validating against a higher standard
In article <slrngc33p3.1fk8.usenet@debranded.larseighner.com> , Lars Eighner <usenet@larseighner.comwrites: Quote: |
>In our last episode, <g9rqlk$rio$1@aioe.org>, the lovely and talented Michael Stemper broadcast on comp.infosystems.www.authoring.html: | Quote: Quote:
>The W3C Validator is a great help, as far as it goes. However, I'm looking
>for something stricter. My coding style does not allow for implicit
>termination of an element; my intention and desire is to explicitly
>terminate every element.
| >
>Install nsgmls from James Clark's SP or the OpenSp package.
| Where would I find such a thing, and would I need to have a compiler? Quote: |
>You can use to Tidy to add closing tags,
| Nope, I don't want anything other than my keyboard adding anythin.
--
Michael F. Stemper
#include <Standard_Disclaimer>
If this is our corporate opinion, you will be billed for it. | 
September 12th, 2008, 06:35 PM
| | | Re: Validating against a higher standard
In article <M7Bwk.61741$_03.16579@reader1.news.saunalahti.fi> , "Jukka K. Korpela" <jkorpela@cs.tut.fiwrites: Quote: Quote:
>I never figured out how to stream the document in my editor through
>W3C and send the errors to another buffer in the editor. Installing
>an SP package is much simpler and easier.
| >
>It may suit your needs, but for an ordinary HTML author, that's
>unnecessarily complicated. For all that we can know, he might even lack the
>privileges required for installing any software in the computer he uses (at
>work).
| Web pages aren't my job; they're just a hobby.
--
Michael F. Stemper
#include <Standard_Disclaimer>
If this is our corporate opinion, you will be billed for it. | 
September 12th, 2008, 06:45 PM
| | | Re: Validating against a higher standard
In article <slrngc8ae8.31m.spamspam@bowser.marioworld>, Ben C <spamspam@spam.eggswrites: Quote: |
>On 2008-09-07, Jukka K. Korpela <jkorpela@cs.tut.fiwrote: | Quote: Quote: Quote: |
>>and reading the error messages?
| >>
>Most people don't know how to read error messages, especially when the
>messages are cryptic. The W3C validator and the WDG validator are familiar
>to most people who care about validation, so why not use them?
| >
>It's a lot more annoying having to go through a website, and then after
>validating you have to match up the errors to your sources manually and
>then resubmit.
| Being able to do my validation locally instead of having to fire up
the modem would be a benfit. Quote: |
>Much better to have a program that you can use from your editor
| ? Run a program from my editor? You mean like:
:!pgmname
Why couldn't I run it in a different window? Quote: Quote: Quote: |
>>I'm assuming here that imstallation is easy
| >>>>
>Who's Debian and why should we know him or her? (I know what Debian is, but
>most people don't.)
| >
>That may be true but why keep people in the dark? There's no harm in
>mentioning useful products like nsgmls and Debian--
| What about DOS? Is there a DOS distribution available? I don't have
any compilers.
--
Michael F. Stemper
#include <Standard_Disclaimer>
If this is our corporate opinion, you will be billed for it. | 
September 12th, 2008, 06:45 PM
| | | Re: Validating against a higher standard
In article <slrngc5e42.m99.spamspam@bowser.marioworld>, Ben C <spamspam@spam.eggswrites: Quote: |
>On 2008-09-06, Peter J Ross <pjr@example.invalidwrote:
| Looks sweet. Unfortunately, I'm on DOS and don't have a python shell
available to me.
--
Michael F. Stemper
#include <Standard_Disclaimer>
If this is our corporate opinion, you will be billed for it. | 
September 12th, 2008, 07:35 PM
| | | Re: Validating against a higher standard
On 2008-09-12, Michael Stemper <mstemper@walkabout.empros.comwrote: Quote:
In article <slrngc33p3.1fk8.usenet@debranded.larseighner.com> , Lars Eighner <usenet@larseighner.comwrites: Quote: |
>>In our last episode, <g9rqlk$rio$1@aioe.org>, the lovely and talented Michael Stemper broadcast on comp.infosystems.www.authoring.html: | > Quote: Quote:
>>The W3C Validator is a great help, as far as it goes. However, I'm looking
>>for something stricter. My coding style does not allow for implicit
>>termination of an element; my intention and desire is to explicitly
>>terminate every element.
| >>
>>Install nsgmls from James Clark's SP or the OpenSp package.
| >
Where would I find such a thing, and would I need to have a compiler?
| If you're using SUSE Linux, just install the package called
w3c-markup-validator, and everything else it says it needs. No compiling
required. | 
September 12th, 2008, 07:45 PM
| | | Re: Validating against a higher standard
In our last episode, <gae937$tlt$1@aioe.org>, the lovely and talented
Michael Stemper broadcast on comp.infosystems. www.authoring.html: Quote:
In article <slrngc33p3.1fk8.usenet@debranded.larseighner.com> , Lars Eighner <usenet@larseighner.comwrites: Quote: |
>>In our last episode, <g9rqlk$rio$1@aioe.org>, the lovely and talented Michael Stemper broadcast on comp.infosystems.www.authoring.html: | | Quote: Quote: Quote:
>>The W3C Validator is a great help, as far as it goes. However, I'm looking
>>for something stricter. My coding style does not allow for implicit
>>termination of an element; my intention and desire is to explicitly
>>terminate every element.
| >>
>>Install nsgmls from James Clark's SP or the OpenSp package.
| | Quote: |
Where would I find such a thing, and would I need to have a compiler?
| <http://www.jclark.com/sp/>
I forget that compilers aren't standard equipment on all systems. It
is written in c++. It does compile on gcc, and is said to compile on
Sun C++, and visual C++ 6.0. There seem to be a number of older windows and
DOS binaries --- one of which might work with newer systems (as this is
basically a command line program, I'd try running the MS-DOS binary in a DOS
window first. Quote: Quote: |
>>You can use to Tidy to add closing tags,
| | Quote: |
Nope, I don't want anything other than my keyboard adding anythin.
| Tidy is a pain and for sure in the better-than-nothing class; I don't know
how I can make this endorsement more lukewarm. If you poke around freeward
sites for your system, you might find an HTML lint which might be convinced
by a pack of lies to serve your narrow purpose (i.e. tell its config that
tags are required --- it won't parse by the DTD and so won't know you are
lying).
After running dual boot for a dozen years I realized I had not booted to
Windows in more that two years and deleted my Windows partition, or I would
try some of the binaries out.
--
Lars Eighner <http://larseighner.com/ usenet@larseighner.com
War on Terrorism: Bad News from the Sanity Front
"In this autumn of anger, even a liberal can find his thoughts turning to ...
torture." --Jonathan Alter,_Newsweek_ | | |