[plt-scheme] xhtml generation
I've been trying to understand xhtml and xml in general a bit better,
and was just poking around the xml module for ways to generate valid
documents. Figure I might include what I've done so far. Thanks to some
help from eli on Freenode it's working now. My goal's not so much to
have a system that cannot produce an invalid document, but to at least
have a system where it's possible to produce a valid document.
One thing I'm still puzzling over is in the plt documentation, the
prolog and document's "misc" structures claim they can be both pcdata
and comments (though AFAIK only comments are allowed there), but pcdata
seems to error out when I use it in those fields. That's why the
pre-comments et al are checked to make sure they're all only comments.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: xhtml.ss
URL: <http://lists.racket-lang.org/users/archive/attachments/20090218/713aaab3/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-xhtml.ss
URL: <http://lists.racket-lang.org/users/archive/attachments/20090218/713aaab3/attachment-0001.ksh>