Re: three proposed additions to sxml
[email protected] 10 Mar 2014 06:45:05 -0000
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <[email protected]> |
Hello!
Let me attempt to summarize:
> 1. Entity references *may* be represented by lists of two elements, with
> the first element the symbol "&" and the second element either a number
> or a case-sensitive symbol, meaning, respectively, a numeric character
> entity reference or a named entity reference.
> Examples: (& 151) (©) (& rArr) (& |rArr|)
You are talking about internal entity references, because external
entity references are already represented as
(*ENTITY* public-id system-id)
So, you are suggesting to add
(& symbol-or-number)
I echo the concern by Peter Bex that so far, everything in SXML is
either an parenthesized expression with a symbol at the head, or a
string. Adding symbol-or-number just for these internal entities seems
odd. I'm intrigued by Andy Wingo's comment: ``Seems to me that for
Scheme where we have unquote and different ways to specify characters
in string literals, including named references, this isn't that
important.'' Andy, could you expand on this with more examples?
Perhaps this could be a better way to include character and named
references. I'm curious what Neil thinks of the proposal.
> 2. The symbol "=" *may* be used in place of the symbol "@", to introduce
> attribute lists.
> Example: (p (= (id foo) (align "center")) "text")
Peter Bex makes a good point for @ symbol and raises the concern about
the = symbol. Indeed I chose @ for attributes because of XPath. Andy
Wingo mentioned the earlier discussion that seems to settle on the
character ^ as an alternative. Neil, what do you think of ^?
> 3. The keyword symbols, such as "*TOP*" and "*PI*", *may* be lowercase.
> Examples: *top* *pi*
You essentially suggest making these symbols case-insensitive, right?
It seems everyone sort of agrees on this one, right? I'll will update
the SXML specification then.
Andy Wingo wrote:
> I'd shepard any of these things into Guile if there is a wider
> consensus.
Thank you!
Cheers,
Oleg
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech