X-Git-Url: http://git.kpe.io/?p=lml2.git;a=blobdiff_plain;f=base.lisp;h=0274c35b25320dc718da2738d5bffa12d34c8bd0;hp=233d6ee685bb71ee6306f7fd5c01b074f13f6362;hb=eefa9b89408f54530da92a38397463791384cc54;hpb=242b48efa026ba6ce106f1571a2aba64cec188bc diff --git a/base.lisp b/base.lisp index 233d6ee..0274c35 100644 --- a/base.lisp +++ b/base.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; $Id: base.lisp,v 1.3 2003/06/23 20:37:43 kevin Exp $ +;;;; $Id: base.lisp,v 1.4 2003/06/23 23:58:29 kevin Exp $ ;;;; ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -45,12 +45,12 @@ (defun lml-print-date (date) (lml-write-string (date-string date))) -(defun html-prologue (&optional (format :xhtml11)) +(defun dtd-prologue (&optional (format :xhtml11)) (case format - ((:xhtml :xhtml11 :xhtml10-strict :xhtml10-transitional :xhtml10-frameset) + ((:xhtml :xhtml11 :xhtml10-strict :xhtml10-transitional :xhtml10-frameset :xml) (lml-write-string +xml-prologue-string+) (lml-write-char #\newline))) - (ecase format + (case format ((:xhtml11 :xhtml) (lml-write-string +xhtml11-dtd-string+)) (:xhtml10-strict