Subject: | External entities not expanded in included file (XInclude) |
XML:LibXML version: 1.62
Platform: windows xp
This is the content of the main xml file:
<?xml version="1.0"?>
<reports xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="./report/all_pieces.xml" parse='xml' />
</reports>
And here's the included one (all_pieces.xml):
<?xml version="1.0"?>
<!DOCTYPE org [ <!ENTITY trend SYSTEM "./_trend.xml"> ]>
<report id="std1" name="Standard Re-TRAC Report">
&trend;
</report>
The external entity 'trend' is not expanded even though I had set all
the options:
$parser->expand_xinclude(1);
$parser->load_ext_dtd(1);
$parser->expand_entities(1);
I tested the xml with xmllint with options --xinclude --noent and the
output in okay; so I am guessing something might be wrong with the perl
interface.
Thanks.