From: Kevin M. Rosenberg Date: Sun, 16 Nov 2003 15:49:47 +0000 (+0000) Subject: r8226: update to new dtd writing functions X-Git-Tag: v2.5.5~31 X-Git-Url: http://git.kpe.io/?p=lml.git;a=commitdiff_plain;h=e8e6eb250b87c885a5107bc59b0b8a89453c3907 r8226: update to new dtd writing functions --- diff --git a/2/base.lisp b/2/base.lisp index 517af2c..ecfd279 100644 --- a/2/base.lisp +++ b/2/base.lisp @@ -38,6 +38,17 @@ (defun lml-print-date (date) (lml-write-string (date-string date))) +(defun xml-header-stream (stream &key (version "1.0") (standalone :unspecified) + (encoding :unspecified)) + (format stream "" + version + (if (eq standalone :unspecified) + "" + (format nil " standalone=\"~A\"" standalone)) + (if (eq encoding :unspecified) + "" + (format nil " encoding=\"~A\"" encoding)))) + (defun dtd-prologue (&optional (format :xhtml11) &key entities) (case format ((:xhtml :xhtml11 :xhtml10-strict :xhtml10-transitional :xhtml10-frameset :xml)