On Sat, Oct 2, 2010 at 4:20 PM, Markku Rontu <markku.ro...@iki.fi> wrote: > Hello everybody, > > I was trying to make some servlets recently and ran into two problems. First > it was not clear in the documentation how the doctype should be declared for > random servlets? I didn't want to make a html template based servlet to > include the doctype. I'd rather create the main parts of the (x)html pages > with xexprs in Racket code. What do I need to do? > > I did find in the Schematics cookbook the dherman/xhtml package that seems > to do what I want but it doesn't seem to work in Racket. Perhaps the library > isn't updated to Racket? The error I get after requiring it is: > "C:\...AppData\Roaming\Racket\planet\300\5.0.1\cache\dherman\xhtml.plt\1\2\main.rkt" > (The system cannot find the file specified.; errno=2) > > Correct report since the directory does not contain main.rkt but only > info.ss and xhtml.ss.
The planet web page [1] suggests this require: (require (planet dherman/xhtml:1:2/xhtml)) it looks like you tried a different one. hth, Robby [1]: http://planet.racket-lang.org/display.ss?package=xhtml.plt&owner=dherman _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users