Mercurial > pub > Impl
comparison Lib/IMPL/DOM/Schema/SimpleType.pm @ 105:a6e9759ff88a
Fixed a validation errors parameters
author | wizard |
---|---|
date | Tue, 11 May 2010 02:59:49 +0400 |
parents | 196bf443b5e1 |
children | e30bdd040fe3 |
comparison
equal
deleted
inserted
replaced
104:196bf443b5e1 | 105:a6e9759ff88a |
---|---|
38 Source => $ctx && $ctx->{Source} || $this, | 38 Source => $ctx && $ctx->{Source} || $this, |
39 Schema => $this, | 39 Schema => $this, |
40 Message => $this->messageWrongType | 40 Message => $this->messageWrongType |
41 ) unless $node->isa($this->{$nativeType}); | 41 ) unless $node->isa($this->{$nativeType}); |
42 } | 42 } |
43 return $this->SUPER::Validate($node); | 43 return $this->SUPER::Validate($node,$ctx); |
44 } | 44 } |
45 | 45 |
46 sub qname { | 46 sub qname { |
47 $_[0]->nodeName.'[type='.$_[0]->type.']'; | 47 $_[0]->nodeName.'[type='.$_[0]->type.']'; |
48 } | 48 } |