Mercurial > pub > Impl
diff Lib/IMPL/DOM/Schema/NodeSet.pm @ 20:267460284fb3
DOM Schema
author | Sergey |
---|---|
date | Tue, 22 Sep 2009 17:17:38 +0400 |
parents | 1ca530e5c9c5 |
children | 7f00786f8210 |
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Schema/NodeSet.pm Fri Sep 11 16:30:39 2009 +0400 +++ b/Lib/IMPL/DOM/Schema/NodeSet.pm Tue Sep 22 17:17:38 2009 +0400 @@ -19,7 +19,7 @@ my ($this,%args) = @_; $this->messageMax( $args{messageMax} || 'Too many %Node.nodeName% nodes'); - $this->messageMin( $args{messageMin} || '%Schema.nodeName% nodes expected'); + $this->messageMin( $args{messageMin} || '%Schema.name% nodes expected'); $this->messageUnexpected( $args{messageUnexpected} || 'A %Node.nodeName% isn\'t allowed here'); } @@ -34,7 +34,7 @@ if ($_->isa('IMPL::DOM::Schema::AnyNode')) { $anyNode = {Schema => $_, Min => $_->minOccur, Max => $_->maxOccur eq 'unbounded' ? undef : $_->maxOccur , Seen => 0 }; } else { - $nodes{$_->nodeName} = {Schema => $_, Min => $_->minOccur, Max => $_->maxOccur eq 'unbounded' ? undef : $_->maxOccur , Seen => 0 }; + $nodes{$_->name} = {Schema => $_, Min => $_->minOccur, Max => $_->maxOccur eq 'unbounded' ? undef : $_->maxOccur , Seen => 0 }; } }