Daniel Leidert wrote:
> Am Freitag, den 16.09.2005, 09:14 -0500 schrieb Bob Hanson:
>
>>That's fixed. Check now. I do think in general the XHTML parser at
>>
>>http://validator.w3.org/
>>
>>is far more friendly, by the way.
>
>
> IMHO not really. But the killer argument: This validator is not able to
> validate XHTML. The w3c mentions all limitations on their site
> (http://openjade.sourceforge.net/doc/xml.htm). IIRC you could also use
> xmllint to validate the files locally.
>
>
Well, all I can say is that I went from 3161 violations to 0 -- ok, 1 -- in a
day, and I don't think I could have mastered this on my own without those very
handy comments that validator.w3.org provided. I can see where running code
through more than one validator or using validator.w3.org only for initial
phases would be wise. Thanks for that XML validator link.
I am sorry. Any chance to move to PHP instead of using Javascript (which
is also a limitation to the user and text browsers)?
Nah, I love JavaScript. This isn't so bad -- I can do it in seconds -- but I
thought someone might have come up with a client-side solution. Server-side PHP
is great if you really have lots of client-impossible calculations or database
issues -- actually I'm using ColdFusion for that on one project, and it seems to
work OK -- but from a dynamic display that is browser/platform/screen dependent
-- fundamentally I think that SHOULD be done in the browser, leaving the server
to do more basic data-generating functions. All you do if you try to carry out
all this on a server is bring the problem to another machine.
But I see your point: If I really didn't need any dynamic code -- all hardcoded
from the point of document loading -- absolutely no document.write() or later
tweaking of .innerHTML() it would make the validation more straightforward. But
it would also change the dynamic nature of the page to "once loaded, this is
what you get" which doesn't seem to fit the model of "dynamic" as in my recent
projects.
Bob
--
Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr
"Imagination is more important than knowledge." - Albert Einstein
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users