Annotation of doc/homework/lonxml_doc, revision 1.2
1.1 albertel 1: Notes:
2:
3: 1) get_all_text
4:
5: check out loncom/homework/structuretags.pm start_block for an example
6: use. It works like HTML::TokeParser->get_text().
7:
8: Additionaly note the existance of a depth counter similar to the one
9: in Gerd's original lonproblem.pm
10:
11: 2) depthcounter
12: $Apache::lonxml::curdepth will be a string like:
13: 2_3_1
14:
15: (tag 1 in the 3 second level tag in the 2 toplevel tag)
16:
17: It gets set by callsub and is available for use in the Perl tag
18: implementations.
1.2 ! albertel 19:
! 20: 3) newparser(parser stack, string ref, directory string)
! 21:
! 22: pass it refereence to an array and a reference to a string scaler. it
! 23: creates a new HTML::TokeParser based on the referenced string. It
! 24: also update Apache::lonxml::pwd to point to the location of the data
! 25: in this parser, which is either what was passed in or is set to the
! 26: topmost item in the stack.
! 27:
! 28: 4) @Apache::lonxml::pwd
! 29:
! 30: contains a stack of directories corresponding to the stack of parsers
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>