Re: [racket] xexpr to mark a radio button 'checked'

2011-04-27 Thread John Clements
On Apr 27, 2011, at 11:51 PM, John Clements wrote: ... What does it say about this mailing list that three of us were so eager to respond that we didn't see the earlier responses? ah well apologies for the wasted bandwidth. John Clements smime.p7s Description: S/MIME cryptographic si

Re: [racket] xexpr to mark a radio button 'checked'

2011-04-27 Thread John Clements
On Apr 27, 2011, at 3:11 PM, J G Cho wrote: > I am trying to print: > the egg > > The closest I can come up is: > value="2">checkedthe egg > > Valid XML but not quite what a browser wants. > > Is this (the first line) possible with xexpr? It looks like the browser is actually just checking f

Re: [racket] define-syntax-class

2011-04-27 Thread Nadeem Abdul Hamid
On Wed, Apr 27, 2011 at 11:25 PM, Carl Eastlund wrote: > Modules currently can't define syntax for syntax.  However, you can > use define-syntax-set from mzlib/etc to define multiple macros at once > that share local bindings, such as syntax classes.  Since they're > lexical bindings rather than m

Re: [racket] define-syntax-class

2011-04-27 Thread Carl Eastlund
On Wed, Apr 27, 2011 at 11:15 PM, Nadeem Abdul Hamid wrote: > On Wed, Apr 27, 2011 at 10:47 PM, Sam Tobin-Hochstadt > wrote: >>> If I move the syntax class >>> definition into the bodies of define-syntax, then it works, but that >>> defeats the purpose of being able to define a reusable syntax c

Re: [racket] define-syntax-class

2011-04-27 Thread Nadeem Abdul Hamid
On Wed, Apr 27, 2011 at 10:47 PM, Sam Tobin-Hochstadt wrote: >> If I move the syntax class >> definition into the bodies of define-syntax, then it works, but that >> defeats the purpose of being able to define a reusable syntax class... > > You'll need to move the syntax class definition into a se

Re: [racket] define-syntax-class

2011-04-27 Thread Sam Tobin-Hochstadt
2011/4/27 Nadeem Abdul Hamid : > What am I missing in the code below (reproduced from the "Fortifying > Macros" paper)? When run, this gives me an error: "syntax-parse: not > defined as syntax class in: binding". If I move the syntax class > definition into the bodies of define-syntax, then it work

[racket] define-syntax-class

2011-04-27 Thread Nadeem Abdul Hamid
What am I missing in the code below (reproduced from the "Fortifying Macros" paper)? When run, this gives me an error: "syntax-parse: not defined as syntax class in: binding". If I move the syntax class definition into the bodies of define-syntax, then it works, but that defeats the purpose of bein

Re: [racket] xexpr to mark a radio button 'checked'

2011-04-27 Thread David Vanderson
I can't answer your exact question, but from what I understand of web development, you actually want: http://www.w3schools.com/tags/att_input_checked.asp Does that help? Dave On 04/27/2011 03:11 PM, J G Cho wrote: I am trying to print: the egg The closest I can come up is: checkedthe egg

Re: [racket] xexpr to mark a radio button 'checked'

2011-04-27 Thread Ryan Culpepper
On 04/27/2011 04:11 PM, J G Cho wrote: I am trying to print: the egg I think you want this: Google "HTML attribute minimization" for more information. Ryan The closest I can come up is: checkedthe egg Valid XML but not quite what a browser wants. Is this (the first line) possible wit

Re: [racket] xexpr to mark a radio button 'checked'

2011-04-27 Thread Nadeem Abdul Hamid
Try something like this, with a dummy value for the checked attribute: `(div (input [(type "radio") (name "n-4-answer") (value "2") (checked "yes")])) On Wed, Apr 27, 2011 at 6:11 PM, J G Cho wrote: > I am trying to print: > the egg > > The closest I can come up is: > value="2">checkedthe egg >

[racket] xexpr to mark a radio button 'checked'

2011-04-27 Thread J G Cho
I am trying to print: the egg The closest I can come up is: checkedthe egg Valid XML but not quite what a browser wants. Is this (the first line) possible with xexpr? jGc _ For list-related administrative tasks: http://lists.racket-lang.org/li