From adrian at xemacs.org Sun Feb 26 16:42:28 2017 Content-Type: multipart/mixed; boundary="===============8617101435878281510==" MIME-Version: 1.0 From: Adrian Aichner To: xemacs-beta at xemacs.org Subject: Re: PSGML's syntax table for HTML error in XEmacs 21.1 Date: 2000-11-13 22:38:02 +0100 Message-ID: In-Reply-To: Gleb Arshinov's message of "13 Nov 2000 12:50:13 -0800" --===============8617101435878281510== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable >>>>> "Gleb" =3D=3D Gleb Arshinov writes: >>>>> "Jerry" =3D=3D Jerry James writes: Gleb> It seems like I hit the problem previously reported in Gleb> http://www.xemacs.org/list-archives/xemacs-beta/200009/msg00153.h= tml Jerry> The problem there was that Stephen had an old version of Jerry> PSGML installed. You appear to have the latest version, Jerry> however. Also note that Stephen's problem was with XML, Jerry> but your patch modifies sgml-parser-syntax. If you look at Jerry> the code in psgml-parse.el just after your patch, you will Jerry> see that the colon *is* in xml-parser-syntax. So this does Jerry> not seem to be the problem previously reported. Gleb> Hi Jerry, Gleb> The way I read it, Stephen's problem is exact same one I am repor= ting. Gleb> Let me try to provide more detail. Jerry> What, exactly, were you trying to do, and what did PSGML do Jerry> that you consider incorrect? Gleb> Basically, I wanted to migrate my HTML documents from "-//W3C//DTD Gleb> HTML 4.0 Transitional//EN" to "-//W3C//DTD XHTML 1.0 Gleb> Transitional//EN". Both are types of HTML. The latter also happ= ens Gleb> to be XML (XHTML is supposed to be an intersection of HTML spec a= nd Gleb> XML spec). Gleb> I had old PSGML packages which did not include XHTML DTDs, so I Gleb> upgraded all the packages to the latest versions. Then I tried to Gleb> validate a small XHTML document: Jerry> Can you give some example SGML that shows the problem? Gleb> Please use this instead: so that people can easily find the canonical DTD information. Gleb> Gleb> Gleb> My Title Gleb> Gleb> Gleb>

My Title

