--- loncom/xml/lonxml.pm 2001/06/12 21:10:22 1.91 +++ loncom/xml/lonxml.pm 2001/06/13 20:02:28 1.93 @@ -10,6 +10,7 @@ # 5/26 Gerd Kortemeyer # 5/27 H. K. Ng # 6/2,6/3,6/8,6/9 Gerd Kortemeyer +# 6/12,6/13 H. K. Ng package Apache::lonxml; use vars @@ -215,7 +216,6 @@ sub printalltags { } sub xmlparse { -# $Apache::lonxml::debug=1; my ($target,$content_file_string,$safeinit,%style_for_target) = @_; if ($target eq 'meta') { $Apache::lonxml::redirection = 0; @@ -417,11 +417,6 @@ sub callsub { { my $sub1; no strict 'refs'; - if ($target eq 'edit' && $token->[0] eq 'S') { - $currentstring = &Apache::edit::tag_start($target,$token,$tagstack, - $parstack,$parser, - $safeeval,$style); - } my $tag=$token->[1]; my $space=$Apache::lonxml::alltags{$tag}; if (!$space) { @@ -507,7 +502,7 @@ sub init_safespace { $safehole->wrap(\&Math::Random::random_noncentral_f,$safeeval,'&math_random_noncentral_f'); $safehole->wrap(\&Math::Random::random_normal,$safeeval,'&math_random_normal'); $safehole->wrap(\&Math::Random::random_permutation,$safeeval,'&math_random_permutation'); -# $safehole->wrap(\&Math::Random::random_permuted_index,$safeeval,'&math_random_permuted_index'); + $safehole->wrap(\&Math::Random::random_permuted_index,$safeeval,'&math_random_permuted_index'); $safehole->wrap(\&Math::Random::random_uniform,$safeeval,'&math_random_uniform'); $safehole->wrap(\&Math::Random::random_poisson,$safeeval,'&math_random_poisson'); $safehole->wrap(\&Math::Random::random_uniform_integer,$safeeval,'&math_random_uniform_integer'); @@ -855,11 +850,13 @@ sub register_insert { my $line = $data[$i]; if ( $line =~ /^\#/ || $line =~ /^\s*\n/) { next; } if ( $line =~ /TABLE/ ) { last; } - my ($tag,$descrip,$function,$show) = split(/,/, $line); + my ($tag,$descrip,$color,$function,$show) = split(/,/, $line); $insertlist{"$tagnum.tag"} = $tag; $insertlist{"$tagnum.description"} = $descrip; + $insertlist{"$tagnum.color"} = $color; $insertlist{"$tagnum.function"} = $function; $insertlist{"$tagnum.show"}= $show; + $insertlist{"$tag.num"}=$tagnum; $tagnum++; } $i++; #skipping TABLE line