-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Friday 05 November 2004 14:22, Bob Hanson wrote: > Thanks, Egon. I'm sure there are plenty of xml discrepencies.
Well, only the issues below... for the rest I think it's fine... at least well formed... > E.L. Willighagen wrote: > > I've looked at the JavaScripts for the documentation, and the XML was not > > well formed... also, I the process of fixing the JavaScript code.js, I > > found two database errors... > > (the diff is not useful to me) lines starting with '-' are removed, and with '+' are new... > > In other words; the two db errors: > > - -moveto did not have the close tag for the <DEFANGED_IMG> element. > > not surprising! This was from scripts.xls. I've fixed cmds.js and > scripts.xls > > > - -typo: backbond instead of backbone > > thanks. Again, in scripts.xls. I've corrected scripts.xls and defs.js > > > The problem with the XML wellformedness: > > 1. s+="<a target=\"_blank\" > > href=\"examples/"+S[i]+"\">"+S[i]+"</a> " which licked the quotes... > > 2. [<=4.0], as in the def _backbone, needs to be escaped with the added > > line: s=s.replace(/\[\<\;/g,"\[\&\;lt\;") > > This is interesting. Do all &xxx; have to be escaped in this way? No... It's a two layer thing... '<' cannot occur in HTML, but neither in XML. So those '<''s that should show up as such (e.g. as in <cmddef>) on the HTML page, should be escaped for the HTML layer but not for the XML layer... On the other hand, [<=4.0] should be displayed as [<=4.0], because it was PCDATA in the XML output, and then the '<' should be escaped in the XML layer too... Concluding, '<' for elements should be escaped only once, while '<' in PCDATA (i.e. as element content) should be escaped twice... > Sort of a > double escape? I have to think about this a bit more. There are several > occurrances of < just after this. What about them? > > + s=s.replace(/\[\<\;/g,"\[\&\;lt\;") Non element '<', thus double escape > s=s.replace(/\<\;cmd/g,"<br /><cmd") > s=s.replace(/\<\;\/cmd/g,"<br /></cmd") Element '<', thus single escape > s=s.replace(/\<\;jmol/g,"<br /><br /><jmol") > s=s.replace(/\<\;\/jmol/g,"<br /></jmol") I guess these are element '<'s too... correct? > OK, this is corrected now at > > http://www.stolaf.edu/people/hansonr/jmol/docs?xml > > and > > http://www.stolaf.edu/people/hansonr/jmol/scripts.xls Ok, it's well-formed now... btw, you can try yourself this by downloading jEdit (form jedit.org), running it, and install the XML plugin from Plugins->P.Manager, then the Install tab... > > Bob, these files are not yet in CVS, right? > > right. I just don't have time to do this right now. Ack. > > Ok, my next step will be to convert this XML output to DocBook XML... > > super. Will let you know when I got it working... Egon - -- [EMAIL PROTECTED] - --------------------------------------- CDK: http://cdk.sf.net/ JChemPaint: http://jchempaint.sf.net/ Jmol: http://www.jmol.org/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (SunOS) iD8DBQFBi4Vyd9R8I9Yza6YRAvrOAKCEM491Eq8EanftUppQxXwW4xdhuQCfVRh5 6EA5ZBgqgxS8u2jLrqxoL5Y= =2V8f -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers
