syntax error at line 65, column 0, byte 2841: <![%sgml.features;[ ^ at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/XML/P +arser.pm line 188 at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/XML/P +arser/Expat.pm line 469
So I've looked in Parser.pm at line 188 and put a debug statement to see what could be $arg:
eval { print "DEBUG: arg: $arg\n"; $result = $expat->parse($arg); };
And $arg is in fact a file that starts like:
<!DOCTYPE sect1 [<!-- ................................................ +...................... --> <!-- DocBook XML DTD V4.5 ............................................ +..... --> <!-- File docbookx.dtd ............................................... +..... --> <!-- Copyright 1992-2006 HaL Computer Systems, Inc., O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
And at line 65 of that file is the sgml.features line:
<!-- Enable SGML features ............................................ +..... --> <!ENTITY % sgml.features "IGNORE"> <![%sgml.features;[ <!ENTITY % xml.features "IGNORE"> ]]>
Doing a /usr-wide serach I found that there are several of these files in /share/sgml/docbook/, for instance:
./share/sgml/docbook/xml-dtd-4.5-1.0-33.fc8/docbookx.dtd
Could it be that the XML::Twig error is about such a file being broken ? If I do not care at this stage for any DOCTYPE declaration, can I still use 'straight' ENTITY declarations (w/o the DOCTYPE) so that XML::Twig can actually process them ?
Does this make any sense ;-) ?
In reply to Re: XML::Twig and ENTITY declarations
by carcassonne
in thread XML::Twig and ENTITY declarations
by carcassonne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |