>>>> "APA" == Adrian Aichner
<adrian(a)xemacs.org> writes:
APA> FYI
APA> Adrian
thanks for this adrian
this could be cool if this could be implemented using "if modified since"
in the http request it would save on downloading the DTD every time
APA> From: Peter Flynn <peter(a)silmaril.ie>
APA> Subject: [Psgml-devel] Re: emacs and PUBLIC Doctypes
APA> Newsgroups: comp.text.sgml
APA> Organization: Usenet Labs Bozon Detector Facility
APA> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826
APA> Bcc:
APA> Sender: psgml-devel-admin(a)lists.sourceforge.net
APA> X-Sent: 1 week, 2 days, 17 hours, 8 minutes, 9 seconds ago
APA> In article <87hefiezji.fsf(a)pokey.henrik-motakef.de> on comp.text.tex,
APA> Henrik Motakef wrote:
> Peter Flynn <peter(a)silmaril.ie> writes:
>
>> I've always been a bit surprised that no-one has written a plug-in mode
>> to let psgml resolve a SYSTEM identifier which is a URL. Emacs has no
>> problems in handling Internet connections (look at www-mode, mail-mode,
>> ftp-mode, etc etc). Are we just lacking an Elisp expert among the SGML
>> and XML community?
APA> I should have said, "an Elisp-and-TCP/IP expert" :-)
>
> I happen to use this naive and probably buggy code for this:
>
> (require 'url)
> (defun my-insert-sysid (sysid)
> (condition-case nil
> (let ((buffer (url-retrieve-synchronously sysid)))
> (insert (with-current-buffer buffer
> (goto-char (point-min))
> (forward-paragraph) ; skip HTTP headers
> (buffer-substring (point) (point-max))))
> (kill-buffer buffer))
> (error nil)))
>
> (add-to-list 'sgml-sysid-resolve-functions 'my-insert-sysid)
>
> It depends on the url.el package. You'll probably have to grab it from
> CVS, see
http://www.gnu.org/software/url/.
APA> Cool. Can we ask Lennart if he would consider this for inclusion?
APA> ///Peter
APA> --
APA> BCC'd to psgml-devel {at}
lists.sourceforge.net
APA> -------------------------------------------------------
APA> This
sf.net emial is sponsored by: Influence the future of
APA> Java(TM) technology. Join the Java Community Process(SM) (JCP(SM))
APA> program now.
http://ad.doubleclick.net/clk;4699841;7576301;v?
APA>
http://www.sun.com/javavote
APA> _______________________________________________
APA> Psgml-devel mailing list
APA> Psgml-devel(a)lists.sourceforge.net
APA>
https://lists.sourceforge.net/lists/listinfo/psgml-devel
APA> ----------
APA> --
APA> Adrian Aichner
APA> mailto:adrianï¼ xemacs.org
APA>
http://www.xemacs.org/
--
XEmacs Advocate | Do not try the patience of Wizards,
FreeBSD Devote | for they are subtle and quick to anger.
Perl Hacker | - Elric (Technomage) , Babylon 5.
Apache God | <mailto:rendhalver at xemacs.org> <GnuPG KeyID: AE51D190>