Documentation
transform
usage
HTML = Sushee_Shell->transform( string template {, string outputType } );
parameters
template: path to XSL template
outputType: optional parameter. Possible values : query, xml, text, echo, html. Default is html.
query returns the query executed, in XML, and stops the script.
xml returns the result of the query, in XML, and stop the script.
text returns the result of the query, in rough text, and stop the script.
echo prints the result of the query, in rough text, and continues the execution.
html executes the transformation and returns the result
If you dont want entities in the return (because you want to generate a csv, for example), use Sushee_Shell->transformToText.
examples
include_once('../sushee/common.php');
$shell = new Sushee_Shell();
$shell->addCommand(
'<SEARCH name="news">
<MEDIA mediatype="News"/>
</SEARCH>'
);
$shell->execute();
echo $shell->transform('News.xsl');