PHP Classes

File: examples/template/xsl.php

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/template/xsl.php   Download  
File: examples/template/xsl.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 8 years ago
Size: 524 bytes
 

Contents

Class file image Download
<?php
error_reporting
(E_ALL);
require_once(
'config.php');
require
dirname(__FILE__) . '/../../A/autoload.php';

$template = new A_Template_Xslt('collection.xsl');

$xml = '<collection>
 <cd>
  <title>Fight for your mind</title>
  <artist>Ben Harper</artist>
  <year>1995</year>
 </cd>
 <cd>
  <title>Electric Ladyland</title>
  <artist>Jimi Hendrix</artist>
  <year>1997</year>
 </cd>
</collection>'
;

$template->setXML($xml);
#$template->setXMLFilename('collection.xml');
echo $template->render();
?>