Diff for /loncom/xml/scripttag.pm between versions 1.46 and 1.47

version 1.46, 2001/07/12 14:29:17 version 1.47, 2001/07/12 15:53:44
Line 2 Line 2
 # <script> definiton  # <script> definiton
 # 2/21 Guy  # 2/21 Guy
   
 package Apache::scripttag;   package Apache::scripttag;
   
 use strict;  use strict;
 use Apache::lonnet;  use Apache::lonnet;
 use Apache::style;  use Apache::style;
   
   #Globals
   # this used to pass around the standard callsub arguments to a tag func
   # so xmlparse can reenter the inner_xmlparse loop.
   
   @Apache::scripttag::parser_env = ();
 sub BEGIN {  sub BEGIN {
   &Apache::lonxml::register('Apache::scripttag',('script','scriptlib',    &Apache::lonxml::register('Apache::scripttag',('script','scriptlib',
  'parserlib','import',   'parserlib','import',
Line 17  sub BEGIN { Line 22  sub BEGIN {
   
 sub start_script {  sub start_script {
   my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;    my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
     @Apache::scripttag::parser_env = @_;
   my $result='';    my $result='';
   my $type= &Apache::lonxml::get_param('type',$parstack,$safeeval);    my $type= &Apache::lonxml::get_param('type',$parstack,$safeeval);
   &Apache::lonxml::debug("found type of $type");    &Apache::lonxml::debug("found type of $type");
Line 262  sub start_physnet { Line 268  sub start_physnet {
 }  }
   
 sub end_physnet {  sub end_physnet {
     return '';
 }  }
   
   sub xmlparse {
     my ($string) = @_;
     &Apache::lonxml::debug("Got $string");
     my ($target,$token,$tagstack,$parstack,$oldparser,$safeeval,$style)=
       @Apache::scripttag::parser_env;
     my @parser;
     &Apache::lonxml::newparser(\@parser,\$string);
     my $result=&Apache::lonxml::inner_xmlparse($target,$tagstack,
        $parstack,\@parser,
        $safeeval,$style);
     return $result;
   }
   
 1;  1;
 __END__  __END__

Removed from v.1.46  
changed lines
  Added in v.1.47


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>