--- loncom/xml/lonxml.pm 2001/10/26 17:09:04 1.136 +++ loncom/xml/lonxml.pm 2001/11/07 21:26:04 1.138 @@ -95,8 +95,6 @@ sub xmlbegin { } else { $output=''; } - my $date=localtime; - $output .=&Apache::loncommon::cacheheader(); return $output; } @@ -1010,7 +1008,7 @@ sub handler { } else { $request->content_type('text/html'); } - + &Apache::loncommon::no_cache($request); $request->send_http_header; return OK if $request->header_only; @@ -1163,7 +1161,15 @@ sub register_insert { sub description { my ($token)=@_; - return $insertlist{$insertlist{"$token->[1].num"}.'.description'}; + my $tagnum; + my $tag=$token->[1]; + foreach my $namespace (reverse @Apache::lonxml::namespace) { + my $testtag=$namespace.'::'.$tag; + $tagnum=$insertlist{"$testtag.num"}; + if (defined($tagnum)) { last; } + } + if (!defined ($tagnum)) { $tagnum=$Apache::lonxml::insertlist{"$tag.num"}; } + return $insertlist{$tagnum.'.description'}; } # ----------------------------------------------------------------- whichuser