--- loncom/xml/lonxml.pm	2000/10/11 21:12:42	1.27
+++ loncom/xml/lonxml.pm	2000/10/12 19:43:25	1.28
@@ -304,20 +304,20 @@ sub handler {
   }
   $request->send_http_header;
 
-  return OK if $request->header_only;
+  return 'OK' if $request->header_only;
 
   $request->print(&Apache::lontexconvert::header());
 
-  $request->print($headerstring.'<body bgcolor="#FFFFFF">'."\n");
+  $request->print('<body bgcolor="#FFFFFF">'."\n");
 
   my $file = "/home/httpd/html".$request->uri;
   my %mystyle;
   my $result = '';
   $result = Apache::lonxml::xmlparse($target, &Apache::lonnet::getfile($file),'',%mystyle);
   $request->print($result);
-  $r->print('</body>');
-  $r->print(&Apache::lontexconvert::footer());
-  return OK;
+  $request->print('</body>');
+  $request->print(&Apache::lontexconvert::footer());
+  return 'OK';
 }
  
 $Apache::lonxml::debug=0;