Mercurial > pub > Impl
comparison Lib/IMPL/DOM/Schema/SwitchNode.pm @ 236:2904da230022
DOM refactoring
author | sergey |
---|---|
date | Mon, 15 Oct 2012 04:23:01 +0400 |
parents | d1676be8afcc |
children | b8c724f6de36 |
comparison
equal
deleted
inserted
replaced
235:a4d9126edcbb | 236:2904da230022 |
---|---|
32 | 32 |
33 if ( my ($schema) = $this->selectNodes(sub {$_[0]->name eq $node->nodeName} ) ) { | 33 if ( my ($schema) = $this->selectNodes(sub {$_[0]->name eq $node->nodeName} ) ) { |
34 return $schema->Validate($node); | 34 return $schema->Validate($node); |
35 } else { | 35 } else { |
36 return new IMPL::DOM::Schema::ValidationError( | 36 return new IMPL::DOM::Schema::ValidationError( |
37 Node => $node, | 37 node => $node, |
38 Source => $this, | 38 source => $this, |
39 Message => $this->messageNoMatch | 39 message => $this->messageNoMatch |
40 ); | 40 ); |
41 } | 41 } |
42 } | 42 } |
43 | 43 |
44 1; | 44 1; |