make server-generated webpages XHTML 1.0 Strict: emit prolog

(not tested)
This commit is contained in:
vibr 2004-08-14 22:08:07 +00:00
parent 549594bef4
commit 0bb601a0e0
3 changed files with 5 additions and 3 deletions

View File

@ -416,6 +416,7 @@
(file-directory-options-back-icon-url options)) (file-directory-options-back-icon-url options))
(blank-icon (blank-icon
(file-directory-options-blank-icon-url options))) (file-directory-options-blank-icon-url options)))
(emit-prolog port)
(with-tag port html (xmlnsdecl-attr) (with-tag port html (xmlnsdecl-attr)
(let ((title (string-append "Index of /" (let ((title (string-append "Index of /"
(string-join file-path "/")))) (string-join file-path "/"))))

View File

@ -163,14 +163,14 @@
'() '()
(make-writer-body (make-writer-body
(lambda (out options) (lambda (out options)
(emit-prolog out)
(receive (find-entry node-name) (parse-info-url (request-url req)) (receive (find-entry node-name) (parse-info-url (request-url req))
(display-node node-name (display-node node-name
(file-finder find-entry) (file-finder find-entry)
(referencer make-reference (request-url req) out) (referencer make-reference (request-url req) out)
icon-name icon-name
out)) out))
(with-tag out address () (with-tag out address ();; this is outside the html element?
(write-string address out))))))) (write-string address out)))))))
((or (string=? request-method "HEAD") ((or (string=? request-method "HEAD")
(string=? request-method "POST")) (string=? request-method "POST"))

View File

@ -62,13 +62,14 @@
'() '()
(make-writer-body (make-writer-body
(lambda (out options) (lambda (out options)
(emit-prolog out)
(receive (man-path entry and-then) (receive (man-path entry and-then)
(parse-man-url (request-url req)) (parse-man-url (request-url req))
(emit-man-page man-binary nroff-binary rman-binary (emit-man-page man-binary nroff-binary rman-binary
gzcat-binary gzcat-binary
entry man man-path and-then reference-template out)) entry man man-path and-then reference-template out))
(with-tag out address () (with-tag out address () ;;außerhalb des html elements?
(display address out))))))) (display address out)))))))
((or (string=? request-method "HEAD") ((or (string=? request-method "HEAD")
(string=? request-method "POST")) (string=? request-method "POST"))