[cxml-devel] cxml:doctype function
David Lichteblau
david at lichteblau.com
Sun Jun 21 08:12:33 UTC 2009
Quoting Steven Nunez (steve_nunez at yahoo.com):
> Thanks, but that's still a newline within an element. It's a fine point, and not terribly important, but ideally we want is something that produces:
> <!-- comment line 1 --><!-- comment line 2 -->
(It took me a while to figure out what you want, because the text/plain
part of your mail actually renders that on a single line as quoted
above.)
I still don't see the problem though.
CL-USER> (cxml:with-xml-output (cxml:make-string-sink)
(cxml:comment " comment line 1 ")
(cxml:text (string #\newline))
(cxml:comment " comment line 2 ")
(cxml:with-element "elt"))
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!-- comment line 1 -->
<!-- comment line 2 --><elt/>"
d.
More information about the cxml-devel
mailing list