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
Yep, this is a start, but the implementation doesn't seem quite complete
to me. It could work well with DTDs consisting only of a single file,
but the current trend with DTDs seems to be modularization, where the
DTD is split into multiple parts. IIRC W3C encourages modularization
nowadays.
For an example, see the XHTML 1.1 DTD:
<
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)
--
\/ille Skyttä
scop at
xemacs.org