PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_XUL » Bug #2250

XML_XUL don`t work

Details

Submitted2004-08-30 15:00 UTC
Fromigo at cruise-don dot ru
Assignedschst
StatusClosed
PackageXML_XUL
PHP Version4.3.1
OSWindowsXP
Roadmaps(Not assigned)

Comments

[2004-08-30 15:00 UTC] igo at cruise-don dot ru

Description:
------------
Examples don`t work from XML_XUL-0.8.1/examples.

Reproduce code:
---------------
XML_XUL 0.8.1
PEAR-1.3.1
XML_Util-0.6.1
XML_Beautifier-1.1

error_reporting(E_ALL);
require_once 'XML/XUL.php';
$doc = &XML_XUL::createDocument( );
$doc->addStylesheet('chrome://global/skin/');
$win = &$doc->createElement('Window', array('title'=> 'Example for PEAR::XML_XUL'));
$doc->addRoot($win);
$doc->send();

Actual result:
--------------
<br />
<b>Notice</b>: Undefined property: _htmlNs in <b>e:\xul\pear\XML\XUL\Element.php</b> on line <b>456</b><br />
<br />
<b>Notice</b>: Undefined variable: content in <b>e:\xul\pear\XML\XUL\Element.php</b> on line <b>469</b><br />
<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window title="Example for PEAR::XML_XUL" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" />