XML / Style Files
XML Files
All HTML / XML files are run through the lonxml handler before
being served to a user. This allows us to rewrite many portion
of a document and to support serverside tags. There are 2 ways
to add new tags to the xml parsing engine, either through
LON-CAPA style files or by writing Perl tag handlers for the
desired tags.
Global Variables
-
Apache::lonxml::debug -
-
Apache::lonxml::pwd -
-
Apache::lonxml::outputstack -
-
Apache::lonxml::redirection -
-
Apache::lonxml::import -
-
Apache::lonxml::extlinks -
-
Apache::lonxml::metamode -
-
Apache::lonxml::evaluate -
-
Apache::lonxml::insertlist -
-
Apache::lonxml::namespace -
-
Apache::lonxml:: -
Notable Perl subroutines
If not specified these functions are in Apache::lonxml
-
xmlparse - see the XMLPARSE figure
-
recurse - acts just like xmlparse, except it
doesn't do the style definition check it always calls
callsub
-
callsub - callsub looks if a perl subroutine is defined
for the current tag and calls. Otherwise it just returns the
tag as it was read in. It also will throw on a default editing
interface unless the tag has a defined subroutine that either
returns something or requests that call sub not add the
editing interface.
-
afterburn - called on the output of xmlparse, it can
add highlights, anchors, and links to regular expersion
matches to the output.
-
register_insert - builds the
%Apache::lonxml::insertlist structure of what tags can have
what other tags inside.
Functions Tag Handlers can use
If not specified these functions are in Apache::lonxml
Style Files
Style File specific tags
-
<definetag> -
-
<render> -
-
<meta> -
-
<tex> / <web> / <latexsource> -
Guy Albertelli
Last modified: Sun May 20 23:34:57 EDT 2001