comparison Lib/IMPL/Transform.pm @ 148:e6447ad85cb4

DOM objects now have a schema and schemaSource properties RegExp now can launder data Improved post to DOM transformation (multiple values a now supported) Added new axes to navigation queries: ancestor and descendant minor changes and bug fixes
author wizard
date Mon, 16 Aug 2010 08:26:44 +0400
parents 4c55aed00ff2
children 4267a2ac3d46
comparison
equal deleted inserted replaced
147:c2aa10fbb396 148:e6447ad85cb4
71 =begin code 71 =begin code
72 72
73 my $obj = new AnyObject; 73 my $obj = new AnyObject;
74 74
75 my $t = new Transform ( 75 my $t = new Transform (
76 AnyClass => sub { 76 SomeClass => sub {
77 my ($this,$object) = @_; 77 my ($this,$object) = @_;
78 return new NewClass({ Name => $object->name, Document => $this->Transform($object->Data) }) 78 return new NewClass({ Name => $object->name, Document => $this->Transform($object->Data) })
79 }, 79 },
80 DocClass => sub { 80 DocClass => sub {
81 my ($this,$object) = @_; 81 my ($this,$object) = @_;