--- bareface/yakka/library/YakkaXslProcessor.php 2003/01/05 00:22:26 1.1 +++ bareface/yakka/library/YakkaXslProcessor.php 2003/01/06 13:32:51 1.2 @@ -6,7 +6,7 @@ function YakkaXslProcessor() { } - function process($source, $template) { + function process($source, $template, $baseDirectory = "") { if (is_object($source) && $source->is("YakkaXml")) $sourceXml = $source->toXml(); else @@ -25,7 +25,7 @@ $xsltParameters = array(); - xslt_set_base($xsltProcessor, "file://home/bareface/public_html/yakka/templates/Yakka/"); + xslt_set_base($xsltProcessor, "file://".$baseDirectory); $resultXml = new YakkaXml(xslt_process($xsltProcessor, "arg:/_xml", "arg:/_xsl", null, $xsltArguments, $xsltParameters)); xslt_free($xsltProcessor);