April 26, 2004

昨天的PHP中应用XSLT的问题解决

Categories:  ItTech

不知是不是由于PHP对Windows的支持不是很透明,要解决昨天的问题,需要下面两种方法:

第一种方法,在xslt_create后立即使用下面的代码:

$fileBase = 'file://' . getcwd () . '/';
xslt_set_base ( $xh, $fileBase );

第二种方法,对xmlfile和xslfile的文件名做类似的处理:

$xmlfile = 'file://' . realpath("order.xml");
$xslfile = 'file://' . realpath("order.xsl");
Posted by dumm at April 26, 2004 09:32 AM
Comments

Good information, thank

Posted by: laser hair removal denver at October 10, 2006 04:24 PM
Post a comment









Remember personal info?




  
Please enter the code as seen in the image above to post your comment.