* along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * You may contact the authors of XTML by e-mail at: * developers@classesarecode.net * * The latest version of XTML can be obtained from: * http://developer.berlios.de/projects/xtml/ * * @link http://developer.berlios.de/projects/xtml/ * @copyright 2005, 2006 by The Classes Are Code Group (see AUTHORS file for contributor list). * @author John Allen <*****@*****.**> * @version 0.99 * */ $configuration = new DOMDocument(); $scriptName = basename($_SERVER['SCRIPT_FILENAME']); $scriptDir = str_replace($scriptName, "", $_SERVER['SCRIPT_FILENAME']); $configFile = $scriptDir . "config/config.xml"; if (file_exists($configFile) && $configuration->load($configFile)) { $nodes = $configuration->getElementsByTagName("Initialisation"); if ($nodes->length > 0) { $element = $nodes->item(0); $include_path = $element->getAttribute("include_path"); ini_set('include_path', $include_path . ":" . ini_get('include_path')); } } require_once "XTMLProcessor.class.php"; $xtml = new XTMLProcessor(); $xtml->setConfiguration($configuration); $xtml->render();