▲ | ulrischa 4 days ago | |
I wonder why everybody want's to use XSLT on the client side. On te Server side it is so powerful and works like a charme with PHP: // XML $xml_doc = new DOMDocument(); $xml_doc->load("file1.xml"); // XSL $xsl_doc = new DOMDocument(); $xsl_doc->load("file.xsl"); // Proc $proc = new XSLTProcessor(); $proc->importStylesheet($xsl_doc); $newdom = $proc->transformToDoc($xml_doc); // Output print $newdom->saveXML(); | ||
▲ | vbezhenar 4 days ago | parent [-] | |
> I wonder why everybody want's to use XSLT on the client side Because if you can remove any server processing, it's just the perfect solution for simple websites. |