} else {
die "Could not find DTD!";
}
- } elsif ($http_method eq 'GET' and $http_path eq "/getxslt") {
+ } elsif ($http_method eq 'GET' and $http_path eq "/getstyleconf") {
+ $filename = $styles_dir."/config/style-configuration.xml";
+ print "Style Configuration: $filename\n";
+ if (stat($filename)) {
+ open(FD, $filename) or die "Cannot open $filename\n";
+ $cont = "";
+ while(<FD>) {
+ $cont .= $_;
+ }
+ close(FD);
+ answer($c,$cont);
+ } else {
+ die "Could not find Style Configuration File!";
+ }
+ } elsif ($http_method eq 'GET' and $http_path eq "/getxslt") {
my $filename = $inputuri;
$filename = $styles_dir."/".$filename;
print "XSLT: $inputuri ==> ($filename)\n";