/[cvs]/bareface/yakka/library/YakkaXslProcessor.php
ViewVC logotype

Diff of /bareface/yakka/library/YakkaXslProcessor.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by bareface, Sun Jan 5 00:22:26 2003 UTC revision 1.2 by bareface, Mon Jan 6 13:32:51 2003 UTC
# Line 6  class YakkaXslProcessor { Line 6  class YakkaXslProcessor {
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
# Line 25  class YakkaXslProcessor { Line 25  class YakkaXslProcessor {
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed