version 1.45, 2001/01/06 15:31:27
|
version 1.48, 2001/01/12 20:38:05
|
Line 13 use HTML::TokeParser;
|
Line 13 use HTML::TokeParser;
|
use Safe; |
use Safe; |
use Safe::Hole; |
use Safe::Hole; |
use Opcode; |
use Opcode; |
use Apache::Constants(:common); |
use Apache::Constants qw(:common); |
|
|
sub register { |
sub register { |
my $space; |
my $space; |
Line 24 sub register {
|
Line 24 sub register {
|
$Apache::lonxml::alltags{$temptag}=$space; |
$Apache::lonxml::alltags{$temptag}=$space; |
} |
} |
} |
} |
|
|
|
sub printalltags { |
|
my $temp; |
|
foreach $temp (sort keys %Apache::lonxml::alltags) { |
|
&Apache::lonxml::debug("$temp -- $Apache::lonxml::alltags{$temp}"); |
|
} |
|
} |
|
|
use Apache::style; |
use Apache::style; |
use Apache::lontexconvert; |
use Apache::lontexconvert; |
Line 44 sub xmlparse {
|
Line 51 sub xmlparse {
|
if ($target eq 'meta') { |
if ($target eq 'meta') { |
$Apache::lonxml::textredirection = 0; |
$Apache::lonxml::textredirection = 0; |
$Apache::lonxml::on_offimport = 1; |
$Apache::lonxml::on_offimport = 1; |
|
} elsif ($target eq 'grade') { |
|
$Apache::lonxml::textredirection = 0; |
|
$Apache::lonxml::on_offimport = 0; |
} else { |
} else { |
$Apache::lonxml::textredirection = 1; |
$Apache::lonxml::textredirection = 1; |
$Apache::lonxml::on_offimport = 0; |
$Apache::lonxml::on_offimport = 0; |
} |
} |
|
#&printalltags(); |
my @pars = (); |
my @pars = (); |
@Apache::lonxml::pwd=(); |
@Apache::lonxml::pwd=(); |
my $pwd=$ENV{'request.filename'}; |
my $pwd=$ENV{'request.filename'}; |
Line 343 sub handler {
|
Line 354 sub handler {
|
my $request=shift; |
my $request=shift; |
|
|
my $target='web'; |
my $target='web'; |
# $Apache::lonxml::debug=1; |
$Apache::lonxml::debug=0; |
if ($ENV{'browser.mathml'}) { |
if ($ENV{'browser.mathml'}) { |
$request->content_type('text/xml'); |
$request->content_type('text/xml'); |
} else { |
} else { |