Hi

My ISP upgraded from 5.0.3 to 5.1.1. Since then, XSLT (at least my
script which uses it) doesn't work anymore.

The first error message on

  http://www.pinkjuice.com/hayashi/materials/

is

  Warning: XSLTProcessor::importStylesheet()
  [function.importStylesheet]: Undefined variable in
  /[...]/hayashi/pages.php5 on line 12

pages.php5:

  <?php
  # print dirname(__FILE__);

  $xslt = new DomDocument();
  $xslt->load("this.xslt");
  $inputdom = new DomDocument();
  $inputdom->load("../page_template.xml");

  $proc = new XsltProcessor();
  # previous version of the following line:
  # $xslt = $proc->importStylesheet($xslt);
  $proc->importStylesheet($xslt);
  $proc->setParameter(null, "pagedir", $pagedir);
  # seems to set params *and* toplevel variables
  # $proc->setParameter(null, "topdir", $topdir);

  $newdom = $proc->transformToDoc($inputdom);
  print $newdom->saveXML();

  ?>

Thanks in advance,
Tobi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to