Validate XML with Schematron in PHP 5
问题 I have a problem with validating XML with schematron. In my code I load the XML and XSL as DOMDocument objects and I try to transform: $domSche = new DOMDocument(); $domSche->loadXML($message); $domXSLSche = new DOMDocument(); $domXSLSche->load("CI-SIS_StructurationCommuneCDAr2.xsl"); $xsltsche = new XSLTProcessor(); $xsltsche->importStylesheet($domXSLSche); $XSLValid = $xsltsche->transformToXml($domSche); But the function returns this error: XSLTProcessor::transformToXml(): No stylesheet