Documentation
transformToText
usage
String path = Sushee_Shell->transformToText( string template [, string outputType ] );
paramètres
template: path to XSL template
outputType: optional parameter. Possible values : query, xml, text, echo, return. Default is return.
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.
return executes the transformation and returns the result
The main difference between Sushee_Shell->transform and Sushee_Shell->transfromToText is that the second one wont return XML entities ( Ex : é )
exemples
include_once('../sushee/common.php');
$shell = new Sushee_Shell();
$shell->addCommand(
'<GET name="document">
<MEDIA ID="'.encode_to_xml($_GET['ID'])."/>
</GET>'
);
$shell->execute();
echo $shell->transformToText('document-csv.xsl');