Mercurial > pub > Impl
view Lib/IMPL/DOM/Transform.pm @ 130:06a34c197b05
Added support for utf-8 and old versions of CGI module
author | wizard |
---|---|
date | Wed, 16 Jun 2010 01:50:56 +0400 |
parents | f017c0d7527c |
children | e6447ad85cb4 |
line wrap: on
line source
package IMPL::DOM::Transform; use strict; use warnings; use base qw(IMPL::Transform); __PACKAGE__->PassThroughArgs; sub GetClassForObject { my ($this,$object) = @_; if (my $class = ref $object) { if (UNIVERSAL::isa($object,'IMPL::DOM::Node')) { return $object->nodeName; } else { return $class; } } else { return undef; } } 1; __END__ =pod =head1 DESCRIPTION Преобразование для DOM документа, использует имя документа узла для применения подходящего преобразования. =cut