public function asDOM()
	{
		$xml = '<xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform">'
		     . $this->__toString()
		     . '</xsl:template>';

		$dom = new TemplateDocument($this);
		$dom->loadXML($xml);

		return $dom;
	}
public function asDOM()
	{
		$xml = '<xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform">'
		     . $this->__toString()
		     . '</xsl:template>';

		$dom = new TemplateDocument($this);
		$dom->loadXML($xml);

		return $dom;
	}
public function asDOM ( ) { $ xml = '<xsl:template xmlns:xsl="http://www.w3.org/1999/XSL/Transform">' . $ this -> __toString ( ) . '</xsl:template>' ; $ dom = new TemplateDocument ( $ this ) ; $ dom -> loadXML ( $ xml ) ; return $ dom ; }
Return the content of this template as a DOMDocument

NOTE: the content is wrapped in an <xsl:template/> node

@return DOMDocument
Return the content of this template as a DOMDocument