XBRL-Equality.php
public static function attribute_equal( $value1, $value2, $type1, $type2, &$namespaces, &$types = null )
	{
		$qname1 = qname( $value1, $namespaces );
		$qname2 = qname( $value2, $namespaces );

		if ( ! is_null( $qname1 ) && ! is_null( $qname1 ) )
		{
			// The qnames should be equivalent
			if ( ! $qname1->equals( $qname2 ) ) return false;

			$value1 = $qname1->localName;
			$value2 = $qname1->localName;
		}
		else if ( is_null( $qname1 ) || is_null( $qname1 ) )
		{
			return false;
		}

		return XBRL_Equality::xequal( $value1, $value2, $type1, $type2, $types );
	}
public static function attribute_equal( $value1, $value2, $type1, $type2, &$namespaces, &$types = null )
	{
		$qname1 = qname( $value1, $namespaces );
		$qname2 = qname( $value2, $namespaces );

		if ( ! is_null( $qname1 ) && ! is_null( $qname1 ) )
		{
			// The qnames should be equivalent
			if ( ! $qname1->equals( $qname2 ) ) return false;

			$value1 = $qname1->localName;
			$value2 = $qname1->localName;
		}
		else if ( is_null( $qname1 ) || is_null( $qname1 ) )
		{
			return false;
		}

		return XBRL_Equality::xequal( $value1, $value2, $type1, $type2, $types );
	}
public static function attribute_equal ( $ value1 , $ value2 , $ type1 , $ type2 , & $ namespaces , & $ types = null ) { $ qname1 = qname ( $ value1 , $ namespaces ) ; $ qname2 = qname ( $ value2 , $ namespaces ) ; if ( ! is_null ( $ qname1 ) && ! is_null ( $ qname1 ) ) { // The qnames should be equivalent
 if ( ! $ qname1 -> equals ( $ qname2 ) ) return false ; $ value1 = $ qname1 -> localName ; $ value2 = $ qname1 -> localName ; } else if ( is_null ( $ qname1 ) || is_null ( $ qname1 ) ) { return false ; } return XBRL_Equality :: xequal ( $ value1 , $ value2 , $ type1 , $ type2 , $ types ) ; }
The two attributes have local names and namespaces that are S-Equal and have values that are X-Equal

@param string $value1 An attribute in the form 'localname' or 'prefix:localname'
@param string $value2 An attribute in the form 'localname' or 'prefix:localname'
@param string $type1 The type of $value1 (default: XBRL_Equality::$EQUALITY_TYPE_STRING)
@param string $type2 The type of $value2 (default: XBRL_Equality::$EQUALITY_TYPE_STRING)
@param array $namespaces A list of namespaces indexed by prefix from the current document
@param XBRL_Types $types A reference to an XBRL_Types instance
@return bool
The two attributes have local names and namespaces that are S - Equal and have values that are X - Equal