If true, transform returns undef on failure. By default, it returns the
original string passed. Errors are reported as described.
+=head2 print_warns
+
+ If set, print error messages to STDERR. True by default.
+
=head1 ERROR CODES
=head2 Error 1
use base qw(Class::Accessor);
__PACKAGE__->mk_ro_accessors(qw( err errstr ));
-__PACKAGE__->mk_accessors(qw( do_not_return_source ));
+__PACKAGE__->mk_accessors(qw( do_not_return_source print_warns ));
=head2 transform
$self->_set_error;
$self->{xslt_hash}={};
+ $self->{print_warns}=1 unless exists $self->{print_warns};
$self->{do_not_return_source}=0 unless exists $self->{do_not_return_source};
#by default we return source on a failing transformation
#but it could be passed at construction time already
if( $addmsg ) {
$self->{errstr}.= " $addmsg";
}
+
+ warn $self->{errstr} if $self->{print_warns};
return;
}