Closed rysi3k closed 9 years ago
Hello, There is no specific way to apply XSLTForms stylesheet at server-side with PHP. Please have a look at this simple example:
$xml = new DOMDocument();
$xml->load($_GET["form"]);
$xsl = new DOMDocument();
$xsl->load("xsltforms/xsltforms.xsl");
$xslp = new xsltProcessor();
$xslp->importStyleSheet($xsl);
$result = $xslp->transformToXml($xml);
header("Content-Type: text/html");
echo $result;
Thank you for your feedback!
Hi, thanks for help - works like a charm!
Hello @AlainCouthures I haven't found nowhere how to use XSLTForms in PHP, how to parse it and display in browser? Thanks for help.
Greetings