How do I print output of this html transformed by xsl in another php script in some div section -
i need print html transformed output of php script in div element @ php script. how do. tried include raises xml parser error. error raises if include echo statement in file. here test file raises error:
<?php include "callhier.php"; echo'test'; print $xslt->transformtoxml($save); ?> erro
xml parsing error: not well-formed location: http://127.0.0.1/test.php line number 1, column 5: here output code:
$xslt = new xsltprocessor(); $xsl = new domdocument(); $xsl->load( 'msg.xsl'); $xslt->importstylesheet( $xsl ); header('content-type: application/xml'); //print $xslt->transformtoxml($save); ?> it builds unordered list need display in dive in php script.
you need include script page want appear. can echo results @ location in page want.
<?php include "yourxslsripthere.php"; ?> ... <div id="thedivyouwanttowriteitto"> <?php echo $xslt->transformtoxml($save); ?> </div>
Comments
Post a Comment