Gleb> Gleb> Gleb> Save this to a file xhtml_test.html. Open it. Run C-c C-p Gleb> `sgml-parse-prolog'. At this point PSGML attempted to compile Gleb> xhtml1-transitional.dtd, and barfed while parsing it (i.e. while Gleb> parsing the DTD not the XHTML test document). The backtrace for = this Gleb> is in my original message. I had this problem too. I think you need to edit XHTML documents in xml-mode! PSGML should switch to xml-mode based on a XHTML DTD, I think. Here's what I did for the XEmacs website at http://xemacs.sourceforge.net/[= 1] See (defun psgml-find-file-hook () in http://xemacs.sourceforge.net/batch-psgml-validate.el I should obviously rename that hook, since it's not in psgml*.el, but in batch-psgml-validate.el. Best regards, Adrian Gleb> After much scratching my head, I figured out that lines of the fo= rm: Gleb> xml:lang language code (as per XML 1.0 spec) = Gleb> in xhtml1-transitional.dtd were causing the parsing error. When I Gleb> removed these lines, PSGML was able to parse and compile the DTD.= The Gleb> reason parsing of this DTD fails seems to be that PSGML uses Gleb> sgml-parser-syntax to parse the DTD and it considers ':' a termin= ator Gleb> for the token. So adding ':' to sgml-parser-syntax got rid of the Gleb> problem for me. Jerry> Finally, if this really is a problem with PSGML, it should Jerry> also be reported to Lennart Staflin, the PSGML maintainer. Gleb> The way I read Stephen's message, it worked for him in 21.2. If = this Gleb> works in 21.2 but not in 21.1, I figure XEmacs team should have t= he Gleb> first try. Gleb> Gleb Footnotes: = [1] That site is mostly XHTML 1.0 already, automatically validated by PSGML! -- = Adrian Aichner mailto:adrian(a)xemacs.org http://www.xemacs.org --===============8617101435878281510==-- From turnbull at sk.tsukuba.ac.jp Sun Feb 26 16:42:28 2017 Content-Type: multipart/mixed; boundary="===============7927389310443293824==" MIME-Version: 1.0 From: Stephen J. Turnbull To: xemacs-beta at xemacs.org Subject: Re: PSGML's syntax table for HTML error in XEmacs 21.1 Date: 2000-11-14 11:28:23 +0900 Message-ID: <14864.41799.923908.370931@turnbull.sk.tsukuba.ac.jp> In-Reply-To: u4s1bpn7p.fsf@rapier.ecf.teradyne.com --===============7927389310443293824== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable >>>>> "APA" =3D=3D Adrian Aichner writes: APA> See APA> (defun psgml-find-file-hook () APA> in APA> http://xemacs.sourceforge.net/batch-psgml-validate.el APA> I should obviously rename that hook, since it's not in APA> psgml*.el, but in batch-psgml-validate.el. Better yet, send it to Lennart. He'll probably rename it, but differently from the way you would ;-) auto-mode-alist is clearly not appropriate to resolve this ambiguity. PSGML needs that functionality. -- = University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091 _________________ _________________ _________________ _________________ What are those straight lines for? "XEmacs rules." --===============7927389310443293824==-- From james at eecs.ukans.edu Sun Feb 26 16:42:28 2017 Content-Type: multipart/mixed; boundary="===============0773678120251787054==" MIME-Version: 1.0 From: Jerry James To: xemacs-beta at xemacs.org Subject: Re: PSGML's syntax table for HTML error in XEmacs 21.1 Date: 2000-11-15 10:05:32 -0600 Message-ID: In-Reply-To: 14864.41799.923908.370931@turnbull.sk.tsukuba.ac.jp --===============0773678120251787054== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > "Stephen J. Turnbull" wrote: > >>>>> "APA" =3D=3D Adrian Aichner writes: > = > APA> I should obviously rename that hook, since it's not in > APA> psgml*.el, but in batch-psgml-validate.el. > = > Better yet, send it to Lennart. He'll probably rename it, but > differently from the way you would ;-) That won't do any good, unfortunately, because psgml-html.el is not part of the PSGML distribution. It appears to be some unholy mix of html-helper-mode.el and homegrown stuff, with chunks of html-helper-mode.el ripped out and replaced with calls into PSGML. In any case, Lennart most likely won't care about changes to it. > auto-mode-alist is clearly not appropriate to resolve this ambiguity. > PSGML needs that functionality. Short term, perhaps it would be better to change html-mode into html-minor-mode, which works with either of the major modes sgml-mode or xml-mode. Long term, I think it would be good to fold any functionality in html-mode that PSGML is missing into PSGML, so that it will benefit all DTDs. Then html-mode can be nuked altogether. On a related note, is anyone actually using the sgml package any more? Since linuxdoc has been replaced with DocBook, a package specifically for editing linuxdoc documents seems to have limited usefulness. -- = Jerry James --===============0773678120251787054==-- From turnbull at sk.tsukuba.ac.jp Sun Feb 26 16:42:29 2017 Content-Type: multipart/mixed; boundary="===============6819325058436625008==" MIME-Version: 1.0 From: Stephen J. Turnbull To: xemacs-beta at xemacs.org Subject: Re: PSGML's syntax table for HTML error in XEmacs 21.1 Date: 2000-11-16 11:14:34 +0900 Message-ID: <14867.17162.532921.147417@turnbull.sk.tsukuba.ac.jp> In-Reply-To: pswve59q5v.fsf@diannao.ittc.ukans.edu --===============6819325058436625008== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable >>>>> "Jerry" =3D=3D Jerry James writes: Jerry> On a related note, is anyone actually using the sgml Jerry> package any more? Since linuxdoc has been replaced with Jerry> DocBook, a package specifically for editing linuxdoc Jerry> documents seems to have limited usefulness. I don't use the sgml package, I use psgml, but I do still have a few local things in linuxdoc that I maintain. We can't know whether people use it or not. But we should discourage new users. Steve could add a line to the description indicating that the package is deprecated and (I assume) not actively maintained. (As we do with RMail.) If you do this, don't forget to sync man/xemacs/packages.texi's list. -- = University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091 _________________ _________________ _________________ _________________ What are those straight lines for? "XEmacs rules." --===============6819325058436625008==-- From youngs at xemacs.org Sun Feb 26 16:42:29 2017 Content-Type: multipart/mixed; boundary="===============3460784781492785880==" MIME-Version: 1.0 From: Steve Youngs To: xemacs-beta at xemacs.org Subject: Re: PSGML's syntax table for HTML error in XEmacs 21.1 Date: 2000-11-16 15:50:07 +1000 Message-ID: In-Reply-To: 14867.17162.532921.147417@turnbull.sk.tsukuba.ac.jp --===============3460784781492785880== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable * "Stephen" =3D=3D Stephen J Turnbull writes: >>>>>>"Jerry" =3D=3D Jerry James writes: Jerry> On a related note, is anyone actually using the sgml Jerry> package any more? Since linuxdoc has been replaced with Jerry> DocBook, a package specifically for editing linuxdoc Jerry> documents seems to have limited usefulness. Stephen> I don't use the sgml package, I use psgml, but I do still have a = few Stephen> local things in linuxdoc that I maintain. We can't know whether Stephen> people use it or not. Stephen> But we should discourage new users. Steve could add a line to the Stephen> description indicating that the package is deprecated and (I assu= me) Stephen> not actively maintained. (As we do with RMail.) ,----[ ./oa/sgml/ChangeLog ] | 2000-10-05 Martin Buchholz | = | * *: Mega typo fix. | = | 1998-01-25 SL Baur | = | * Makefile (VERSION): Updated to package standard 1.0. | * package-info.in: Ditto. | = | 1998-01-12 SL Baur | = | * Makefile: Created. `---- That's not a snippet, it's the *entire* file! Yep, that's an actively maintained package. :-) Does the sgml package have any useful code in it? If it does, could it be incorporated into the psgml package? Then we could just delete sgml completely, couldn't we? Stephen> If you do this, don't forget to sync man/xemacs/packages.texi's l= ist. Yep, as well as etc/PACKAGES. -- = |--------------[GnuPG KeyID: 59E4C4B2]---| | XEmacs - It's not just an editor... | | It's a way of life. | |-------------------------------------| --===============3460784781492785880==-- From turnbull at sk.tsukuba.ac.jp Sun Feb 26 16:42:29 2017 Content-Type: multipart/mixed; boundary="===============1335378301320133494==" MIME-Version: 1.0 From: Stephen J. Turnbull To: xemacs-beta at xemacs.org Subject: Re: PSGML's syntax table for HTML error in XEmacs 21.1 Date: 2000-11-16 15:59:45 +0900 Message-ID: <14867.34273.188548.872986@turnbull.sk.tsukuba.ac.jp> In-Reply-To: microsoft_free.8166loo48g.fsf@slackware.mynet.pc --===============1335378301320133494== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable >>>>> "SY" =3D=3D Steve Youngs writes: SY> That's not a snippet, it's the *entire* file! Yep, that's an SY> actively maintained package. :-) About as I expected. The rest is IMHO: SY> Does the sgml package have any useful code in it? I don't know, and I'd give long odds there isn't. Sufficiently so that I will refuse the assignment to check. ;-) SY> If it does, could it be incorporated into the psgml package? Maybe, but remember PSGML is an externally maintained package. It would be much better if we could get Lennart to take care of it entirely, including XEmacs-specific code, and avoid doing any synching ourselves, right? Not just for PSGML, but for all externally maintained packages, I'd really like to rename stuff like psgml-html (if as JJ says it's not part of upstream PSGML) and in general move xemacs-specific changes out of upstream files and into files that are identifiably XEmacs-specific. I also don't like packages where we delete files (apparently our APEL distribution is not complete). I have this dream that someday the upstream packagers will all use the same packaging system as XEmacs. But this isn't going to happen if they think of XEmacs as a bunch of hackers who make gratuitous changes to their code that they have to synch, and deal with bug reports about. SY> Then we could just delete sgml completely, couldn't we? Why? It doesn't hurt for it to be there, except that you have to roll a new package everytime Martin scratches his typo-fixing itch. Maybe we could created a deprecated category for packages or something. -- = University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN Institute of Policy and Planning Sciences Tel/fax: +81 (298) 53-5091 _________________ _________________ _________________ _________________ What are those straight lines for? "XEmacs rules." --===============1335378301320133494==-- From james at eecs.ukans.edu Sun Feb 26 16:42:33 2017 Content-Type: multipart/mixed; boundary="===============0376300695946018857==" MIME-Version: 1.0 From: Jerry James To: xemacs-beta at xemacs.org Subject: Re: PSGML's syntax table for HTML error in XEmacs 21.1 Date: 2000-11-21 12:43:39 -0600 Message-ID: In-Reply-To: 14867.34273.188548.872986@turnbull.sk.tsukuba.ac.jp --===============0376300695946018857== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable "Stephen J. Turnbull" wrote: > Not just for PSGML, but for all externally maintained packages, I'd > really like to rename stuff like psgml-html (if as JJ says it's not > part of upstream PSGML) and in general move xemacs-specific changes > out of upstream files and into files that are identifiably > XEmacs-specific. Incidentally, it isn't just psgml-html in the PSGML package that is not part of PSGML proper; iso-sgml is also not part of PSGML. Also, somewhere back in the mists of time, somebody renamed psgml-lucid.el (in the PSGML distribution) to psgml-xemacs.el (in the XEmacs distribution). I retained that renaming when updating XEmacs' PSGML package. If it seems desirable, I'll try to find time during the Christmas break to cleanly separate the PSGML stuff from the non-PSGML stuff, and clearly mark every change we made to the PSGML sources. After grading finals, of course. :-) -- = Jerry James --===============0376300695946018857==--