| 1 |
<?php |
<?php |
| 2 |
// $Id: xml-transform.inc,v 1.33.2.4 2009/05/09 12:45:15 dman Exp $ |
// $Id: xml-transform.inc,v 1.33.2.5 2009/05/09 14:16:30 dman Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* Utility for formatting XML files using XSL. |
* Utility for formatting XML files using XSL. |
| 100 |
return; |
return; |
| 101 |
} |
} |
| 102 |
else { |
else { |
| 103 |
debug("Retrieved source of '$xmlfile' OK, it's ". strlen($xmlsource) ." characters", 3); |
import_html_debug("Retrieved source of '%xmlfile' OK, it's %length characters", array('%xmlfile' => $xmlfile, '%length' => strlen($xmlsource)), WATCHDOG_DEBUG); |
| 104 |
} |
} |
| 105 |
#import_html_debug_code("After loading XML text", $xmlsource); |
#import_html_debug_code("After loading XML text", $xmlsource); |
| 106 |
|
|
| 214 |
if (extension_loaded("xsl")) { |
if (extension_loaded("xsl")) { |
| 215 |
////////// |
////////// |
| 216 |
// PHP5 // |
// PHP5 // |
| 217 |
debug("Doing XSL using PHP5 xsl module. XSL base should be '". $parameters['xsl_path'] ."'", 3); |
import_html_debug("Doing XSL using PHP5 xsl module. XSL base should be %xsl_path ", array('%xsl_path' => $parameters['xsl_path']), WATCHDOG_DEBUG); |
| 218 |
$xsltproc = new XSLTProcessor; |
$xsltproc = new XSLTProcessor; |
| 219 |
|
|
| 220 |
if ( $parameters['xsl_path']) $xsldoc->documenturi = $parameters['xsl_path']; |
if ( $parameters['xsl_path']) $xsldoc->documenturi = $parameters['xsl_path']; |