[LON-CAPA-cvs] cvs: loncom /xml londefdef.pm lonxml.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 24 Oct 2003 21:31:05 -0000


albertel		Fri Oct 24 17:31:05 2003 EDT

  Modified files:              
    /loncom/xml	londefdef.pm lonxml.pm 
  Log:
  - londefdef global reinit paranoia
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.187 loncom/xml/londefdef.pm:1.188
--- loncom/xml/londefdef.pm:1.187	Fri Oct 24 17:25:50 2003
+++ loncom/xml/londefdef.pm	Fri Oct 24 17:31:05 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.187 2003/10/24 21:25:50 albertel Exp $
+# $Id: londefdef.pm,v 1.188 2003/10/24 21:31:05 albertel Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -52,12 +52,20 @@
 use Apache::lonmeta();
 use Apache::Constants qw(:common);
 
-$Apache::londefdef::TD_redirection=0;
 
 BEGIN {
 
     &Apache::lonxml::register('Apache::londefdef',('a','abbr','acronym','accessrule','address','allow','applet','area','b','base','basefont','bgo','bgsound','big','blink','blockquote','blankspace','body','br','button','caption','center','cite','code','col','colgroup','dd','del','dfn','dir','div','dl','dt','em','embed','externallink','fieldset','font','form','frame','frameset','h1','h2','h3','h4','h5','h6','head','hr','html','i','iframe','img','input','ins','insert','isindex','kbd','keygen','label','layer','legend','li','link','m','map','marquee','menu','meta','multicol','nobr','noembed','noframes','nolayer','noscript','object','ol','optgroup','option','output','p','param','pre','q','s','samp','select','server','small','spacer','span','strike','strong','sub','sup','table','tbody','td','textarea','tfoot','th','thead','title','tr','tt','tthoption','u','ul','var','wbr','hideweboutput'));
 
+}
+
+sub initialize_londefdef {
+    $Apache::londefdef::TD_redirection=0;
+    @Apache::londefdef::table = ();
+    $Apache::londefdef::select=0;
+    @Apache::londefdef::description=();
+    $Apache::londefdef::DD_redirection=0;
+    $Apache::londefdef::DT_redirection=0;
 }
 
 #======================= TAG SUBROUTINES =====================
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.286 loncom/xml/lonxml.pm:1.287
--- loncom/xml/lonxml.pm:1.286	Thu Oct 23 14:14:16 2003
+++ loncom/xml/lonxml.pm	Fri Oct 24 17:31:05 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.286 2003/10/23 18:14:16 albertel Exp $
+# $Id: lonxml.pm,v 1.287 2003/10/24 21:31:05 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -320,6 +320,7 @@
  &Apache::inputtags::initialize_inputtags();
  &Apache::outputtags::initialize_outputtags();
  &Apache::edit::initialize_edit();
+ &Apache::londefdef::initialize_londefdef();
 
 #
 # do we have a course style file?