Created
October 5, 2019 00:13
-
-
Save pchatterjee/fdc5f70237b4280c65ea89e30cb14ed8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$xml = new DOMDocument(); | |
$xml->load('quotes.xml'); | |
$xsl = new DOMDocument; | |
$xsl->load('quotes_to_html.xsl'); | |
$proc = new XSLTProcessor(); | |
$proc->importStyleSheet($xsl); | |
echo $proc->transformToXML($xml); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment