--- loncom/xml/lonxml.pm 2005/03/16 13:24:15 1.363 +++ loncom/xml/lonxml.pm 2005/03/17 13:56:32 1.366 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.363 2005/03/16 13:24:15 albertel Exp $ +# $Id: lonxml.pm,v 1.366 2005/03/17 13:56:32 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1056,7 +1056,8 @@ sub get_all_text { sub newparser { my ($parser,$contentref,$dir) = @_; push (@$parser,HTML::LCParser->new($contentref)); - $$parser['-1']->xml_mode('1'); + $$parser[-1]->xml_mode(1); + $$parser[-1]->marked_sections(1); if ( $dir eq '' ) { push (@Apache::lonxml::pwd, $Apache::lonxml::pwd[$#Apache::lonxml::pwd]); } else { @@ -1251,7 +1252,7 @@ $initialize $xml_help $buttons
- +
$buttons
@@ -1297,11 +1298,7 @@ sub handler { $Apache::lonxml::debug=$ENV{'user.debug'}; - if ($ENV{'browser.mathml'}) { - &Apache::loncommon::content_type($request,'text/xml'); - } else { - &Apache::loncommon::content_type($request,'text/html'); - } + &Apache::loncommon::content_type($request,'text/html'); &Apache::loncommon::no_cache($request); if ($ENV{'request.state'} eq 'published') { $request->set_last_modified(&Apache::lonnet::metadata($request->uri,