Added irspy_xsltproc script which has the right irspy environment.
[irspy-moved-to-github.git] / bin / irspy_xsltproc.pl
1 #!/usr/bin/perl -w
2
3 # $Id: irspy_xsltproc.pl,v 1.1 2007-02-02 12:38:48 sondberg Exp $
4
5 use strict;
6 use warnings;
7 use lib '../lib';
8 use ZOOM::IRSpy;
9
10 my $dbname = 'localhost:8018/IR-Explain---1';
11 my $spy = new ZOOM::IRSpy($dbname, "admin", "fruitbat");
12 my $source_file = shift || die("$0: Please specify xml instance file");
13 my $source_doc = $spy->{libxml}->parse_file($source_file);
14 my $results = $spy->{irspy_to_zeerex_style}->transform($source_doc);
15
16 print $results->toString();