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. See:

http://validator.w3.org/check?uri=www.stolaf.edu/people/hansonr/jmol/docs

vs.

http://schneegans.de/sv/?url=http://www.stolaf.edu/people/hansonr/jmol/docs/

I should point out, though, that neither of these really checks the validation for this page. In this case the page is produced by browser-based JavaScript, so true validation requires validating the FINAL "rendered" HTML, not just the <script> tags. (This is mentioned in the XHTML specs.)

In order to do this, I had to add additional flags in the code to deliver "source" rather than "actual" HTML. This was important - when I did that the first time (my first XHTML page ever) I was greeted by the message: "Failed validation, 3161 errors"

I still don't know if there is a simple way to do this; you can't just "look at the source" anymore, even with Netscape, to see how your code is writing. If anyone knows a good solution to this, do let me know! (Right now I write this "pseudo code" that looks something like this:

s=s.replace(/\&lt/g,"&amp;lt")
   .replace(/\<\/)/g,"&lt;/")
   .replace(/\</g,"<br />&lt;")

prior to writing, and then clip the screen, run a little batch DOS job that wraps it into an XHTML strict framework, and then upload it to w3c for validation. Is there a simpler way to do this?

-Bob Hanson

--
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



-------------------------------------------------------
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

Reply via email to