Re: xml and s-expression



anamax@xxxxxxxxxxxxx writes:

I came across this web page titled "xml is not s-expression"
http://www.prescod.net/xml/sexprs.html

The author of that page doesn't seem to know the difference
between strings and text. The author also seems to think that
Lisp's ability to manipulate code in the language implies that
lLisp code and data can't be separate, but they can be. (All
lisp code is lisp data, but some Lisp data is not Lisp code.)

Since his conclusions follow from such errors, none are sound.

Which reminds me, the "Principle of Least Power" is blather
(and the reference is a circular argument). XML/SGML/HTML
are good data formats because they contain/describe their
structure, not because they can't be evaluated. S-expressions
have that property as well, and the advantage that some
s-expressions can be interpreted as code (or not - depends
on what you want to do).

One of these days, I expect someone in the XML community
to notice that packaging some code with data can be quite useful.
If we're really lucky, they'll pick something like Forth bytecodes.
(That's not a criticism of Forth.)


"Place one fresh egg above an empty plate. Break the egg. Pour content
onto the plate. Throw away the shell. Put the plate in microwave. Turn
knob. Wait 62 seconds. Get plate. Eat egg."

Is this a string? Is this data or code?

The point is that even for the deadest coldest data, you can always
invent some interpreter to make it become alive code.

--
__Pascal Bourguignon__ http://www.informatimago.com/
The mighty hunter
Returns with gifts of plump birds,
Your foot just squashed one.
.



Relevant Pages

  • Re: Plate Mate
    ... This 'ball-end' damage shouldn't be a problem ... Is this thing a plate that goes between the string balls and the bridge ... discovering that the ball ends of the strings were slowly working their ...
    (rec.music.makers.guitar.acoustic)
  • Re: Bought myself a Strat
    ... here's the back of a real hardtail: ... I realized my error last night when I went to swap the strings. ... so I have to remove the back plate to get the ... building mine I noticed the string holes didn't line up so I got my bro ...
    (alt.guitar)
  • Re: Bought myself a Strat
    ... here's the back of a real hardtail: ... I realized my error last night when I went to swap the strings. ... The back plate (which ... a bit fishy with the guitar; at the shop, I made the comment that the guitar ...
    (alt.guitar)
  • Re: Piano Movies?
    ... "A Day at the Races", where Harpo destroys a piano, pulls out the plate and ... strings (which becomes a real harp at some point), ...
    (rec.music.makers.piano)
  • Re: xml and s-expression
    ... between strings and text. ... Lisp's ability to manipulate code in the language implies that ... lisp code is lisp data, but some Lisp data is not Lisp code.) ... Many people seem to make it, but I can't see any evidence in the ...
    (comp.lang.lisp)