protected function xpath($query, DOMNode $node = null)
	{
		$query = str_replace('$XSL', '"' . self::XMLNS_XSL . '"', $query);

		return iterator_to_array($this->xpath->query($query, $node));
	}
protected function xpath($query, DOMNode $node = null)
	{
		$query = str_replace('$XSL', '"' . self::XMLNS_XSL . '"', $query);

		return iterator_to_array($this->xpath->query($query, $node));
	}
protected function xpath ( $ query , DOMNode $ node = null ) { $ query = str_replace ( '$XSL' , '"' . self :: XMLNS_XSL . '"' , $ query ) ; return iterator_to_array ( $ this -> xpath -> query ( $ query , $ node ) ) ; }
Evaluate given XPath expression

For convenience, $XSL is replaced with the XSL namespace URI as a string

@param  string    $query XPath query
@param  DOMNode   $node  Context node
@return DOMNode[]
Evaluate given XPath expression