/[suikacvs]/messaging/manakai/lib/Message/DOM/Notation.pm
Suika

Diff of /messaging/manakai/lib/Message/DOM/Notation.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by wakaba, Thu Jul 12 13:54:46 2007 UTC revision 1.8 by wakaba, Sat Jul 14 09:19:11 2007 UTC
# Line 145  package Message::IF::Notation; Line 145  package Message::IF::Notation;
145  package Message::DOM::Document;  package Message::DOM::Document;
146    
147  sub create_notation ($$) {  sub create_notation ($$) {
148      if (${$_[0]}->{strict_error_checking}) {
149        my $xv = $_[0]->xml_version;
150        if (defined $xv) {
151          if ($xv eq '1.0' and
152              $_[1] =~ /\A\p{InXML_NameStartChar10}\p{InXMLNameChar10}*\z/) {
153            #
154          } elsif ($xv eq '1.1' and
155                   $_[1] =~ /\A\p{InXMLNameStartChar11}\p{InXMLNameChar11}*\z/) {
156            #
157          } else {
158            report Message::DOM::DOMException
159                -object => $_[0],
160                -type => 'INVALID_CHARACTER_ERR',
161                -subtype => 'MALFORMED_NAME_ERR';
162          }
163        }
164      }
165    
166    return Message::DOM::Notation->____new (@_[0, 1]);    return Message::DOM::Notation->____new (@_[0, 1]);
167  } # create_notation  } # create_notation
168    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24