[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Representing whole XML documents

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"
	--Per Bothner
per@xxxxxxxxxxx   http://per.bothner.com/