|
xslt_set_base
Set the base URI for all XSLT transformations
(PHP 4 >= 4.0.5)
Code Examples / Notes » xslt_set_basekelvin cheng
It works great on my windows platform as below. <?php $xh = xslt_create(); $fileBase = 'file://' . getcwd () . '/'; xslt_set_base ( $xh, $fileBase ); ... ?> Actually, it make use of the getcwd() to get the current directory. Hope it can help. edmon
$filebase = 'file://' . getcwd () . '/xsl/'; xslt_set_base($xsltproc, $filebase); file:// is needed for linux too. php 4.3.8 |
Change Languagexslt_backend_info xslt_backend_name xslt_backend_version xslt_create xslt_errno xslt_error xslt_free xslt_getopt xslt_process xslt_set_base xslt_set_encoding xslt_set_error_handler xslt_set_log xslt_set_object xslt_set_sax_handler xslt_set_sax_handlers xslt_set_scheme_handler xslt_set_scheme_handlers xslt_setopt |