Lines Matching refs:lang
28 $lang = $node->getAttributeNode('language');
29 $lang->nodeValue = 'en-US';
30 $node->setAttributeNode($lang);
32 $node->removeAttributeNode($lang);
35 echo "\n-- xml:lang --\n";
36 $node->setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:lang', 'en');
37 echo "Language: ".$node->getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang')."\n";
38 echo 'Attribute xml:lang exists?: '.($node->hasAttributeNS('http://www.w3.org/XML/1998/namespace', …
40 $node->removeAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang');
41 echo "Language: ".$node->getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang')."\n";
42 echo 'Attribute xml:lang exists?: '.($node->hasAttributeNS('http://www.w3.org/XML/1998/namespace', …
44 $lang = $dom->createAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:lang');
45 $lang->nodeValue = 'en-GB';
46 $node->setAttributeNodeNS($lang);
47 unset($lang);
48 echo "Language: ".$node->getAttributeNS('http://www.w3.org/XML/1998/namespace', 'lang')."\n";
49 $lang = $node->getAttributeNodeNS('http://www.w3.org/XML/1998/namespace', 'lang');
50 echo "Language: ".$lang->value."\n";
97 -- xml:lang --
99 Attribute xml:lang exists?: Yes
101 Attribute xml:lang exists?: No