--- loncom/homework/structuretags.pm 2005/10/07 13:56:19 1.304 +++ loncom/homework/structuretags.pm 2005/10/18 21:46:42 1.306 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.304 2005/10/07 13:56:19 albertel Exp $ +# $Id: structuretags.pm,v 1.306 2005/10/18 21:46:42 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -74,8 +74,7 @@ sub body_tag_start { 'onunload="'.&Apache::lonmenu::unloadevents().'" '; if ($env{'browser.imagesuppress'} eq 'on') { $background=''; } if ($background) { - $Apache::lonxml::extlinks[$#Apache::lonxml::extlinks+1]= - $background; + &Apache::lonxml::extlink($background); $body_tag_start.='background="'.$background.'" '; } else { if (($bgcolor) && ($env{'browser.blackwhite'} ne 'on')) { @@ -1063,7 +1062,9 @@ sub start_randomlist { if ($target eq 'answer' || $target eq 'grade' || $target eq 'web' || $target eq 'tex' || $target eq 'analyze') { my $body= &Apache::lonxml::get_all_text("/randomlist",$parser); - my $b_parser= HTML::TokeParser->new(\$body); + my $b_parser= HTML::LCParser->new(\$body); + $b_parser->xml_mode(1); + $b_parser->marked_sections(1); my $b_tok; my @randomlist; my $list_item;