Re: [racket] x-expressions

2012-02-28 Thread Jay McCarthy
Actually numbers are allowed, but not all numbers. If you look at http://docs.racket-lang.org/xml/index.html?q=xexpression#(def._((lib._xml/main..rkt)._valid-char~3f)) It tells you which numbers are allowed, and 2 is not. I'll change the error message to say "valid numeric entity" rather than "n

Re: [racket] x-expressions

2012-02-28 Thread Jens Axel Søgaard
2012/2/28 Johannes Brauer > Hi! > > In DrRacket version 5.02 this x-expression > > (validate-xexpr '(add x 2)) > > is legal. In version 5.2 I get the error message > > Expected a string, symbol, number, comment, processing instruction, or > list, given 2 > > Can anyone explain this to me? > Acco

[racket] x-expressions

2012-02-28 Thread Johannes Brauer
Hi! In DrRacket version 5.02 this x-expression (validate-xexpr '(add x 2)) is legal. In version 5.2 I get the error message Expected a string, symbol, number, comment, processing instruction, or list, given 2 Can anyone explain this to me? Johannes Staatl