Hello,

I am using the web-server/servlet library to deploy an html:

(let ((start (lambda (req)
                 (response/xexpr
                  (string->xexpr (include-template "ui/page.html"))))))


Page.html includes Javascript code and everything works well until I try to
use a comparison operator.  So for example, when read-xml tries to read the
javascript for loop

for (var i=0;i<nodeList.length;i++) {
                    alert("hello");
                }

It gives the following error:

read-xml: lex-error: at position 42.59/1747: expected / or > to close tag
`nodeList.length'

It turns out it believes the operator '<' is an opening xml tag.

Has anyone found a way to fix/circumvent this problem?

Thanks a lot.
____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to