[LON-CAPA-cvs] cvs: doc /homework xml.html loncom/xml lonxml.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 21 Oct 2002 17:10:35 -0000
albertel Mon Oct 21 13:10:35 2002 EDT
Modified files:
/loncom/xml lonxml.pm
/doc/homework xml.html
Log:
- documenting the increase in lonxml's globals
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.205 loncom/xml/lonxml.pm:1.206
--- loncom/xml/lonxml.pm:1.205 Sun Oct 20 14:42:53 2002
+++ loncom/xml/lonxml.pm Mon Oct 21 13:10:35 2002
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.205 2002/10/20 18:42:53 www Exp $
+# $Id: lonxml.pm,v 1.206 2002/10/21 17:10:35 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -105,6 +105,10 @@
#================================================== Main subroutine: xmlparse
#debugging control, to turn on debugging modify the correct handler
$Apache::lonxml::debug=0;
+
+# keeps count of the number of warnings and errors generated in a parse
+$warningcount=0;
+$errorcount=0;
#path to the directory containing the file currently being processed
@pwd=();
Index: doc/homework/xml.html
diff -u doc/homework/xml.html:1.5 doc/homework/xml.html:1.6
--- doc/homework/xml.html:1.5 Thu Jun 6 03:14:18 2002
+++ doc/homework/xml.html Mon Oct 21 13:10:35 2002
@@ -82,6 +82,24 @@
xmlparser will try to rencode any 8-bit characters into HTML
Entity Codes, If this is set to a true value it will be
prevented.
+ </li>
+ <li>
+ <i>$Apache::lonxml::errorcount</i> - keeps count of the number
+ of errors generated in a parse
+ </li>
+ <li>
+ <i>$Apache::lonxml::warningcount</i> - keeps count of the
+ number of errors generated in a parse
+ </li>
+ <li>
+ <i>$Apache::lonxml::counter</i> <br />
+ <i>$Apache::lonxml::counter_changed</i> - a counter used to
+ keep track of the number of questions asked, used currently to
+ track bubble numbers, Initialized off of $ENV{'form.counter'},
+ and writes this value to the environment if counter_changed is
+ true, should use the &increment_counter() function to
+ increment this value.
+ </li>
</ul>
<p>
@@ -301,7 +319,7 @@
<address><a href="mailto:albertel@marvin.lite.msu.edu">Guy Albertelli</a></address>
<!-- Created: Sun May 20 15:47:08 EDT 2001 -->
<!-- hhmts start -->
-Last modified: Thu Jun 6 01:16:44 EDT 2002
+Last modified: Mon Oct 21 13:23:28 EDT 2002
<!-- hhmts end -->
</body>
</html>