public function setAttributeNS($namespace_uri, $qname, $value)
    {
        $localname = preg_replace('/^[^:]*:/', '', $qname);
        if (!($n = $this->getAttributeNodeNS($namespace_uri, $localname))) {
            $this->attribute_nodes[] = $n = new PHPTAL_Dom_Attr($qname, $namespace_uri, null, 'UTF-8'); // FIXME: find encoding
        }
        $n->setValue($value);
    }
public function setAttributeNS($namespace_uri, $qname, $value)
    {
        $localname = preg_replace('/^[^:]*:/', '', $qname);
        if (!($n = $this->getAttributeNodeNS($namespace_uri, $localname))) {
            $this->attribute_nodes[] = $n = new PHPTAL_Dom_Attr($qname, $namespace_uri, null, 'UTF-8'); // FIXME: find encoding
        }
        $n->setValue($value);
    }
public function setAttributeNS ( $ namespace_uri , $ qname , $ value ) { $ localname = preg_replace ( '/^[^:]*:/' , '' , $ qname ) ; if ( ! ( $ n = $ this -> getAttributeNodeNS ( $ namespace_uri , $ localname ) ) ) { $ this -> attribute_nodes [ ] = $ n = new PHPTAL_Dom_Attr ( $ qname , $ namespace_uri , null , 'UTF-8' ) ; // FIXME: find encoding } $ n -> setValue ( $ value ) ; }
Set attribute value. Creates new attribute if it doesn't exist yet.

@param string $namespace_uri full namespace URI. "" for default namespace
@param string $qname prefixed qualified name (e.g. "atom:feed") or local name (e.g. "p")
@param string $value unescaped value

@return void
Set attribute value . Creates new attribute if it doesn t exist yet .