21 |
## |DOMConfiguration| methods |
## |DOMConfiguration| methods |
22 |
|
|
23 |
sub set_parameter ($$;$) { |
sub set_parameter ($$;$) { |
24 |
${$${$_[0]}}->{$_[1]} = $_[2]; |
if (defined $_[2]) { |
25 |
|
${$${$_[0]}}->{$_[1]} = $_[2]; |
26 |
|
} else { |
27 |
|
if ($_[1] eq 'http://suika.fam.cx/www/2006/dom-config/clone-entity-reference-subtree' or |
28 |
|
$_[1] eq 'http://suika.fam.cx/www/2006/dom-config/dtd-default-attribute' or |
29 |
|
$_[1] eq 'http://suika.fam.cx/www/2006/dom-config/strict-document-children') { |
30 |
|
${$${$_[0]}}->{$_[1]} = 1; |
31 |
|
} elsif ($_[1] eq 'error-handler') { |
32 |
|
${$${$_[0]}}->{$_[1]} = sub { }; |
33 |
|
} else { |
34 |
|
delete ${$${$_[0]}}->{$_[1]}; |
35 |
|
} |
36 |
|
} |
37 |
|
## http://suika.fam.cx/www/2006/dom-config/clone-entity-reference-subtree |
38 |
|
## http://suika.fam.cx/www/2006/dom-config/dtd-default-attribute |
39 |
|
## http://suika.fam.cx/www/2006/dom-config/xml-id |
40 |
|
## error-handler |
41 |
|
## xml-dtd |
42 |
|
## http://suika.fam.cx/www/2006/dom-config/strict-document-children |
43 |
} # set_parameter |
} # set_parameter |
44 |
|
|
45 |
package Message::IF::DOMConfiguration; |
package Message::IF::DOMConfiguration; |