public static function save(DOMDocument $dom)
	{
		$xml = self::innerXML($dom->documentElement);
		if (strpos($xml, 'xmlns:xsl') !== false)
		{
			$xml = preg_replace('((<[^>]+?) xmlns:xsl="' . self::XMLNS_XSL . '")', '$1', $xml);
		}

		return $xml;
	}
public static function save(DOMDocument $dom)
	{
		$xml = self::innerXML($dom->documentElement);
		if (strpos($xml, 'xmlns:xsl') !== false)
		{
			$xml = preg_replace('((<[^>]+?) xmlns:xsl="' . self::XMLNS_XSL . '")', '$1', $xml);
		}

		return $xml;
	}
public static function save ( DOMDocument $ dom ) { $ xml = self :: innerXML ( $ dom -> documentElement ) ; if ( strpos ( $ xml , 'xmlns:xsl' ) !== false ) { $ xml = preg_replace ( '((<[^>]+?) xmlns:xsl="' . self :: XMLNS_XSL . '")' , '$1' , $ xml ) ; } return $ xml ; }
Serialize a loaded template back into a string

NOTE: removes the root node created by load()

@param  DOMDocument $dom
@return string
Serialize a loaded template back into a string