File: XSLTHandler.pm

package info (click to toggle)
libdata-stag-perl 0.14-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 1,484 kB
  • ctags: 753
  • sloc: perl: 6,394; lisp: 141; xml: 116; ansic: 55; makefile: 17; sh: 2
file content (49 lines) | stat: -rw-r--r-- 918 bytes parent folder | download | duplicates (3)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# $Id: XSLTHandler.pm,v 1.5 2008/06/05 06:17:51 cmungall Exp $
#
# This GO module is maintained by Chris Mungall <cjm@fruitfly.org>
#
# see also - http://www.geneontology.org
#          - http://www.godatabase.org/dev
#
# You may distribute this module under the same terms as perl itself

=head1 NAME

  Data::Stag::XSLTHandler - XSLT Handler

=head1 SYNOPSIS



=cut

=head1 DESCRIPTION

=head1 PUBLIC METHODS - 

=cut

# makes objects from parser events

package Data::Stag::XSLTHandler;
use base qw(Data::Stag::BaseHandler);
use Data::Stag;

use strict;

sub end_stag {
    my $self = shift;
    my $stag = shift;
    #$self->SUPER::end_stag($stag);
    my $results = $stag->xslt($self->xslt_file);
    @$stag = @$results;
    return;
}

sub xslt_file {
    my $self = shift;
    $self->{_xslt_file} = shift if @_;
    return $self->{_xslt_file} || die "You must subclass XSLTHandler and provide xslt_file";
}

1;