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

Re: Representing whole XML documents

This page is part of the web mail archives of SRFI 107 from before July 7th, 2015. The new archives for SRFI 107 contain all messages, not just those from before July 7th, 2015.

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/