--- loncom/homework/structuretags.pm 2001/06/02 03:59:59 1.40 +++ loncom/homework/structuretags.pm 2001/06/05 16:32:18 1.41 @@ -48,8 +48,13 @@ sub start_problem { my $status; my $datemsg; + #should get back a or the neccesary stuff to start XML/MathML my $result=&Apache::londefdef::start_html($target,$token,$tagstack,$parstack,$parser,$safeeval); + my $head_tag_start='
'.&Apache::lonxml::registerurl(); + my $body_tag_start=''; if ($target eq 'web' || $target eq 'grade') { ($status,$datemsg) = &Apache::lonhomework::check_date('0'); push (@Apache::inputtags::status,$status); @@ -59,9 +64,11 @@ sub start_problem { if ( $status eq 'CLOSED' ) { my $bodytext=&Apache::lonxml::get_all_text("/problem",$$parser[$#$parser]); if ( $target eq "web" ) { - return $result."