11 |
my $XMLNS_NS = q<http://www.w3.org/2000/xmlns/>; |
my $XMLNS_NS = q<http://www.w3.org/2000/xmlns/>; |
12 |
|
|
13 |
my $Namespace = { |
my $Namespace = { |
14 |
|
q<http://www.w3.org/2005/Atom> => {module => 'Whatpm::ContentChecker::Atom'}, |
15 |
$HTML_NS => {module => 'Whatpm::ContentChecker::HTML'}, |
$HTML_NS => {module => 'Whatpm::ContentChecker::HTML'}, |
16 |
$XML_NS => {loaded => 1}, |
$XML_NS => {loaded => 1}, |
17 |
$XMLNS_NS => {loaded => 1}, |
$XMLNS_NS => {loaded => 1}, |
199 |
|
|
200 |
my $docel_nsuri = $docel->namespace_uri; |
my $docel_nsuri = $docel->namespace_uri; |
201 |
$docel_nsuri = '' unless defined $docel_nsuri; |
$docel_nsuri = '' unless defined $docel_nsuri; |
202 |
|
unless ($Namespace->{$docel_nsuri}->{loaded}) { |
203 |
|
if ($Namespace->{$docel_nsuri}->{module}) { |
204 |
|
eval qq{ require $Namespace->{$docel_nsuri}->{module} } or die $@; |
205 |
|
} else { |
206 |
|
$Namespace->{$docel_nsuri}->{loaded} = 1; |
207 |
|
} |
208 |
|
} |
209 |
my $docel_def = $Element->{$docel_nsuri}->{$docel->manakai_local_name} || |
my $docel_def = $Element->{$docel_nsuri}->{$docel->manakai_local_name} || |
210 |
$Element->{$docel_nsuri}->{''} || |
$Element->{$docel_nsuri}->{''} || |
211 |
$ElementDefault; |
$ElementDefault; |