Mercurial > pub > Impl
diff Lib/IMPL/DOM/Schema/ComplexNode.pm @ 19:1ca530e5c9c5
DOM схема, требует переработки в части схемы для описания схем. Автоверификация не проходит
author | Sergey |
---|---|
date | Fri, 11 Sep 2009 16:30:39 +0400 |
parents | 818c74b038ae |
children | 267460284fb3 |
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Schema/ComplexNode.pm Thu Sep 10 17:42:47 2009 +0400 +++ b/Lib/IMPL/DOM/Schema/ComplexNode.pm Fri Sep 11 16:30:39 2009 +0400 @@ -25,15 +25,7 @@ sub Validate { my ($this,$node) = @_; - if (my $type = $this->nodeType) { - my $schemaType = $this->Schema->ResolveType($type); - return $schemaType->Validate($node); - } else { - my @errors; - push @errors, $_->Validate foreach @{$this->childNodes}; - - return @errors; - } + map $_->Validate($node), @{$this->childNodes}; } 1;