protected function createAttributeNode( $node, $template = array() )
	{
		$text	= $template;
		foreach( $node->getAttributes() as $key => $value )
			$text[$key]	= $value;
		$text['content']	= (string) $node;
		return $text;
	}