blob: 76347bad316ec154382160edd3da0119102bf28c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
--- lib/Apache/PageKit/Content.pm.orig Tue Oct 23 23:49:55 2001
+++ lib/Apache/PageKit/Content.pm Thu Dec 6 15:13:16 2001
@@ -20,11 +20,6 @@
require XML::LibXML;
require XML::LibXSLT;
- # call backs so that we can note the mtimes of dependant files
- XML::LibXML->match_callback(\&match_uri);
- XML::LibXML->open_callback(\&open_uri);
- XML::LibXML->close_callback(\&close_uri);
- XML::LibXML->read_callback(\&read_uri);
}
$CONTENT = $content;
@@ -62,6 +57,11 @@
# $INCLUDE_MTIMES->{$stylesheet_file} = $stylesheet_mtime;
my $parser = XML::LibXML->new(ext_ent_handler => \&open_uri);
+ # call backs so that we can note the mtimes of dependant files
+ $parser->match_callback(\&match_uri);
+ $parser->open_callback(\&open_uri);
+ $parser->close_callback(\&close_uri);
+ $parser->read_callback(\&read_uri);
my $xslt = XML::LibXSLT->new();
my $source = $parser->parse_file("/$component_id.xml");
my $style_doc = $parser->parse_file($stylesheet_file);
@@ -155,7 +155,7 @@
sub match_uri {
my $uri = shift;
- return $uri !~ /^\w+:/;
+ return $uri !~ /(^\w+:)|(catalog$)/;
}
sub open_uri {
|