Skip to content

Commit

Permalink
Use xsltproc instead of Xalan
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#159.
  • Loading branch information
iay committed Mar 22, 2018
1 parent 1dbd1a0 commit dd671fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions charting/mdui.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
# mdui.pl
#
use warnings;
use lib "../build";
use Xalan;
use lib '.';
use Months;

# Parse command line arguments
Expand All @@ -29,7 +28,7 @@
foreach $month (@months) {
print "Processing $month\n";

my $command = xalanCall . " -IN cache/$month.xml -XSL statistics_mdui.xsl";
my $command = "xsltproc statistics_mdui.xsl cache/$month.xml";
# print "command is $command\n";
system($command); # || print "ignoring claimed failure in sub command\n";
# print "Xalan run on $fn\n";
Expand Down
5 changes: 2 additions & 3 deletions charting/saml2.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
# Extracts statistics about SAML 2 adoption from the published metadata.
#
use warnings;
use lib "../build";
use Xalan;
use lib ".";
use Months;

# Parse command line arguments
Expand All @@ -25,7 +24,7 @@
# ingest files
foreach $month (@months) {
my $fn = "cache/$month.xml";
open(TXT, xalanCall . " -IN $fn -XSL saml2.xsl|") || die "could not open input file";
open(TXT, "xsltproc saml2.xsl $fn|") || die "could not open input file";
$_ = <TXT>;
chop;
# print "$month: $_\n";
Expand Down
5 changes: 2 additions & 3 deletions charting/sizes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
# sizes.pl
#
use warnings;
use lib "../build";
use lib ".";
use File::stat;
use Xalan;
use Months;

# Parse command line arguments
Expand Down Expand Up @@ -47,7 +46,7 @@
# Now generate a reduced version of the archived
# file that contains only UK federation registered entities.
#
my $command = xalanCall . " -IN $fn -XSL just_ours.xsl -OUT temp.tmp";
my $command = "xsltproc --output temp.tmp just_ours.xsl $fn";
# print "command is $command\n";
system($command); # || print "ignoring claimed failure in sub command\n";
# print "Xalan run on $fn\n";
Expand Down

0 comments on commit dd671fe

Please sign in to comment.