protected function checkNode(DOMNode $node, Tag $tag)
	{
		if ($node instanceof DOMAttr)
		{
			$this->checkAttributeNode($node, $tag);
		}
		elseif ($node instanceof DOMElement)
		{
			if ($node->namespaceURI === self::XMLNS_XSL && $node->localName === 'copy-of')
			{
				$this->checkCopyOfNode($node, $tag);
			}
			else
			{
				$this->checkElementNode($node, $tag);
			}
		}
	}
protected function checkNode(DOMNode $node, Tag $tag)
	{
		if ($node instanceof DOMAttr)
		{
			$this->checkAttributeNode($node, $tag);
		}
		elseif ($node instanceof DOMElement)
		{
			if ($node->namespaceURI === self::XMLNS_XSL && $node->localName === 'copy-of')
			{
				$this->checkCopyOfNode($node, $tag);
			}
			else
			{
				$this->checkElementNode($node, $tag);
			}
		}
	}
protected function checkNode ( DOMNode $ node , Tag $ tag ) { if ( $ node instanceof DOMAttr ) { $ this -> checkAttributeNode ( $ node , $ tag ) ; } elseif ( $ node instanceof DOMElement ) { if ( $ node -> namespaceURI === self :: XMLNS_XSL && $ node -> localName === 'copy-of' ) { $ this -> checkCopyOfNode ( $ node , $ tag ) ; } else { $ this -> checkElementNode ( $ node , $ tag ) ; } } }
Test whether a node is safe

@param  DOMNode $node Source node
@param  Tag     $tag  Reference tag
@return void
Test whether a node is safe