Email list hosting service & mailing list manager

Representing whole XML documents John Cowan (18 Nov 2012 20:00 UTC)
Re: Representing whole XML documents Per Bothner (18 Nov 2012 20:30 UTC)
Re: Representing whole XML documents John Cowan (18 Nov 2012 21:16 UTC)

Re: Representing whole XML documents Per Bothner 18 Nov 2012 20:29 UTC

On 11/18/2012 11:59 AM, John Cowan wrote:
> I propose a SRFI-108 style representation of whole documents using
> #xml{...}, where ... represents the whole document (the exact syntax
> depends on the outcome of SRFI 108).  This would be translated into the
> S-expression ($xml-root version encoding standalone . children), where
> "version", "encoding", and "standalone" are either string literals or #f.

Seems like a good idea.  However, this seems a place where keywords would
be preferable:

#&xml{version: 1.1 encoding: "UTF-8" standalone: #t
   doctype: "HTML"
   public: "-//W3C//DTD HTML 4.01 Transitional//EN"
   #<!--comment-->
   #<html>...</>
}
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/