- From: Shane P. McCarron <shane@aptest.com>
- Date: Tue, 13 Feb 2001 00:01:25 -0600
- To: Aaron Swartz <aswartz@upclink.com>
- CC: www-validator@w3.org
There is a bug in the validator where each time it encounters an xmlns namespace declaration it adds it to the list, even if it was already encountered. This should really be done with a hash so that each namespace is only defined in the associative array when it is first encountered: it currently accumulates them in the variable @other_namespaces. If this were instead %other_namespaces, the code would look like: $other_namespaces{$2} = 1; and then later when the other namespace list is dumped, something like: foreach key (%other_namespaces) { print qq(<a href="$key">$key</a>\n); } Aaron Swartz wrote: > > It seems that the W3C HTML validator has some trouble validating RDDL files: > > First, it does not follow 300 redirects, and thus can't grab the RDDL DTD. > > Second, when it does grab the DTD it seems to go into some infinite loop and > puts out the XHTML namespace 100 times. > > Otherwise, it actually seems to validate things correctly. Good work! > > Thanks, > -- > Aaron Swartz <me@aaronsw.com>| The Info Network > <http://www.aaronsw.com> | <http://theinfo.org> > AIM: JediOfPi | ICQ: 33158237| the way you want the web to be
Received on Tuesday, 13 February 2001 01:02:16 UTC