Hi All,

I would like to be able to have an entity that I can use to set the path
to a second DTD in a particular document's internal subset, if different
from the one specified there. The following is a simplified example of
this...

test.xml:

<?xml version = '1.0' encoding = 'iso-8859-1'?>

<!DOCTYPE dummy_1 SYSTEM "test.dtd" [
    <!ENTITY % use_second_stage_dtd "INCLUDE">
]>

<dummy_1>
    <dummy_2 />
</dummy_1>

test.dtd:

<?xml version = '1.0' encoding = 'iso-8859-1'?>

<!ENTITY % use_second_stage_dtd "IGNORE">
<![%use_second_stage_dtd;[
  <!ENTITY % second_stage_dtd_path "'test_2.dtd'">
  <!ENTITY % second_stage_dtd PUBLIC "PUBLIC IDENTIFIER"
     %second_stage_dtd_path;>

  %second_stage_dtd;
]]>

<!ELEMENT dummy_1 (dummy_2)>


test_2.dtd:

<?xml version = '1.0' encoding = 'iso-8859-1'?>

<!ELEMENT dummy_2 EMPTY>


Michael Kay's Aelfred parser, XP 0.5, and SP 1.3 all let this one
through and behave as expected.

Xerces (C++ version 1.5.1, the stable release binaries for Linux) gives
the following error when using the DOMCount sample program:

Fatal Error at file /home/andre/xerces_problem/test.dtd, line 7, char 6
  Message: Expected quoted string


Apparently the latest Xerces-J also gives the same error.

Any ideas why Xerces throws this error ??


Thanks,
David.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to