Using the following files I get the following errors "Entity 'test1' not defined in..." and "Entity 'test2' not defined in...".
test.php
test.xmlPHP Code:<?php
DomDocument::load('/Users/josephragsdale/Sites/joerags/development/test.xml');
?>
test.dtdCode:<?xml version="1.0" encoding="iso-8859-1" standalone="no"?> <!DOCTYPE test SYSTEM "/Users/josephragsdale/Sites/joerags/development/test.dtd"> <test> <example>&test1; &test2;</example> </test>
I've researched a bit with Google and stumbled across bug 17779 and bug 17390 at bugs.php.net which might be somewhat related to my problem but I'm unsure. From what I can tell the above should work.Code:<!DOCTYPE test [ <!ENTITY test1 "Test 1"> <!ENTITY test2 "Test 2"> <!ELEMENT test (example)> <!ELEMENT example (#PCDATA)> ]>
I'm using Apache 1.3.31, PHP 5 RC3, libxml2 2.6.9, and libxslt 1.1.7.






Bookmarks