[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 11 Aug 2003 20:07:21 -0000
albertel Mon Aug 11 16:07:21 2003 EDT
Modified files:
/loncom/xml scripttag.pm
Log:
- added new internal tag <LONCAPA_TURN_STYLE_OFF /> it is inserted when
expanding out style definitons but not actually parsing (i.e. get_all_text)
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.99 loncom/xml/scripttag.pm:1.100
--- loncom/xml/scripttag.pm:1.99 Wed Jun 18 17:04:42 2003
+++ loncom/xml/scripttag.pm Mon Aug 11 16:07:20 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# <script> definiton
#
-# $Id: scripttag.pm,v 1.99 2003/06/18 21:04:42 albertel Exp $
+# $Id: scripttag.pm,v 1.100 2003/08/11 20:07:20 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -45,6 +45,7 @@
'window','display','storetc','physnet',
'standalone','comment',
'LONCAPA_INTERNAL_TURN_STYLE_ON',
+ 'LONCAPA_INTERNAL_TURN_STYLE_OFF',
'LONCAPA_INTERNAL_LONHTTPD_PORT'));
}
@@ -60,6 +61,24 @@
if (defined($end)) {
&Apache::lonxml::end_tag($tagstack,$parstack,$token);
}
+ return ('','no');
+}
+
+sub start_LONCAPA_INTERNAL_TURN_STYLE_OFF {
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_;
+ $Apache::lonxml::usestyle=0;
+ my $end=&Apache::lonxml::get_param('end',$parstack,$safeeval);
+ if (!$end) {
+ $Apache::lonxml::style_values=$$parstack[-1];
+ $Apache::lonxml::style_end_values=$$parstack[-1];
+ } else {
+ $Apache::lonxml::style_values=$Apache::lonxml::style_end_values;
+ $Apache::lonxml::style_end_values='';
+ }
+ return ('','no');
+}
+
+sub end_LONCAPA_INTERNAL_TURN_STYLE_OFF {
return ('','no');
}