1--TEST-- 2Bug #53965 (<xsl:include> cannot find files with relative paths when loaded with "file://") 3--EXTENSIONS-- 4xsl 5--FILE-- 6<?php 7 8$base = 'file://' . __DIR__ . DIRECTORY_SEPARATOR . '53965'; 9 10$xml = new DOMDocument(); 11$xml->load($base . DIRECTORY_SEPARATOR . 'collection.xml'); 12 13$xsl = new DOMDocument(); 14$xsl->load($base . DIRECTORY_SEPARATOR . 'collection.xsl'); 15 16$proc = new XSLTProcessor; 17$proc->importStyleSheet($xsl); 18 19echo $proc->transformToXML($xml); 20?> 21--EXPECT-- 22Hey! Welcome to Nicolas Eliaszewicz's sweet CD collection! 23 24 <h1>Fight for your mind</h1><h2>by Ben Harper - 1995</h2><hr> 25 <h1>Electric Ladyland</h1><h2>by Jimi Hendrix - 1997</h2><hr> 26