load( trim($field2) , LIBXML_NOBLANKS ); //print_r(error_get_last()); //print $XML->save(); exit; # START XSLT $xslt = new XSLTProcessor(); $XSL = new DOMDocument(); //$xsl->resolveExternals = FALSE; //$xsl->substituteEntities = FALSE; $XSL->load( $field3 ); $xslt->importStylesheet( $XSL ); #PRINT //print $xslt->transformToXML( $XML ); print utf8_decode($xslt->transformToXML( $XML )); ?>