1
問題我已經在PHP寫了下面的代碼:與XSLTProcessor中
# LOAD XML FILE
$logs = new DOMDocument();
$logs->load('dbml.xml');
# START XSLT
$xslt = new XSLTProcessor();
$XSL = new DOMDocument();
$XSL->load('dbml.xsl', LIBXML_NOCDATA);
$xslt->importStylesheet($XSL);
#PRINT
$string = $xslt->transformToXML($logs);
代碼工作完美,但有些奇怪的警告出現在我的瀏覽器。
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]: compilation error: file file:///C:/xampp/htdocs/PHP/Escola_Musica/dbml.xsl line 5 element stylesheet in C:\xampp\htdocs\PHP\Escola_Musica\teste.php on line 13
Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]: xsl:version: only 1.0 features are supported in C:\xampp\htdocs\PHP\Escola_Musica\teste.php on line 13
這裏有沒有人有同樣的問題,並能夠解決它。我希望有任何建議。
謝謝你的時間。
問題出在你的dbml.xsl,所以沒有代碼我們應該如何找到問題? – Stony