>>>> "Ville" == Ville Skytt <Ville>
writes:
Ville> On Wed, 2002-10-30 at 09:01, Rendhalver [Peter Brown] wrote:
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
Ville> Yep, this is a start, but the implementation doesn't seem quite
complete
Ville> to me. It could work well with DTDs consisting only of a single file,
Ville> but the current trend with DTDs seems to be modularization, where the
Ville> DTD is split into multiple parts. IIRC W3C encourages modularization
Ville> nowadays.
that introduces some trickyness them
i am assuming the components are listed in the main DTD
so i guess parsing the DTD would need to be done to find the
components and get them as well
Ville> For an example, see the XHTML 1.1 DTD:
Ville> <
http://www.w3.org/TR/xhtml11/xhtml11_dtd.html>
> >> 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)
Ville> --
Ville> \/ille Skyttä
Ville> scop at
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>