public static function compile( $taxonomy_file, $namespace = null, $output_basename = null )
	{
		$xbrl = XBRL::load_taxonomy( $taxonomy_file, true );
		if ( $xbrl === false )
		{
			XBRL_Log::getInstance()->err( "Taxonomy failed to load" );
			return false;
		}

		$taxonomy = $namespace === null ? $xbrl : $xbrl->getTaxonomyForNamespace( $namespace );

		$xbrl->saveTaxonomy( $namespace, $output_basename );

		return $taxonomy;
	}