public static function getVarname(\DOMElement $node) { return "__a" . sha1($node->getAttributeNS(Twital::NS, '__internal-id__') . spl_object_hash($node)); }