6 |
function YakkaXslProcessor() { |
function YakkaXslProcessor() { |
7 |
} |
} |
8 |
|
|
9 |
function process($source, $template) { |
function process($source, $template, $baseDirectory = "") { |
10 |
if (is_object($source) && $source->is("YakkaXml")) |
if (is_object($source) && $source->is("YakkaXml")) |
11 |
$sourceXml = $source->toXml(); |
$sourceXml = $source->toXml(); |
12 |
else |
else |
25 |
|
|
26 |
$xsltParameters = array(); |
$xsltParameters = array(); |
27 |
|
|
28 |
xslt_set_base($xsltProcessor, "file://home/bareface/public_html/yakka/templates/Yakka/"); |
xslt_set_base($xsltProcessor, "file://".$baseDirectory); |
29 |
$resultXml = new YakkaXml(xslt_process($xsltProcessor, "arg:/_xml", "arg:/_xsl", null, $xsltArguments, $xsltParameters)); |
$resultXml = new YakkaXml(xslt_process($xsltProcessor, "arg:/_xml", "arg:/_xsl", null, $xsltArguments, $xsltParameters)); |
30 |
xslt_free($xsltProcessor); |
xslt_free($xsltProcessor); |
31 |
|
|