blib/lib/Data/Stag/XSLHandler.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 36 CC 2 SCAR 11.0
CC
2
Cov
0%
xslt_file
6.0
init
2.0
BEGIN
2.0
CRAP 3.0
1 # $Id: XSLHandler.pm,v 1.3 2008/06/05 06:17:51 cmungall Exp $
2 #
3 # This GO module is maintained by Chris Mungall <cjm@fruitfly.org>
4 #
5 # see also - http://www.geneontology.org
6 # - http://www.godatabase.org/dev
7 #
8 # You may distribute this module under the same terms as perl itself
9  
10 =head1 NAME
11  
12 Data::Stag::XSLHandler - XSL Handler
13  
14 =head1 SYNOPSIS
15  
16  
17  
18 =cut
19  
20 =head1 DESCRIPTION
21  
22 =head1 PUBLIC METHODS -
23  
24 =cut
25  
26 # makes objects from parser events
27  
28 package Data::Stag::XSLHandler;
29 use base qw(Data::Stag::ChainHandler);
30 use FileHandle;
31 use XML::LibXML;
32 use XML::LibXSLT;
33  
34 use strict;
35  
36 sub xslt_file {
37 my $self = shift;
38 if (@_) {
39 $self->{_xslt_file} = shift;
40 my $fh = FileHandle->new("|xsltproc $self->{_xslt_file} -");
41 $self->fh($fh);
42 }
43 return $self->{_xslt_file};
44 }
45  
46 sub init {
47 my $self = shift;
48 $self->init_writer(@_);
49 $self->SUPER::init();
50 return;
51 }
52  
53 1;