Data::Stag::XSLHandler - Data::Stag::XSLHandler documentation


Data-Stag documentation Contained in the Data-Stag distribution.

Index


Code Index:

NAME

Top

  Data::Stag::XSLHandler     - 

SYNOPSIS

Top

DESCRIPTION

Top

PUBLIC METHODS -

Top


Data-Stag documentation Contained in the Data-Stag distribution.
# $Id: XSLHandler.pm,v 1.2 2004/10/27 22:10:44 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

# makes objects from parser events

package Data::Stag::XSLHandler;
use base qw(Data::Stag::ChainHandler);
use FileHandle;
use XML::LibXML;
use XML::LibXSLT;

use strict;

sub xslt_file {
    my $self = shift;
    if (@_) {
        $self->{_xslt_file} = shift;
        my $fh = FileHandle->new("|xsltproc $self->{_xslt_file} -");
        $self->fh($fh);
    }
    return $self->{_xslt_file};
}

sub init {
    my $self = shift;
    $self->init_writer(@_);
    $self->SUPER::init();
    return;
}

1;