| Data-Stag documentation | Contained in the Data-Stag distribution. |
| Data-Stag documentation | Contained in the Data-Stag distribution. |
# $Id: XSLTHandler.pm,v 1.4 2005/11/03 01:09:04 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::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;