summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TXmlTransform.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/UI/WebControls/TXmlTransform.php')
-rw-r--r--framework/Web/UI/WebControls/TXmlTransform.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/framework/Web/UI/WebControls/TXmlTransform.php b/framework/Web/UI/WebControls/TXmlTransform.php
index 12dae09d..79e96af0 100644
--- a/framework/Web/UI/WebControls/TXmlTransform.php
+++ b/framework/Web/UI/WebControls/TXmlTransform.php
@@ -161,7 +161,7 @@ class TXmlTransform extends TControl {
return null;
}
}
-
+
/**
* Performs XSL transformation and render the output.
* @param THtmlWriter The writer used for the rendering purpose
@@ -174,20 +174,21 @@ class TXmlTransform extends TControl {
$document->loadXML($textWriter->flush());
}
$stylesheet = $this->getTransformXmlDocument();
-
+
// Perform XSL transformation
$xslt = new XSLTProcessor();
$xslt->importStyleSheet($stylesheet);
-
+
// Check for parameters
$parameters = $this->getParameters();
foreach($parameters as $name => $value) {
$xslt->setParameter('', $name, $value);
}
$output = $xslt->transformToXML($document);
-
+
// Write output
$writer->write($output);
}
}
-?>
+
+?> \ No newline at end of file